@extends('AdminLte.template') @section('title') Approve Leave @endsection @section('ExternalCss') @parent @endsection @section('Content')
{{ Form::open(['name' => 'approveleaveForm', 'autocomplete' => 'off']) }}
@php if (isset($fromDate)) { $fDate = $fromDate; } else { $fDate = date('Y-m-d'); } if (isset($toDate)) { $tDate = $toDate; } else { $tDate = date('Y-m-d'); } if (isset($empLeaveStatus)) { $empLeaveStatus = $empLeaveStatus; } else { $empLeaveStatus = 'pending'; } @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 | Current Balance | Number of Days | Status | Comment | Approver Comment | Action | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $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 }} | @php $btnDisableOrNot = $leaves->leave_status == 'rejected' || $leaves->leave_status == 'cancelled' ? 'disabled' : ''; @endphp@if ($leaves->finalize_datetime==null || $leaves->finalize_datetime=='') @else @endif | |||||||||||
{{ $employeeLeave->appends(['fromDate' => $fromDate, 'toDate' => $toDate, 'empLeaveStatus' => $empLeaveStatus, 'employeeId' => $employeeId])->links() }} | @else@endif |