@extends('layouts.app') @section('title', __('Appointments')) @section('content')

{{ __('Appointments') }}

@can('visa.edit'){{ __('Add Appointment') }}@endcan
@if(session('success'))
{{ session('success') }}
@endif
{{ __('Clear') }}
@forelse($records as $record)@empty@endforelse
{{ __('Date') }}{{ __('Tracking') }}{{ __('Candidate') }}{{ __('Location') }}{{ __('Status') }}{{ __('Actions') }}
{{ $record->appointment_date?->format('Y-m-d H:i') ?? '—' }}{{ $record->visa?->recruitment?->tracking_number ?? '—' }}{{ $record->visa?->recruitment?->passportHolder?->full_name ?? '—' }}{{ $record->location ?: '—' }}@can('visa.edit'){{ __('Edit') }}
@csrf @method('DELETE')
@endcan @if($record->visa){{ __('Open visa') }}@endif
{{ __('No records found.') }}
{{ $records->links() }} @endsection