@props(['records', 'countryCodes' => []])
UN Security Council 1988 Sanctions List (Taliban)
{{ $records->total() }} Records
@forelse ($records as $record) {{-- NO --}} {{-- NAME --}} {{-- NATIONALITY --}} {{-- PASSPORT --}} {{-- LISTED DATE --}} {{-- ACTION --}} @empty @endforelse
No. Name Nationality Passport / ID Listed Date Action
{{ ($records->currentPage() - 1) * $records->perPage() + $loop->iteration }} @php $fullName = trim( ($record->FIRST_NAME ?? '') . ' ' . ($record->SECOND_NAME ?? '') . ' ' . ($record->THIRD_NAME ?? '') . ' ' . ($record->FOURTH_NAME ?? ''), ); @endphp {{ $fullName !== '' ? $fullName : ($record->NAME_ORIGINAL_SCRIPT ?: '-') }} @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
{{ $record->PASSPORT ?: '-' }} {{ $record->LISTED_ON ? \Carbon\Carbon::parse($record->LISTED_ON)->format('d/m/Y') : '-' }}
No UNSCR 1988 records found.
{{ $records->links() }}