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

@lang('app.menu.leaves') @lang('app.details')

@lang('app.apply') @lang('app.date') - {{ $leave->created_at->timezone(global_setting()->timezone)->format(global_setting()->date_format .' ' . global_setting()->time_format) }}
@php $leaveType = '' . $leave->type->type_name . ''; if ($leave->status == 'approved') { $class = 'text-light-green'; $status = __('app.approved'); } elseif ($leave->status == 'pending') { $class = 'text-yellow'; $status = __('app.pending'); } elseif ($leave->status == 'cancelled') { $class = 'text-orange'; $status = __('app.cancelled'); } else { $class = 'text-red'; $status = __('app.rejected'); } $paidStatus = ' ' . $status; $reject_reason = !is_null($leave->reject_reason) ? $leave->reject_reason : '--'; @endphp

@lang('modules.leaves.applicantName')

@if ($leave->duration == 'half day')

@lang('app.duration')

@lang('modules.leaves.halfDay') @if (!is_null($leave->half_day_type)) {{ ($leave->half_day_type == 'first_half') ? __('modules.leaves.firstHalf') : __('modules.leaves.secondHalf') }} @endif

@endif @if (!is_null($leave->approved_by))

@lang('modules.leaves.approvedBy')

@endif @if (!is_null($leave->approved_at)) @endif @if ($leave->status == 'rejected') @endif