@foreach($employeeDetail as $key => $datum) @endforeach
Id Name Email Username Address DOB Gender Phone Status Role Employment Type User Type Joining Date Bank Name Bank Account No Bank Account Type Branch Department Post
{{ $datum->id }} {{ $datum->name }} {{ $datum->email }} {{ $datum->username }} {{ $datum->address }} {{ $datum->dob }} {{ $datum->gender }} {{ $datum->phone }} {{ $datum->status }} {{ $datum->role->name }} {{ $datum->employment_type }} {{ $datum->role->name }} {{ $datum->joining_date }} {{ $datum->accountDetail->bank_name ?? '' }} {{ $datum->accountDetail->bank_account_no ?? '' }} {{ $datum->accountDetail->bank_account_type ?? '' }} {{ $datum->branch->name }} {{ $datum->department->dept_name }} {{ $datum->post->post_name }}