@php $pciEoTypeOptions = ['Substantive Charge', 'Additional Charge', 'Look After Charge']; $pciEoLegacyTypeMap = [ 'Full Time' => 'Substantive Charge', 'Addl Charges' => 'Additional Charge', 'Part Time' => 'Look After Charge', ]; @endphp {{-- Step 9: Executing Officer --}}
@if($pciIiiAEdit)
@endif
@if($pciIiiAEdit)@endif @foreach($pciIiiAExecutingOfficerRows as $ei => $eRow) @php $pciEoCharge = $eRow['charge_type'] ?? ($eRow['type'] ?? ''); if (isset($pciEoLegacyTypeMap[$pciEoCharge])) { $pciEoCharge = $pciEoLegacyTypeMap[$pciEoCharge]; } $pciEoPosting = $eRow['date_of_posting'] ?? ($eRow['appointment_date'] ?? ''); if ($pciEoPosting !== '' && $pciEoPosting !== null && ! preg_match('/^\d{4}-\d{2}-\d{2}$/', (string) $pciEoPosting)) { try { $pciEoPosting = \Illuminate\Support\Carbon::parse($pciEoPosting)->format('Y-m-d'); } catch (\Throwable $e) { $pciEoPosting = ''; } } $pciEoRelieved = $eRow['relieved_date'] ?? ''; if ($pciEoRelieved !== '' && $pciEoRelieved !== null && ! preg_match('/^\d{4}-\d{2}-\d{2}$/', (string) $pciEoRelieved)) { try { $pciEoRelieved = \Illuminate\Support\Carbon::parse($pciEoRelieved)->format('Y-m-d'); } catch (\Throwable $e) { $pciEoRelieved = ''; } } $pciEoRemarks = $eRow['remarks'] ?? ($eRow['leave'] ?? ''); @endphp @if($pciIiiAEdit) @endif @endforeach
Name Designation BPS Contact Email Charge Type Date of Posting Relieved Date Remarks
@if(!$pciIiiAEdit && $pciEoCharge !== '') @endif