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

POS Report

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

POS Report

@php $no = 1; $rowCount = count(!empty($search_pos) ? $search_pos : $pos_data); $subtotal = 0; $discounttotal = 0; $amounttotal = 0; @endphp @if (!empty($search_pos)) @foreach ($search_pos as $pos) @php $no++; $subtotal += $pos->sub_total; // Add subtotal for each $discounttotal += $pos_datas->discount_total; $discounttotal += $pos->discount_total; $amounttotal += $pos->total; @endphp @endforeach @else @foreach ($pos_data as $pos_datas) @php $no++; $subtotal += $pos_datas->discount_total + $pos_datas->total; // Add subtotal for each row $discounttotal += $pos_datas->discount_total; $amounttotal += $pos_datas->total; @endphp @endforeach @endif
No. POS No. Location Date Sub Total Discount Total Amount Sale By
{{ $no }} {{ $pos->invoice_no }} @foreach ($branchs as $branch) @if ($branch->id == $pos->branch) {{ $branch->name }} @endif @endforeach {{ $pos->invoice_date }} {{ number_format($pos->sub_total ?? 0, 2) }} {{ number_format($pos->discount_total ?? 0, 2) }} {{ number_format($pos->total ?? 0, 2) }} {{ $pos->sale_by }}
{{ $no }} {{ $pos_datas->invoice_no }} @foreach ($branchs as $branch) @if ($branch->id == $pos_datas->branch) {{ $branch->name }} @endif @endforeach {{ $pos_datas->invoice_date }} {{ number_format($pos_datas->sub_total ?? 0, 2) }} {{ number_format($pos_datas->discount_total ?? 0, 2) }} {{ number_format($pos_datas->total ?? 0, 2) }} {{ $pos_datas->sale_by }}
Total {{ number_format($subtotal ?? 0, 2) }} {{ number_format($discounttotal ?? 0, 2) }} {{ number_format($amounttotal ?? 0, 2) }}
@php $no = 1; @endphp @foreach ($sale_totals as $sale_total) @php $no++; @endphp @endforeach
No. Sale By Total
{{ $no }} {{ $sale_total->sale_by }} {{ number_format($sale_total->sale_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) }}