@extends('layouts.teacher.layout') @section('content')

Show Leave Application

@include('partials.message')
@if($leave->status != 'pending') @endif

Teacher Name

{{ $leave->teacher->FullName }}

From Date

{{ date('d-m-Y H:i:s',strtotime($leave->from_date)) }}

To Date

{{ date('d-m-Y H:i:s',strtotime($leave->to_date)) }}

Reason

{{ $leave->absentReason->title }}

Remarks

@if($leave->remarks != null) {{ $leave->remarks }} @else -- @endif

Leave Type

{{ $leave->leaveType->name }}

Status

{{ ucfirst($leave->status) }}

Comments

{{ $leave->comments }}

@endsection