{{-- Success Message --}} @if (session('msg')) @endif {{-- Search Form --}}
UnRead Read
Read Documents
Total: {{ $count }}
@foreach ($sendRecieved as $doc) @endforeach
# ID Letter No Title Sender Destination Updated At Actions
{{ $loop->iteration + ($sendRecieved->currentPage() - 1) * $sendRecieved->perPage() }} {{$doc->id}} {{ $doc->letter_number ?? '-' }} {{ $doc->document_title ?? '-' }} @if ($doc->from_souce_desk == null) {{ $doc->destination->name_ps ?? $doc->from_desk->name_ps }} @elseif($doc->from_souce_desk != null) {{ $doc->from_desk->name_ps }} @else {{ 'NO Assign' }} @endif {{ $doc->to_desk->name_en ?? 'Unknown' }} {{ $doc->updated_at->format('Y-m-d') }} View
{{-- Laravel Pagination --}}
{{ $sendRecieved->withQueryString()->links('pagination::bootstrap-4') }}