@include('layouts.header')
@include('layouts.sidebar')
{{-- Permission Php --}} @php $choosePermission = []; if (auth()->user()->permission) { $decodedPermissions = json_decode(auth()->user()->permission, true); if (json_last_error() === JSON_ERROR_NONE) { $choosePermission = $decodedPermissions; } } @endphp {{-- End Php --}}

Invoice Report

@if (auth()->user()->is_admin == '1')
@else
@endif

Invoices Report

@php $no = '1'; @endphp @if (!empty($search_invoices)) @foreach ($search_invoices as $invoice) @php $no++; @endphp @endforeach @else @foreach ($invoices as $invoice) @php $no++; @endphp @endforeach @endif
No. Invoice No. Location Customer Name Phone Number Customer Type Address Date Total Amount
{{ $no }} {{ $invoice->invoice_no }} @foreach ($branchs as $branch) @if ($branch->id == $invoice->branch) {{ $branch->name }} @endif @endforeach {{ $invoice->customer_name }} {{ $invoice->phno }} {{ $invoice->type }} {{ $invoice->address }} {{ $invoice->invoice_date }} {{ number_format($invoice->total ?? 0, 2) }}
{{ $no }} {{ $invoice->invoice_no }} @foreach ($branchs as $branch) @if ($branch->id == $invoice->branch) {{ $branch->name }} @endif @endforeach {{ $invoice->customer_name }} {{ $invoice->phno }} {{ $invoice->type }} {{ $invoice->address }} {{ $invoice->invoice_date }} {{ number_format($invoice->total ?? 0, 2) }}
Total @if (!empty($search_invoices)) {{ number_format($search_total ?? 0, 2) }}@else{{ number_format($total ?? 0, 2) }} @endif
No. Payment Method Amount
1. Cash {{ number_format($totalCash ?? 0, 2) }}
2. K Pay {{ number_format($totalKbz ?? 0, 2) }}
3. Wave {{ number_format($totalCB ?? 0, 2) }}
4. Other {{ number_format($totalOther ?? 0, 2) }}
Total {{ number_format($totalCash + $totalKbz + $totalCB + $totalOther ?? 0, 2) }}