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

{{ $serviceType === 'student' ? 'Student Registrations' : ($serviceType === 'hajj_umrah' ? 'Hajj & Umrah Registrations' : 'Recruitments') }}

@can('recruitment.create') New Recruitment @endcan
@if ($serviceType) @endif
Filter
Reset

{{ $items->total() }} recruitments found.

@forelse ($items as $item) @empty @endforelse
Tracking Number Type Package / Due Passport Holder Agent Country Stage Current Status Actions
{{ $item->tracking_number }} {{ match ($item->service_type) {'student' => 'Student','hajj_umrah' => 'Hajj / Umrah',default => 'Overseas'} }} {{ $item->servicePackage?->name ?? '—' }} @if ($item->quoted_amount !== null)
Due: {{ $item->quoted_currency }} {{ number_format((float) $item->remaining_due, 2) }}
@endif
{{ $item->passportHolder?->full_name ?? '—' }} {{ $item->agent?->name ?? '—' }} {{ $item->country?->name ?? '—' }} {{ ucwords(str_replace('_', ' ', $item->current_stage)) }} {{ $item->current_status }} @can('recruitment.view') @endcan @if ($item->selection) @can('selection.view') Selection & Grading @endcan @elseif ($item->current_status !== 'cancelled') @can('selection.create') Selection & Grading @endcan @endif @can('recruitment.view') View @endcan @can('recruitment.edit') Edit @endcan @can('recruitment.delete') Cancel registration @endcan
No registrations found. Adjust the filters or create a new one.
{{ $items->links() }}

This record will be removed. Recruitment and passport holder records are archived or cancelled, never hard-deleted.

@csrf @method('DELETE')
@endsection @push('scripts') @endpush