@if(request()->has('date'))
{{formated_price($total)}}
{{__('Total')}}
{{formated_price($paid)}}
{{__('Paid')}}
{{formated_price($due)}}
{{__('Due')}}
# |
{{__('Supplier')}} |
{{__('Branch')}} |
{{__('Date')}} |
{{__('Total')}} |
{{__('Paid')}} |
{{__('Due')}} |
@foreach($purchases as $purchase)
{{$purchase['id']}} |
{{$purchase['supplier']['name']}} |
{{$purchase['branch']['name']}} |
{{$purchase['date']}}
|
{{formated_price($purchase['total'])}} |
{{formated_price($purchase['paid'])}} |
{{formated_price($purchase['due'])}} |
@endforeach
# |
#{{__('Purchase')}} |
{{__('Supplier')}} |
{{__('Branch')}} |
{{__('Date')}} |
{{__('Amount')}} |
{{__('Payment method')}} |
@foreach($payments as $payment)
{{$payment['id']}} |
{{$payment['purchase_id']}} |
{{$payment['purchase']['supplier']['name']}} |
{{$payment['purchase']['branch']['name']}} |
{{date('Y-m-d',strtotime($payment['date']))}} |
{{formated_price($payment['amount'])}} |
{{$payment['payment_method']['name']}} |
@endforeach
@endif