@extends('Reports.template') @section('title') Leave Entitlement Report @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); @endphp @if($type=="D") @endif @foreach($leaveEnt as $key=>$leaveEnt) @php $result = ($leaveEnt->entitlement - $leaveEnt->leave_taken); $get_period=$date; $get_period=explode(' - ',$get_period); $year=date('Y',strtotime($get_period[0])); $end_date=$year.'-'.$leavePeriod->start_month.'-'.$leavePeriod->start_day; $end_date = date('Y-m',strtotime("+1 Year",strtotime($end_date))); $end_date = date('Y-m',strtotime("-1 Month",strtotime($end_date))); $start_date = date('Y-m',strtotime($leaveEnt->month_up_to)); $ts1 = strtotime($start_date); $ts2 = strtotime($end_date); $year1 = date('Y', $ts1); $year2 = date('Y', $ts2); $month1 = date('m', $ts1); $month2 = date('m', $ts2); $diff = (($year2 - $year1) * 12) + ($month2 - $month1); if($leaveRules->accrue_frequency_year1=="Y") { if($leaveRules->accrre_when=="S") { $Projected_leave=$result; } else { $Projected_leave=$leaveRules->accrue_days+$result; } } else { $Projected_leave=($diff*($leaveRules->accrue_days/12))+$result; } if($Projected_leave>$leaveRules->carry_limit) { $deduction_leave=$Projected_leave-$leaveRules->carry_limit; } else { $deduction_leave=0; } @endphp {{-- --}} @if($type=="D") @if(isset($leave_entitlement_report)) @foreach($leave_entitlement_report[$leaveEnt->leave_period_from][$leaveEnt->employee_id] as $key=>$item) @endforeach @endif @endif @endforeach {{-- --}} {{-- --}} {{-- --}}
@if($businessEntityMasterData[0]->logo != null) Pharmacy Logologo )}}"/> @endif
{{ $businessEntityMasterData[0]->name }}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
{{"Phone : ".$businessEntityMasterData[0]->tel1}}
Leave Entitlement Report Leave Period : Leave Type : Carry Fowrad Limit: {{ $leaveRules->carry_limit }} As on: {{$currentTime->format('d/m/Y H:i:s ')}}
Sr No. Employee Id Employee Name Status Hire Date Conform Date Last Working Date Month Upto Leave Entitlements Leave Taken Till Now Leave Balance Projected Leave Balance Deduction Leave Carry Forward Leave
Type Leave Month Opening Balance New Leave Leave Taken closing Balance Laps Modify Date
{{$count}} {{$leaveEnt->employee_id}} {{$leaveEnt->employee_name }} {{$leaveEnt->employee_status }} {{date("d/m/Y",strtotime($leaveEnt->employee_hire_date))}} {{date("d/m/Y",strtotime($leaveEnt->confirmation_date))}} {{$leaveEnt->last_working_date!=null?date("d/m/Y",strtotime($leaveEnt->last_working_date)):'' }} {{date("d/m/Y",strtotime($leaveEnt->month_up_to)) }}  {{$leaveEnt->entitlement}}  {{$leaveEnt->leave_taken}}        0   {{ $empdir->department_name }}  {{ $empdir->employee_gender }}  {{ $empdir->contract_start_date }}  {{ $empdir->employee_dob }}
{{$item->data_type=='C'?'Calculated':'Added'}} {{date("d/m/Y",strtotime($item->leave_month))}} {{$item->op_balance}}  {{$item->new_leaves}}  {{$item->leave_taken}}  {{$item->cl_balance}}    {{$item->entitlement_laps}}  {{ ($item->lastmodified_date!=null)? date("d/m/Y",strtotime($item->lastmodified_date)) : '' }}
{{ $empData->appends(['search' => $search,'searchColumn' => $searchColumn,'searchType' => $searchType])->links() }}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection