@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
Branch
{{ $statement->branch->name ?? 'N/A' }} ({{ $statement->branch_code }})
Account Number
{{ $statement->account_number }}
Period
@php
// Convert format YYYYMM to Month Year
$fromYear = substr($statement->period_from, 0, 4);
$fromMonth = substr($statement->period_from, 4, 2);
$fromMonthName = date('F', mktime(0, 0, 0, $fromMonth, 1));
$periodText = $fromMonthName . ' ' . $fromYear;
if($statement->is_period_range && $statement->period_to) {
$toYear = substr($statement->period_to, 0, 4);
$toMonth = substr($statement->period_to, 4, 2);
$toMonthName = date('F', mktime(0, 0, 0, $toMonth, 1));
$periodText .= ' - ' . $toMonthName . ' ' . $toYear;
}
@endphp
{{ $periodText }}
Availability
@if($statement->is_available)
Available
@else
Not Available
@endif
Downloaded
@if($statement->is_downloaded)
Yes
Downloaded at: {{ $statement->downloaded_at ? $statement->downloaded_at->format('d M Y H:i:s') : 'N/A' }}
@else
No
@endif
Requested By
{{ $statement->user->name ?? 'N/A' }}
Requested At
{{ dateFormat($statement->created_at,1,1) }}
IP Address
{{ $statement->ip_address }}
User Agent
{{ $statement->user_agent }}
@if($statement->authorization_status !== 'pending')
Authorized By
{{ $statement->authorizer->name ?? 'N/A' }}
Authorized At
{{ $statement->authorized_at ? $statement->authorized_at->format('d M Y H:i:s') : 'N/A' }}
@if($statement->remarks)
Remarks
{{ $statement->remarks }}
@endif
@endif
@if($statement->authorization_status === 'pending' && auth()->user()->can('authorize_statements'))
@endif