@php $updateLeaveQuotaPermission = user()->permission('update_leaves_quota'); @endphp
@lang('messages.leaveQuotaShowing', ['start_date' => $leaveStartDate, 'end_date' => $leaveEndDate])
@if ($updateLeaveQuotaPermission == 'all')
@lang('modules.leaves.leaveType') @lang('modules.leaves.noOfLeaves') @lang('app.action') @foreach ($employeeLeavesQuotas as $key => $leavesQuota) @if($leavesQuota->leaveType && $leavesQuota->leaveType->leaveTypeCondition($leavesQuota->leaveType, $employee) && ($leavesQuota->leaveType->deleted_at == null || $leavesQuota->leaves_used > 0) )
@endif @endforeach @if (!$hasLeaveQuotas) @endif
@lang('app.cancel')
@endif
@include('employees.leaves_quota')