@extends('AdminLte.template') @section('title') CL Entitlement @endsection @section('ExternalCss') @parent @endsection @section('Content') @if(!empty($leaveData))
{{ Form::open(['action' => 'HrmsCLLeaveEntitlementController@create','autocomplete' => 'off','id' => 'cladd']) }} @php $norecord=0; @endphp @foreach ($leaveData as $key=>$data) @php $date3 = date('Y-m-d', strtotime("+3 months", strtotime($data->employee_hire_date))); $date4 = date('Y-m-d', strtotime("+4 months", strtotime($data->employee_hire_date))); $date5 = date('Y-m-d', strtotime("+5 months", strtotime($data->employee_hire_date))); $month_completed=0; if($date5<=date("Y-m-d")){ $month_completed=5; } else if($date4<=date("Y-m-d")){ $month_completed=4; } else if($date3<=date("Y-m-d")){ $month_completed=3; } @endphp @if(array_key_exists($data->employee_id,$record)&&($record[$data->employee_id]!=0)) @php $norecord=1; @endphp @endif @endforeach @if($norecord==0) @endif

CL Leave Entitlement


  Emp Id     Name Joining Date Month Completed (As on Today) CL Eligibility (for current year)
  {{$data->employee_id}}     {{$data->employee_name}} {{$data->employee_hire_date}} {{$month_completed}} {{$record[$data->employee_id]}}
No Record Found
     

{{ Form::close() }}
@if(session()->has('successMessage'))
× {{ session()->get('successMessage') }}
@endif @if(session()->has('errorMessage'))
× {{ session()->get('errorMessage') }}
@endif
@else

CL Leave Entitlement


  Emp Id     Name Joining Date Month Completed (As on Today) CL Eligibility (for current year)
No Record Found
@endif @endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection