@csrf

Data table for all incoming correspondence register

@foreach ($allData as $key => $item) @endforeach
S/N Name Department Email Mobile Number Action
{{ $key+1 }} {{$item->name}} {{$item->depart}} {{$item->email}} {{$item->phone}}
@endsection