@extends('layouts.main') @section('content')

Statement Request Details

Back to List @if($statement->is_available && $statement->authorization_status === 'approved') Download Statement @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Statement Information

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 }}
Status
@if($statement->authorization_status === 'pending') Pending Authorization @elseif($statement->authorization_status === 'approved') Approved @elseif($statement->authorization_status === 'rejected') Rejected @endif
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

Request Information

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'))

Authorization

@csrf
@endif
@endsection @push('scripts') @endpush