{{$lang->data['print_sales_report'] ?? 'Print Sales Report'}} @php $payments = \App\Models\SupplierPayment::whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->latest(); if($payment_mode != '') { $payments->where('payment_mode',$payment_mode); } $payments = $payments->get(); @endphp

Purchase Payment Report

{{ \Carbon\Carbon::parse($start_date)->format('d/m/Y') }}

{{$lang->data['end_date'] ?? 'End Date'}}: {{ \Carbon\Carbon::parse($end_date)->format('d/m/Y') }}

Received Via: @if($payment_mode != '') {{getPaymentMode($payment_mode)}} @else All @endif



@foreach ($payments as $item) @endforeach
{{$lang->data['date'] ?? 'Date'}} {{$lang->data['supplier'] ?? 'Supplier'}} {{$lang->data['paid_amount'] ?? 'Paid Amount'}} {{$lang->data['payment_method'] ?? 'Payment Method'}}
{{\Carbon\Carbon::parse($item->date)->format('d/m/Y')}} {{$item->supplier_name}} {{getFormattedCurrency($item->paid_amount)}} {{getPaymentMode($item->payment_mode)}}


Total Payments: {{$payments->count()}} Total Amount Received: {{getFormattedCurrency($payments->sum('paid_amount'))}}