@extends('layout.mainlayout') @section('content') @php $employeeType = auth()->user()->employee_type; @endphp
{{-- SAFETY CHECK --}} @if($leave->lead_status !== 'pending' || $leave->manager_status !== 'pending')
This leave request can no longer be edited.
@else
@csrf @method('PUT')
{{-- DATE RANGE --}}
{{-- INTERNATIONAL --}} @if($employeeType === 'international')
@endif {{-- DOMESTIC --}} @if($employeeType === 'domestic')
@endif {{-- MANAGER (ALL TYPES) --}}
{{-- REASON --}}
Cancel
@endif
@endsection