@extends('layouts.admin') @section('title', 'Visa Submission ' . $item->reference_no) @section('content')
{{ $item->reference_no }}
Back

Applicant: {{ $item->full_name }}

Email: {{ $item->email ?: '-' }}

Phone: {{ $item->phone ?: '-' }}

Passport No: {{ $item->passport_number ?: '-' }}

Country: {{ $item->countryRef?->name ?? '-' }}

Requirement: @if ($item->visaSetup) visaSetup) }}'>{{ $item->visaSetup->title }} @else - @endif

Travel Date: {{ optional($item->travel_date)->format('d M Y') ?: '-' }}

Submitted: {{ $item->created_at?->format('d M Y H:i') }}

@if ($item->message)

Message: {{ $item->message }}

@endif @if ($item->payment_status !== 'not_required') @php($payBadge = $item->payment_status === 'paid' ? 'success' : 'warning')
Visa fee: {{ $item->currency }} {{ number_format((float) $item->fee_amount, 2) }} {{ $item->payment_status === 'paid' ? 'Paid' : 'Payment pending' }} @if ($item->paid_at) on {{ $item->paid_at->format('d M Y H:i') }} @endif
@endif @if ($item->reviewer)

Last reviewed by {{ $item->reviewer->name }} on {{ $item->reviewed_at?->format('d M Y H:i') }}

@endif
Handled by: @if ($item->assignee) {{ $item->assignee->name }} @if ($item->due_date) Due {{ $item->due_date->format('d M Y') }}{{ $item->isOverdue() ? ' — overdue' : '' }} @endif @php($pBadge = ['urgent' => 'danger', 'high' => 'warning', 'normal' => 'secondary', 'low' => 'light'][$item->priority] ?? 'secondary') {{ ucfirst($item->priority) }} priority @else Unassigned @endif
@if ($item->assignment_note)

Instructions: {{ $item->assignment_note }}

@endif @if ($item->assignee && $item->assigner)

Assigned by {{ $item->assigner->name }} on {{ $item->assigned_at?->format('d M Y H:i') }}

@endif
Submitted Documents ({{ $item->documents->count() }})
@forelse ($item->documents as $doc) @empty @endforelse
Requirement File Size Status Action
{{ $doc->requirementDocument?->name ?? 'Additional' }} {{ $doc->document_name }} {{ $doc->human_size }} @php($b = ['accepted' => 'success', 'rejected' => 'danger'][$doc->status] ?? 'secondary') {{ ucfirst($doc->status) }} @if ($doc->remarks)
{{ $doc->remarks }}
@endif
Download
@csrf @method('PATCH')
@csrf @method('PATCH')
No files submitted.
Assign Employee
@if ($employees->isEmpty())

No active employee records to assign. Add one under HR & Payroll → Employees first.

@else
@csrf @method('PATCH') @unless ($canAssign) {{-- Locked to your own profile; the controller ignores a posted employee anyway. --}}

You can only take this submission yourself.

@endunless
due_date?->format('Y-m-d')) }}'>

The assignee sees this submission on their My Tasks screen and can work it from there.

@endif
Review
@csrf @method('PUT')

@if ($item->visa_application_id) visa_application_id) }}'>Open Visa Application @else
@csrf
@endif
Customer Document Library
@if ($item->customer)

customer) }}'> {{ $item->customer->full_name }} ({{ $item->customer->customer_code }})

Every file submitted here is stored permanently against this customer and can be reused for future visa applications.

    @forelse ($item->customer->documents->sortByDesc('created_at')->take(15) as $doc)
  • {{ $doc->document_name }}
    {{ $doc->document_type }} · {{ $doc->created_at?->format('d M Y') }}
  • @empty
  • No stored documents.
  • @endforelse
@else

No customer linked to this submission.

@endif
@endsection