@extends('layouts.app')
@section('title', 'OR Register')
@section('content')
OR Register
{{-- Filters --}}
@php
// Static mock rows
$orRows = [
[
'or_no' => '001120',
'issued_at' => '2025-10-19 09:05',
'cashier' => 'Cashier A',
'shift' => 'S-2025-10-19-A',
'assessment_no' => 'ASM-2025-00421',
'payer' => 'Dev Coffee Roasters',
'method' => 'Cash',
'fund' => 'General Fund',
'discount' => 0,
'surcharge' => 250,
'interest' => 0,
'amount' => 12500,
'net' => 12750,
'status' => 'Issued',
],
[
'or_no' => '001121',
'issued_at' => '2025-10-19 09:20',
'cashier' => 'Cashier A',
'shift' => 'S-2025-10-19-A',
'assessment_no' => 'ASM-2025-00422',
'payer' => 'Byte Bakery',
'method' => 'Check',
'fund' => 'General Fund',
'discount' => 0,
'surcharge' => 200,
'interest' => 0,
'amount' => 8000,
'net' => 8200,
'status' => 'Issued',
],
[
'or_no' => '001122',
'issued_at' => '2025-10-19 10:10',
'cashier' => 'Cashier B',
'shift' => 'S-2025-10-19-B',
'assessment_no' => 'ASM-2025-00400',
'payer' => 'Pixel Print Shop',
'method' => 'Cash',
'fund' => 'General Fund',
'discount' => 0,
'surcharge' => 0,
'interest' => 0,
'amount' => 5000,
'net' => 5000,
'status' => 'Voided',
],
];
$totCash = 12750 + 0; // illustrative
$totCheck = 8200;
$totNet = 12750 + 8200; // exclude voids by default
@endphp
| OR No |
Issued At |
Cashier / Shift |
Assessment No |
Payer |
Method |
Fund |
Net |
|
@foreach ($orRows as $r)
|
{{ $r['or_no'] }}
@if ($r['status'] === 'Voided')
VOID
@endif
|
{{ $r['issued_at'] }} |
{{ $r['cashier'] }}
{{ $r['shift'] }}
|
{{ $r['assessment_no'] }} |
{{ $r['payer'] }} |
{{ $r['method'] }} |
{{ $r['fund'] }} |
{{ number_format($r['net'], 2) }} |
|
@endforeach
| Total (Issued only) |
{{ number_format($totNet, 2) }} |
|
Showing {{ count($orRows) }} rows (static).
Cash{{ number_format($totCash, 2) }}
Check{{ number_format($totCheck, 2) }}
General Fund{{ number_format($totNet, 2) }}
Total Issued{{ number_format($totNet, 2) }}
Voids are excluded from totals by default.
@endsection
@push('scripts')
@endpush