@extends('AdminLte.template') @section('title') Leave List @endsection @section('ExternalCss') @parent @endsection @section('Content')
{{ Form::open(['action' => 'HrmsLeaveListController@Leave','name' => 'leaveListForm','autocomplete' => 'off']) }}
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 |
---|
Sr | From Date | To Date | Employee Name | Partial Days | Half Day | Leave Type | Leave Balance | Number of Days | Status | Comment | Approver Comment | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $i++ }} | {{\Helper::getDisplayDate($leaves->leave_from)}} | {{\Helper::getDisplayDate($leaves->leave_to)}} | {{$leaves->employee_name}} | {{$partialDays}} | {{ ($leaves->is_half_day == 'Y') ? 'Yes' : 'No' }} | {{ $leaves->leave_type_name }} | {{$leaveBalance}} | {{$leaves->no_of_leaves}} | {{$leaveStatus}} | {{$leaves->comment}} | {{$leaves->approver_comment}} | ||||||||||||
{{$employeeLeaveList->appends(['fromDate' => $fromDate, 'toDate' => $toDate,'empLeaveStatus'=>$empLeaveStatus,'employeeId'=>$employeeId])->links() }} | @else@endif |