@extends('layouts.app') @section('title', __('Visa & MOFA')) @push('styles') @endpush @section('content') {{-- ✅ Header Section --}}

{{ __('Visa & MOFA') }}

{{ __('Manage visa processing and MOFA status updates.') }}

@can('visa.create') {{ __('New Record') }} @endcan
{{-- Pipeline Status Tabs --}} {{-- Filter Bar --}} {{-- Stat Card --}}
{{-- Table Card --}}
@forelse($records as $record) @empty @endforelse
{{ __('Tracking') }} {{ __('Candidate') }} {{ __('Status') }} {{ __('Updated') }} {{ __('Actions') }}
{{ $record->recruitment?->tracking_number ?? '—' }}
{{ $record->recruitment?->passportHolder?->full_name ?? '—' }}
{{ $record->updated_at?->format('M d, Y') }}
@if ($record->status === 'approved') @elseif (in_array($record->status, ['pending', 'submitted'], true)) @can('visa.edit')
@csrf
@csrf
@endcan @endif {{ __('View') }} @can('visa.edit') {{ __('Edit') }} @endcan
{{ __('No records found') }}

{{ __('Create a new record or adjust your filters.') }}

{{-- ✅ Custom Pagination --}}
Showing {{ $records->firstItem() ?? 0 }}–{{ $records->lastItem() ?? 0 }} of {{ $records->total() }} results
{{ $records->appends(request()->query())->links('pagination::bootstrap-5') }}
@endsection