@props(['records', 'countryCodes' => []])
| No. | Name | Nationality | Passport / ID | Listed Date | Action | |
|---|---|---|---|---|---|---|
| {{ ($records->currentPage() - 1) * $records->perPage() + $loop->iteration }} | {{-- NAME --}}@php $fullName = trim( ($record->FIRST_NAME ?? '') . ' ' . ($record->SECOND_NAME ?? '') . ' ' . ($record->THIRD_NAME ?? '') . ' ' . ($record->FOURTH_NAME ?? ''), ); @endphp {{ $fullName !== '' ? $fullName : ($record->NAME_ORIGINAL_SCRIPT ?: '-') }} | {{-- NATIONALITY --}}
@php
$iso3 = $record->NATIONALITY
? $countryCodes[strtolower(trim($record->NATIONALITY))] ?? null
: null;
$flagCode = $this->getFlagCode($iso3);
@endphp
@if ($record->NATIONALITY)
@if ($flagCode)
@endif
{{ $record->NATIONALITY }}
@else
-
@endif
|
{{-- PASSPORT --}}
{{ $record->PASSPORT ?: '-' }} | {{-- LISTED DATE --}}{{ $record->LISTED_ON ? \Carbon\Carbon::parse($record->LISTED_ON)->format('d/m/Y') : '-' }} | {{-- ACTION --}}
|
|
| No UNSCR 1988 records found. | ||||||