@extends('layouts.app') @section('title', __('Recruitment Tracking') . ' — ' . \App\Services\BrandingService::appName()) {{-- @push('styles') @endpush --}} @php $stagePositions = array_flip($stages); @endphp @section('content') {{ __('All registrations') }} @can('recruitment.create') {{ __('New registration') }} @endcan {{-- ✅ Modern Filter Form --}}
{{ __('Filter') }} {{ __('Clear') }}
{{-- ✅ Tracking Board Card --}}
{{ __('Tracking board') }}
{{ $items->total() }} {{ __('registrations') }}
@forelse($items as $item) @php $currentIndex = $stagePositions[$item->current_stage] ?? 0; @endphp @empty @endforelse
{{ __('Tracking') }} {{ __('Candidate') }} {{ __('Country') }} {{ __('Stage') }} {{ __('Progress') }} {{ __('Status') }} {{ __('Action') }}
{{ $item->tracking_number }} {{ $item->passportHolder?->full_name ?? '—' }} {{ $item->country?->name ?? '—' }} {{ ucwords(str_replace('_', ' ', $item->current_stage)) }}
{{ $currentIndex + 1 }}/{{ count($stages) }} Completed
{{ __('View') }}
{{ __('No registrations found') }}

{{ __('No registrations match your current filters.') }}

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

{{ __('Stage changes are performed only through the workflow actions on each registration record and are fully audited.') }}

@endsection