@php // Medical Status $medicalStatus = strtoupper($recruitment->medical?->result ?? 'PENDING'); $statusClass = 'status-pending'; if (in_array($medicalStatus, ['FIT', 'PASSED', 'OK'])) { $statusClass = 'status-ok'; } elseif (in_array($medicalStatus, ['UNFIT', 'FAILED', 'FAIL'])) { $statusClass = 'status-fail'; } // Agent Code $agentCode = $recruitment->agent ? 'AG' . str_pad((string) $recruitment->agent->id, 5, '0', STR_PAD_LEFT) : '—'; @endphp
{{ strtoupper(config('app.name', 'RECRUITMENT ERP')) }}
{{ config('app.name', 'MANPOWER RECRUITMENT') }}
Candidate Entry Card
@if (!empty($barcodeBase64)) Barcode @endif
Scan for verification
@if (!empty($photoData)) Photo @endif
Entry Date {{ $recruitment->created_at?->format('d/m/Y') ?? '—' }} Company {{ Str::limit($recruitment->company?->name, 15) ?? '—' }}
Candidate Code {{ $recruitment->tracking_number ?? '—' }} Name {{ Str::limit($holder?->full_name, 15) ?? '—' }}
Passport No {{ $holder?->passport_number ?? '—' }} Passport Expiry {{ $holder?->passport_expiry_date?->format('d/m/Y') ?? '—' }}
Medical Status {{ $medicalStatus }} Country {{ $recruitment->country?->name ?? '—' }}
Agent {{ Str::limit($recruitment->agent?->name, 12) ?? '—' }} Printed On {{ now()->format('d/m/Y') }}