@extends('layouts.app') @section('content')
{{-- table index start --}}
Rejected From
@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @if ($errors->any()) @endif @php $records = [ [ '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' => 'rejected', 'duration' => '14 days', 'reject_reason' => 'Incomplete information' ], [ 'id' => 2, 'mrn' => '87654321', 'patient_name' => 'Jane Smith', 'request_name' => 'Abu Bakar', 'report_type' => 'Form report', 'date_received' => '11 MAY 2025', 'deposit' => 'NO', 'patient_IC' => 'YES', 'status' => 'rejected', 'duration' => '14 days', 'reject_reason' => 'Incomplete information' ], [ 'id' => 3, 'mrn' => '01020304', 'patient_name' => 'Ali bin Ahmad', 'request_name' => 'My Cle', 'report_type' => 'Form report', 'date_received' => '12 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'NO', 'status' => 'rejected', 'duration' => '14 days', 'reject_reason' => 'IC image not clear' ], [ 'id' => 4, 'mrn' => '16782945', 'patient_name' => 'Hamizi', 'request_name' => 'Pang', 'report_type' => 'Form report', 'date_received' => '15 MAY 2025', 'deposit' => 'YES', 'patient_IC' => 'NO', 'status' => 'rejected', 'duration' => '14 days', 'reject_reason' => 'Invalid patient details' ], ]; @endphp
@php $counter = 1 @endphp @foreach ($records as $record) @if($record['status'] === 'rejected') @endif @endforeach
No. MRN Patient Name Request Name Type Report Date Received Deposit IC Status Rejection Reason
{{ $counter++ }} {{ $record['mrn'] }} {{ $record['patient_name'] }} {{ $record['request_name'] }} {{ $record['report_type'] }} {{ $record['date_received'] }} {{ $record['deposit'] }} {{ $record['patient_IC'] }} {{ $record['status'] }} {{ $record['reject_reason'] }}
{{-- table index end --}}
@endsection