@extends('backend.partials.master') @section('title') {{ ___('label.visa') }} {{ ___('label.status_tracking') }} @endsection @section('maincontent') @php $open = $applications->whereNotIn('status', ['Approved', 'Rejected']); @endphp
{{ ___('label.in_progress') }}

{{ $open->count() }}

{{ ___('label.awaiting_documents') }}

{{ $open->where('documents_status', ___('admin.pending_96f608'))->count() }}

{{ ___('label.at_embassy') }}

{{ $open->where('status', ___('admin.in_review_fc4be1'))->count() }}

{{ ___('label.decided') }}

{{ $applications->whereIn('status', [___('admin.approved_41b81e'), ___('admin.rejected_27eeb7')])->count() }}

@forelse($applications as $application) @php $tone = $application->statusTone(); @endphp
{{ $application->application_no }} {{ admin_label($application->status) }}
{{ $application->applicant_name }} · {{ $application->country }} · {{ $application->visa_type }}
{{ $application->progress() }}%
{{-- Shown only while the dropdowns hold something that has not been saved, so a moved bar is never mistaken for a stored decision. --}} {{ ___('label.press_update_to_save') }}
{{ ___('label.documents') }}: {{ $application->documents_status }} @if($application->applied_date) {{ $application->applied_date->translatedFormat('d M Y') }} @endif @if($application->appointment_date) {{ $application->appointment_date->translatedFormat('d M Y') }} @endif
{{-- A decided case is final; showing the form would invite a move the repository is going to reject anyway. --}} @if(hasPermission('visa_update') && ! in_array($application->status, ['Approved', 'Rejected'], true))
@csrf @method('PUT')
{{-- Captured with the decision so Expiry Management has a date to work from the moment a visa is approved. --}}
@endif
@empty
{{ ___('alert.no_data_available') }}
@endforelse
@endsection @push('scripts') @endpush