@extends('backend.partials.master') @section('title') {{ ___('label.my_visa_applications') }} @endsection @section('maincontent') @foreach($applications as $a) @php $c = $a->status === 'Approved' ? 'success' : ($a->status === 'Rejected' ? 'danger' : 'warning'); @endphp {{ $a->application_no }} {{ $a->country }} {{ $a->visa_type }} {{ $a->applied_date?->translatedFormat('d M Y') }} {{ admin_label($a->status) }} {{ currency_symbol() }}{{ number_format($a->totalFee(), 2) }}
{{ admin_label($a->isPaid() ? 'Paid' : 'Unpaid') }}@if($a->payment_claimed_at) · {{ ___('label.payment_claimed_awaiting') }}@endif {{-- Each link goes through the auth'd, ownership-checked download route — the file itself sits on the private disk with no public URL, so this is the only way to fetch it. --}} @forelse($a->documents as $document) {{ $document->document_type }} @empty {{ ___('label.no_documents_yet') }} @endforelse @if(! $a->isPaid() && $a->status !== 'Rejected' && $a->totalFee() > 0 && ! $a->payment_claimed_at) @endif @endforeach
@foreach($applications as $a) @if(! $a->isPaid() && $a->status !== 'Rejected' && $a->totalFee() > 0 && ! $a->payment_claimed_at) @endif @endforeach
@endsection