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

{{ __('Fingerprint') }}

{{ __('Manage and track fingerprint records for candidates.') }}

@can('fingerprint.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 (in_array($record->status, ['completed', 'approved'], true)) @if ($record->recruitment?->manpowerApproval) {{ __('Manpower Approval') }} @else {{ __('Next: Manpower') }} @endif @elseif (in_array($record->status, ['pending', 'submitted'], true)) @can('fingerprint.edit')
@csrf
@csrf
@endcan @endif {{ __('View') }} @can('fingerprint.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