@include('layouts.header')
@include('layouts.sidebar')

Customer Name : {{ $customer->name }}

@if (session('success')) @endif @if (session('error')) @endif @if ($errors->has('phno')) @endif
@foreach ($invoices as $key => $invoice) @endforeach
No. Invoice Number Status Deposit Remain Balance Amount
{{ $key + 1 }} {{ $invoice->invoice_no }} @if ($invoice->deposit == $invoice->total || $invoice->deposit == null) Paid @endif @if ($invoice->deposit <= 0) @if ($invoice->deposit == null) @else Unpaid @endif @endif @if ($invoice->deposit !== $invoice->total) @if ($invoice->deposit >= 1) Patial @endif @endif @if ($invoice->deposit !== null) {{ $invoice->deposit }} @else 0 @endif @if ($invoice->remain_balance) {{ $invoice->remain_balance }} @else 0 @endif {{ $invoice->total }}
Total {{ $deposit }} {{ $balance }} {{ $total_amount }}