@foreach ($rosters as $roster) @if($roster->status == 0) @elseif($roster->status == 1) @else @endif @endforeach
Sl # Employee ID Employee Business Branch Department Start Time End Time Start Date End Date Status
{{ $loop->iteration }} @isset($roster->user->employee_id) {{ $roster->user->employee_id}} @endisset @isset($roster->user->first_name) {{ $roster->user->first_name." ".$roster->user->last_name}} @endisset @isset($roster->business->name){{$roster->business->name}} @endisset @isset($roster->branch->name){{ $roster->branch->name }} @endisset @isset($roster->department->dep_name){{ $roster->department->dep_name }} @endisset {{ $roster->start_time}} {{ $roster->end_time}} {{ $roster->start_date}} {{ $roster->end_date}} Not Started Started Not Completed