@extends('teacher.teacher_dashboard') @section('admin')
{{-- Breadcrumb --}}
{{-- Application Form Card --}}

Apply for Leave

{{-- Info Alert --}}
Note: Please fill out all required fields. Your application will be reviewed by the admin.
@csrf {{-- Leave Type --}}
@error('leave_type')
{{ $message }}
@enderror
{{-- Date Range --}}
@error('from_date')
{{ $message }}
@enderror
@error('to_date')
{{ $message }}
@enderror
{{-- Days Calculation Display --}}
Total Leave Days: 0 day(s)
{{-- Reason --}}
0/1000 characters (minimum 10 characters required) @error('reason')
{{ $message }}
@enderror
{{-- Teacher Information (Read Only) --}}
Applicant Information

Name: {{ $teacher->name }}

Email: {{ $teacher->email }}

Phone: {{ $teacher->phone }}

Teacher ID: {{ $teacher->teacherid ?? 'N/A' }}

{{-- Action Buttons --}}
Cancel
@endsection @section('customjs') @endsection