@php $editLeavePermission = user()->permission('edit_leave'); $deleteLeavePermission = user()->permission('delete_leave'); $approveRejectPermission = user()->permission('approve_or_reject_leaves'); @endphp

@lang('app.multipleDetails')

@php if($pendingCountLeave != count($multipleLeaves)){ $approveTitle = __('modules.leaves.approveRemaining'); $rejectTitle = __('modules.leaves.rejectRemaining'); } else { $approveTitle = __('modules.leaves.approveAll'); $rejectTitle = __('modules.leaves.rejectAll'); } @endphp @if ($pendingCountLeave > 0 && $approveRejectPermission == 'all') {{$approveTitle}} {{$rejectTitle}} @endif
@include('leaves.multiple-leave-table')