@php
$total_avaiable_advance = isset($franchise_over_all_advance_balance[0]->balance) ? $franchise_over_all_advance_balance[0]->balance : 0;
@endphp
@php
$use_advance_now = $total_avaiable_advance >= $balance ? $balance : $total_avaiable_advance;
@endphp
@php
$pendingCount = isset($franchise_pending_payments) ? count($franchise_pending_payments) : 0;
@endphp
@if (isset($franchise_pending_payments) && !empty($franchise_pending_payments) && $pendingCount > 1)
@php
$total_receivable = 0;
@endphp
{{--
Orders with Pending Payments
--}}
| Other Pending Payments |
| ID |
Franchise |
Invoice No |
Order Date |
Invoice Date |
Receivable |
Action |
@foreach ($franchise_pending_payments as $rows)
@if ($rows->id_franchise_orders != $order_detail->id_franchise_orders)
| {{$rows->id_franchise_orders}} |
{{$rows->franchise_name}} |
{{$rows->invoice_number}} |
{{$rows->order_date}} |
{{$rows->invoice_date}} |
{{number_format($rows->balance,2)}} |
@php
$payment_receiving_note_url = route('franchise.payment_receiving_note', [
'order_id' => $rows->id_franchise_orders
]);
$total_receivable += $rows->balance;
@endphp
|
@endif
@endforeach
| Total Receivable |
{{number_format($total_receivable, 2)}} |
|
@endif
@if ($pendingCount <= 1)
{!!$narriationHtml!!}
@endif
@if ($pendingCount> 1)
{!! $narriationHtml !!}