@extends('layouts.app') @section('content')
{{-- table index start --}}
Completed Report
@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @if ($errors->any()) @endif @php $reports = [ [ 'id' => 1, 'mrn' => '12345678', 'patient_name' => 'John Doe', 'request_name' => 'Mohd Haris', 'report_type' => 'Full report', 'date_received' => '10 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '20 MAY 2025', ], [ 'id' => 2, 'mrn' => '87654321', 'patient_name' => 'Jane Smith', 'request_name' => 'Abu Bakar', 'report_type' => 'Form report', 'date_received' => '11 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '22 MAY 2025', ], [ 'id' => 3, 'mrn' => '01020304', 'patient_name' => 'Ahmad Ali', 'request_name' => 'Haris', 'report_type' => 'Full report', 'date_received' => '12 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'Yes', 'status' => 'completed', 'date_completed' => '27 MAY 2025', ], [ 'id' => 4, 'mrn' => '55511122', 'patient_name' => 'Zulkifli Hassan', 'request_name' => 'Aisyah Zainal', 'report_type' => 'Form report', 'date_received' => '18 MAY 2025', 'deposit' => 'NO', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '28 MAY 2025', ], [ 'id' => 5, 'mrn' => '88997766', 'patient_name' => 'Sofia Amin', 'request_name' => 'Rashid Salleh', 'report_type' => 'Form report', 'date_received' => '19 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'NO', 'status' => 'completed', 'date_completed' => '30 MAY 2025', ], [ 'id' => 6, 'mrn' => '66778899', 'patient_name' => 'Hafiz Omar', 'request_name' => 'Nadia Karim', 'report_type' => 'Full report', 'date_received' => '20 MAY 2025', 'deposit' => 'NO', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '01 JUN 2025', ], [ 'id' => 7, 'mrn' => '33445566', 'patient_name' => 'Liyana Yusuf', 'request_name' => 'Amir Faizal', 'report_type' => 'Full report', 'date_received' => '21 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'NO', 'status' => 'completed', 'date_completed' => '03 JUN 2025', ], [ 'id' => 8, 'mrn' => '99887766', 'patient_name' => 'Faridah Ahmad', 'request_name' => 'Johan Nordin', 'report_type' => 'Form report', 'date_received' => '22 MAY 2025', 'deposit' => 'NO', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '05 JUN 2025', ], [ 'id' => 9, 'mrn' => '11223344', 'patient_name' => 'Zainab Latif', 'request_name' => 'Salman Ismail', 'report_type' => 'Full report', 'date_received' => '23 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '06 JUN 2025', ], [ 'id' => 10, 'mrn' => '44556677', 'patient_name' => 'Faizah Rahman', 'request_name' => 'Kamal Azman', 'report_type' => 'Form report', 'date_received' => '24 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'YES', 'status' => 'completed', 'date_completed' => '07 JUN 2025', ], ]; @endphp
@php $counter = 1 @endphp @foreach ($reports as $report) @if($report['status'] === 'completed') @endif @endforeach
No. MRN Patient Name Request Name Type Report Date Received Deposit IC Status Date Completed
{{ $counter++ }} {{ $report['mrn'] }} {{ $report['patient_name'] }} {{ $report['request_name'] }} {{ $report['report_type'] }} {{ $report['date_received'] }} {{ $report['deposit'] }} {{ $report['patient_IC'] }} {{ $report['status'] }} {{ $report['date_completed'] }}
{{-- table index end --}}
@endsection