@extends('admin.layouts.layouts') @section('title', 'Monthly Leave Allocation') @section('page-css') @endsection @section('content')
@csrf
{{ $errors->first('year') }}
@php $firstHalfMonths = $months->slice(0, 6); $secondHalfMonths = $months->slice(6); @endphp
@include('admin.monthly-leave-allocation.leave-allocation-table', ['monthsChunk' => $firstHalfMonths])
@include('admin.monthly-leave-allocation.leave-allocation-table', ['monthsChunk' => $secondHalfMonths])
Monthly Leave Allocation History
@if($yearWiseAllocations->isEmpty())

No leave settings found.

@else @foreach($yearWiseAllocations as $yearRow) @endforeach
Year Created At Created By Updated At Updated By Actions
{{ $yearRow->year }} {{ $yearRow?->created_at?->format('d-m-Y') }} {{ $yearRow?->creator?->name ?? '' }} {{ isset($yearRow?->updated_by) ? $yearRow?->updated_at?->format('d-m-Y') : '' }} {{ isset($yearRow?->updated_by) ? $yearRow?->editor?->name : '' }}
@endif
@endsection @section('page-js') @endsection