+ @if (session('success'))
+
+ {{ session('success') }}
+
+ @endif
+
+ @if (session('error'))
+
+ {{ session('error') }}
+
+ @endif
+
+
+
+
+
+
+
+
+
Period
+
+ @php
+ // Convert format YYYYMMDD to readable date
+ $date = \Carbon\Carbon::createFromFormat('Ymd', $atmReport->period);
+ $periodText = $date->format('d F Y');
+ @endphp
+ {{ $periodText }}
+
+
+
+
+
Report Date
+
{{ $atmReport->report_date }}
+
+
+
+
Status
+
+ @if ($atmReport->status === 'pending')
+ Pending
+ @elseif($atmReport->status === 'processing')
+ Processing
+ @elseif($atmReport->status === 'completed')
+ Completed
+ @elseif($atmReport->status === 'failed')
+ Failed
+ @endif
+
+
+
+
+
Authorization Status
+
+ @if ($atmReport->authorization_status === 'pending')
+ Pending Authorization
+ @elseif($atmReport->authorization_status === 'approved')
+ Approved
+ @elseif($atmReport->authorization_status === 'rejected')
+ Rejected
+ @endif
+
+
+
+ @if ($atmReport->status === 'completed')
+
+
File Information
+
+ @if ($atmReport->file_path)
+
Path: {{ $atmReport->file_path }}
+ @endif
+ @if ($atmReport->file_size)
+
Size: {{ number_format($atmReport->file_size / 1024, 2) }} KB
+ @endif
+ @if ($atmReport->record_count)
+
Records: {{ number_format($atmReport->record_count) }}
+ @endif
+
+
+ @endif
+
+ @if ($atmReport->status === 'failed' && $atmReport->error_message)
+
+
Error Message
+
{{ $atmReport->error_message }}
+
+ @endif
+
+
+
Downloaded
+
+ @if ($atmReport->is_downloaded)
+
Yes
+
+ Downloaded at:
+ {{ $atmReport->downloaded_at ? $atmReport->downloaded_at->format('d M Y H:i:s') : 'N/A' }}
+
+ @else
+
No
+ @endif
+
+
+
+
+
+
+
+
+
+
+
+
+
Requested By
+
{{ $atmReport->user->name ?? 'N/A' }}
+
+
+
+
Requested At
+
{{ dateFormat($atmReport->created_at, 1, 1) }}
+
+
+
+
IP Address
+
{{ $atmReport->ip_address }}
+
+
+
+
User Agent
+
{{ $atmReport->user_agent }}
+
+
+ @if ($atmReport->authorization_status !== 'pending')
+
+
Authorized By
+
{{ $atmReport->authorizer->name ?? 'N/A' }}
+
+
+
+
Authorized At
+
+ {{ $atmReport->authorized_at ? $atmReport->authorized_at->format('d M Y H:i:s') : 'N/A' }}
+
+
+ @endif
+
+ @if ($atmReport->created_by && $atmReport->created_by !== $atmReport->user_id)
+
+
Created By
+
{{ $atmReport->creator->name ?? 'N/A' }}
+
+ @endif
+
+ @if ($atmReport->updated_by)
+
+
Last Updated By
+
{{ $atmReport->updater->name ?? 'N/A' }}
+
+
+
+
Last Updated At
+
{{ dateFormat($atmReport->updated_at, 1, 1) }}
+
+ @endif
+
+
+
+
+
+ @if ($atmReport->authorization_status === 'pending' && auth()->user()->can('authorize_atm_reports'))
+
+ @endif
+