@extends('AdminLte.template') @section('title') My Leave List @endsection @section('ExternalCss') @parent @endsection @section('Content')
{{ Form::open(['action' => 'HrmsEmployeeLeaveListController@employeeLeaveList','name' => 'leaveListForm','autocomplete' => 'off']) }}
My Leave List
@php if(isset($fromDate)){ $fDate = $fromDate; }else{ $fDate = date('Y-m-d'); } if(isset($toDate)){ $tDate = $toDate; }else{ $tDate = date('Y-m-d'); } @endphp
Note: Comp off balance is not shown as it is applicatblle only upto one month of extra working. See balance whie applying leave.
|
---|
Sr | From Date | To Date | Employee Name | Partial Days | Half Day | Leave Type | {{--Leave Balance | --}}Number of Days | Status | Comment | Approver Comment | Approver By | Approver Date | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $i++ }} | {{\Helper::getDisplayDate($leaves->leave_from)}} | {{\Helper::getDisplayDate($leaves->leave_to)}} | {{$leaves->employee_name}} | {{$partialDays}} | {{ ($leaves->is_half_day == 'Y') ? 'Yes' : 'No' }} {!! $leaves->apply_for==1 ? '- 1st Half' : ($leaves->apply_for==2?'- 2nd Half' :'') !!} | {{ $leaves->leave_type_name }} | {{--{{ $leaves->Code!="COFF" ? $leaveBalance : '' }} | --}}{{$leaves->no_of_leaves}} | {{$leaveStatus}} | {{$leaves->comment}} | {{$leaves->approver_comment}} | {{$leaves->lastmodified_by}} | {{$leaves->leave_status!='pending' ? date("d-m-Y",strtotime($leaves->lastmodified_date)): ''}} | ||||||||||
{{$employeeLeaveList->appends(['fromDate' => $fromDate, 'toDate' => $toDate,'empLeaveStatus'=>$empLeaveStatus])->links() }} | @else@endif |