@extends('admin.layout.master') @section('content')

Department Wise In/Out Report

@if(count($attendances) >0)
@include('payroll.includes.printAndExcel')
@endif
@if(count($attendances) >0)
Department Wise Attendance Report
@foreach ($attendances as $data) @if(count($data['attendances'])>0)
@include('payroll.report_header',['store_address'=>true,'store_email'=>true,'contact_info'=>true,'text_align'=>"text-center"]) @foreach ($data['attendances'] as $attendance ) {{-- @dd( $attendance ) --}} @endforeach
Department Wise In/Out Report {{carbon()->parse($date_from)->format('d-m-Y')}} upto {{carbon()->parse($date_to)->format('d-m-Y')}}
Employee Name : {{$data['employee_info']->emp_name}} Employee Code : {{$data['employee_info']->emp_code}}
Department : {{ $data['employee_info']->fetch_department ? $data['employee_info']->fetch_department->name : null}} Designation : {{$data['employee_info']->fetch_designation ? $data['employee_info']->fetch_designation->name : null}}
Official In-Time Actual In-Time Status Official Out-Time Actual Out-Time Status Hour Rep/Exc Of
{{$attendance['shift_in_time']}} {{$attendance['in_time'] ? date('d-m-Y h:i A', $attendance['str_in_time']) : "--" }} {{$attendance['shift_out_time']}} {{$attendance['out_time'] ? date('d-m-Y h:i A', $attendance['str_out_time']) : "--" }} {{ucfirst($attendance['status'])}} {{$attendance['working_time']}} {{$attendance['exchange_or_replace_by']}}
Total Duties - {{$data['attendances']->where('status','Present')->count()}} Total Leaves - {{$data['attendances']->where('status','Leave')->count()}} OT Ex/Rep Lates - {{$data['attendances']->whereNotNull('late')->count()}} Early Leaves - {{$data['attendances']->whereNotNull('early_leave')->count()}}
@endif @endforeach
@else @if(request()->get('search') !=null)

No Data Found

@endif @endif @endsection @section('script') @endsection