| {{ date('m/d/Y', strtotime($visa->date_of_expiry)) }} |
@php
$statusClasses = [
'pending' => 'bg-warning text-dark',
'in_progress' => 'bg-primary',
'completed' => 'bg-success',
'overdue' => 'bg-danger',
'cancelled' => 'bg-secondary'
];
$status = $visa->visa_status_label;
$badgeClass = $statusClasses[$status] ?? 'bg-light text-dark';
@endphp
{{ ucfirst(str_replace('_', ' ', $status)) }}
|
{{ $visa->first_name }} {{ $visa->last_name }} |
{{ ucwords($visa->visa_type_label) }}
|
{{ strtoupper($visa->visa_category) }}
|
{{ date('m/d/Y', strtotime($visa->date_of_expiry)) }}
|
{{ $visa->submitted_to_bi ? date('m/d/Y', strtotime($visa->submitted_to_bi)) : '' }} |
{{ $visa->biometrics ? date('m/d/Y', strtotime($visa->biometrics)) : '' }} |
{{ $visa->return_passport ? date('m/d/Y', strtotime($visa->return_passport)) : '' }} |
{{ $visa->approved ? date('m/d/Y', strtotime($visa->approved)) : '' }} |
{{ $visa->disapproved ? date('m/d/Y', strtotime($visa->disapproved)) : '' }} |
{{ $visa->sent_for_implementation ? date('m/d/Y', strtotime($visa->sent_for_implementation)) : '' }} |
{{ $visa->implemented ? date('m/d/Y', strtotime($visa->implemented)) : '' }} |
{{ $visa->new_visa_validity ? date('m/d/Y', strtotime($visa->new_visa_validity)) : '' }} |
{{ $visa->acr_applied ? date('m/d/Y', strtotime($visa->acr_applied)) : '' }} |
{{ $visa->acr_released ? date('m/d/Y', strtotime($visa->acr_released)) : '' }} |
@endforeach