@extends('adminlte::page') @section('title', config('adminlte.title') . ' | Holidays') @section('content_header')

Holidays

@stop @section('content')
@if (session('success')) @endif @if (session('failed')) @endif @php $currentRemain = $holidays->remain ?? 0; $currentTotal = $holidays->total ?? 0; $currentTaken = $holidays->taken ?? 0; $currentCarryover = $holidays->carryover ?? 0; $currentCOR = $holidays->cor ?? 0; $totalAvailable = $currentRemain + $currentCOR; $nextRemain = $holidaysNextYr->remain ?? 0; $nextTotal = $holidaysNextYr->total ?? 0; $nextTaken = $holidaysNextYr->taken ?? 0; $nextTotalAvailable = $nextRemain + ($holidaysNextYr->cor ?? 0); @endphp
{{-- not in use at the moment

{{ number_format($totalAvailable, 1) }}

Days Available

{{ date('Y') }}

{{ number_format($currentTaken, 1) }}

Days Taken

{{ date('Y') }}

{{ $pendingCount }}

Pending

Requests

{{ $duvetThisYear }}

Duvet Day

{{ date('Y') }}

{{ number_format($nextTotalAvailable, 1) }}

Days Available

{{ date('Y') + 1 }}

{{ $duvetThisYear }}

Duvet Day

{{ date('Y') + 1 }}
--}}
@if ($pendingCount > 0)

Pending Requests: {{ $pendingCount }}

{{-- Pending tables goes here --}}
@foreach ($pendingRequests as $pending) @endforeach
Start Date End Date Type Days Submitted On
{{ date('d/m/Y', strtotime($pending->start_date)) }} {{ date('d/m/Y', strtotime($pending->end_date)) }} {{ $pending->type }} {{ number_format($pending->number_days, 1) }} {{ date('d/m/Y', strtotime($pending->created_at)) }}
@csrf @method('PUT')
@endif
@stop @section('footer')   @stop @section('css') @stop