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

Late Adjust With Leave

@if(count($attendances) >0)
@csrf @php $i =1; @endphp @foreach ($attendances as $data) @php $employee = $data['employee_info']; $joining_date = new DateTime($employee->joining_date); $today_date = new DateTime(date('Y-m-d')); $interval = $today_date->diff($joining_date); $emp_job_duration =($interval->y*12)+$interval->m; $date_from = "01-" . $company_settings->financial_start_month; $months_last_date = date('t', strtotime($company_settings->financial_end_month)); $date_to = $months_last_date . "-" . $company_settings->financial_end_month; $leave_types = get_employee_leave_types($employee,$emp_job_duration,$date_from,$date_to); // dd($leave_types); @endphp @endforeach
SL Emp Code Name Late Leave Type Adjust Days
{{$i++}} {{$employee->emp_code}} {{$employee->emp_name}} {{$data['attendances']->whereNotNull('late')->count()}}
@endif
@endsection @section('script') @endsection