Data table for all incoming correspondence register
S/N
Date of Letter
Date Received
From Whom Received
Institution's Ref.
Subject
Minute To:
Folio
Action
@foreach ($allData as $key => $item)
{{$item->reg_no}}
{{date('d M, Y', strtotime($item->dol)) }}
{{date('d M, Y', strtotime($item->date_received))}}
{{$item->received}}
{{$item->inst_ref}}
{{$item->subject}}
@php
$departArray = json_decode($item->depart, true);
@endphp
{{-- Check if decoding was successful --}}
@if($departArray !== null)
{{-- Loop through the array and display each element --}}
@foreach($departArray as $element)
{{ $element . ',' }} {{-- Display each element --}}
@endforeach
@else
{{-- Handle the case where decoding fails --}}
No Assign Department
@endif