{{-- Modal Header --}}

Application Details

Ref #{{ str_pad($application->id, 6, '0', STR_PAD_LEFT) }}

{{-- Modal Body --}}
{{ strtoupper(substr($application->student_name, 0, 1)) }}

{{ $application->student_name }}

{{ $application->admission_no }} · {{ $application->class_name }} - {{ $application->section_name }}

{{ $application->status }}

Type

{{ $application->application_type }}

@if($application->application_type === 'leave')

Leave Type

{{ $application->leave_type ?? 'N/A' }}

@else

Document

{{ $application->document_type ?? 'N/A' }}

@endif

Subject

{{ $application->subject }}

Description

{{ $application->description }}

@if($application->attachment)

Attachment

@php $ext = pathinfo($application->attachment, PATHINFO_EXTENSION); $filePath = asset('storage/' . $application->attachment); @endphp @if(in_array($ext, ['jpg', 'jpeg', 'png', 'gif'])) Attachment @elseif($ext === 'pdf') @else

Unsupported file type for preview.

@endif
Download / Open Full Size
@endif @if($logs->isNotEmpty())

Status History

@foreach($logs as $log)

{{ str_replace('_', ' ', $log->to_status) }}

{{ \Carbon\Carbon::parse($log->created_at)->format('d M Y, h:i A') }}

@if(!empty($log->remarks))

{{ $log->remarks }}

@endif
@endforeach
@endif