@extends('layouts.app') @section('content')
{{-- table index start --}}
In Progress
@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' => 'pending', 'duration' => '14 days', 'assigned_staff' => null, ], [ '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' => 'pending', 'duration' => '10 days', 'assigned_staff' => 'Mr. Ahmad', ], [ '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' => 'pending', 'duration' => '8 days', 'assigned_staff' => null, ], [ 'id' => 4, 'mrn' => '01020304', 'patient_name' => 'Ahmad Ali', 'request_name' => 'Haris', 'report_type' => 'Full report', 'date_received' => '12 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'Yes', 'status' => 'pending', 'duration' => '8 days', 'assigned_staff' => null, ], [ 'id' => 5, 'mrn' => '01020304', 'patient_name' => 'Ahmad Ali', 'request_name' => 'Haris', 'report_type' => 'Full report', 'date_received' => '12 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'Yes', 'status' => 'pending', 'duration' => '8 days', 'assigned_staff' => null, ], ]; $staff_list = [ 'Mr. Ahmad Razak', 'Ms Siti Aminah', 'Mr Lim Wei Ming', 'Mr Priya Sharma', 'Mr Hassan Ibrahim', 'Mr Chen Li Hua', 'Ms Fatimah Zahra' ]; @endphp
@php $counter = 1 @endphp @foreach ($reports as $report) @if($report['status'] === 'pending') @endif @endforeach
No. MRN Patient Name Request Name Type Report Date Received Deposit IC Status Duration Assign Staff Report
{{ $counter++ }} {{ $report['mrn'] }} {{ $report['patient_name'] }} {{ $report['request_name'] }} {{ $report['report_type'] }} {{ $report['date_received'] }} {{ $report['deposit'] }} {{ $report['patient_IC'] }} {{ $report['status'] }} {{ $report['duration'] }}
@if($report['assigned_staff']) {{ $report['assigned_staff'] }} @else @endif
{{-- table index end --}}
@endsection