@php $addLeadAgentPermission = user()->permission('manage_leave_setting'); $approveRejectPermission = user()->permission('approve_or_reject_leaves'); @endphp

@lang('app.menu.editLeaves')

@if (isset($defaultAssign)) @else @endif
@if ($addLeadAgentPermission == 'all' || $addLeadAgentPermission == 'added') @endif
@if ($approveRejectPermission == 'all')
@endif
@if ($leave->status == 'rejected')
@endif
@forelse($leave->files as $file) @if ($file->icon == 'images') @else @endif @empty
@endforelse
@lang('app.save') @lang('app.cancel')