@extends('layouts.app') @section('title', __('Police Clearance')) @push('styles') @endpush @section('content')

{{ __('Police Clearance') }}

{{ __('Manage and track police clearance records.') }}

@can('police-clearance.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 === 'cleared') @elseif ($record->status === 'pending') @can('police-clearance.edit')
@csrf
@csrf
@endcan @endif {{ __('View') }} @can('police-clearance.edit') {{ __('Edit') }} @endcan
{{ __('No records found') }}

{{ __('Create a new record to get started.') }}

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