{{ \Carbon\Carbon::parse($date)->format('d/m/Y') }}
@if($branch != '') {{$lang->data['branch'] ?? 'Branch'}}: {{ \App\Models\User::find($branch)->name ?? '' }} @else {{$lang->data['branch'] ?? 'Branch'}}: All Branches @endif
Invoice No | File No. | Qty | Amount | Payment | Balance | @php $total_balance = 0; $total_payment = 0; @endphp @foreach ($invoices as $item)
---|---|---|---|---|---|
#{{$item->invoice_number}}
|
{{$item->customer_file_number}}
|
@php
$localquantity = \App\Models\InvoiceDetail::where('invoice_id',$item->id)->sum('quantity');
@endphp
{{$localquantity}}
|
{{getFormattedCurrency($item->total)}}
|
@php
$payment = \App\Models\InvoicePayment::where('invoice_id',$item->id)->sum('paid_amount');
$total_balance+= $item->total - $payment;
$total_payment+= $payment;
@endphp
{{getFormattedCurrency($payment)}}
|
{{getFormattedCurrency($item->total - $payment)}}
|
Total Amount:
{{getFormattedCurrency($invoices->sum('total'))}}
|
Total Payment :
{{getFormattedCurrency($total_payment)}}
|
Total Balance:
{{getFormattedCurrency($total_balance)}}
|
Particulars | Value | ... | ... |
---|---|---|---|
Number of Invoices |
{{$no_of_invoices}}
|
Opening Balance Received |
{{getFormattedCurrency($opening_balance)}}
|
Total Sales |
{{getFormattedCurrency($total_sales)}}
|
Old Invoice Balance Received |
{{getFormattedCurrency($all_payment - $total_payment)}}
|
Total Expense |
{{getFormattedCurrency($total_expense)}}
|
Total Payment Received |
{{getFormattedCurrency($max_payment)}}
|