@extends('layouts.team') @section('title', 'My leave') @section('content')
| Dates | Type | Days | Reason | Status | |
|---|---|---|---|---|---|
| {{ $h->from_date->format('j M') }}{{ $h->from_date->eq($h->to_date) ? '' : ' – '.$h->to_date->format('j M') }} {{ $h->from_date->format('Y') }} | {{ $h->type->name }} | {{ $h->days + 0 }} | {{ $h->reason }}@if($h->decision_note) Note: {{ $h->decision_note }} @endif | @if($h->status === 'pending')@endif | |