@extends('admin.layout.master') @section('content') @include('flash-message')

Department Wise Roster Report

@include('payroll.includes.printAndExcel')
@if(count($rosters)>0)
{{--
--}} @include('payroll.report_header',['store_address'=>true,'store_email'=>true,'contact_info'=>true,'text_align'=>"text-center"])
Department Wise Roster Report
@if(request()->department_id) {{department(request()->department_id)->name}} @endif
@foreach ($rosters as $employee_id => $roster) @php $employee = $roster->flatten(1)->first()->emp_info; @endphp @foreach ($week_days as $day) @endforeach {{-- {!! implode("
",$roster[$id]->pluck("id")->toArray()) !!} --}} @foreach ($week_days as $id=> $day) @endforeach @endforeach
Name: {{$employee->emp_name}} Code: {{$employee->emp_code}}
{{$day}}
@foreach ($roster[$id] as $list) @php $shift = $list->fetch_shift_info_data ?? $shift = $list->fetch_shift_info_data; @endphp

{{$shift ? $shift->name : null}} {{ count($shift->shift_details) == 0 ? "(=".($shift->shift_code)."=)" : null}}

@endforeach
@else @if(request()->filter)

No Data Found

@endif @endif
@endsection @section('script') {{-- --}} @endsection