@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 --}}

Purchase Order Report

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

Purchase Report

@php $no = '1'; @endphp @foreach ($pos as $po) @php $no++; @endphp @endforeach
No. Purchase Order No. Location Supplier Name Phone Number Address Purchase Return Total Amount
{{ $no }} {{ $po->quote_no }} @foreach ($branchs as $branch) @if ($branch->id == $po->branch) {{ $branch->name }} @endif @endforeach {{ $po->supplier->name ?? 'N/A' }} {{ $po->supplier->phno ?? 'N/A' }} {{ $po->supplier->address ?? 'N/A' }} {{ $po->balance_due }} {{ number_format($po->total ?? 0, 2) }}
Total {{ number_format($search_total ?? 0, 2) }}
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) }}