@extends('layouts.horizontal', ['title' => 'Invoice Payment Receiving Note', 'topbarTitle' => 'Invoice Payment Receiving Note', 'nonav' => true]) @section('css') @vite(['node_modules/select2/dist/css/select2.min.css']) @endsection @php $narriationHtml =''; @endphp @section('content')

New Invoice Payment Receiving For Invoice # {{$order_detail->invoice_number}}

@csrf
Loading...


@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

--}} @foreach ($franchise_pending_payments as $rows) @if ($rows->id_franchise_orders != $order_detail->id_franchise_orders) @php $payment_receiving_note_url = route('franchise.payment_receiving_note', [ 'order_id' => $rows->id_franchise_orders ]); $total_receivable += $rows->balance; @endphp @endif @endforeach
Other Pending Payments
ID Franchise Invoice No Order Date Invoice Date Receivable Action
{{$rows->id_franchise_orders}} {{$rows->franchise_name}} {{$rows->invoice_number}} {{$rows->order_date}} {{$rows->invoice_date}} {{number_format($rows->balance,2)}}
Total Receivable {{number_format($total_receivable, 2)}}
@endif @if ($pendingCount <= 1) {!!$narriationHtml!!} @endif
@if ($pendingCount> 1)
{!! $narriationHtml !!}
@endif
@endsection @section('scripts') @endsection