@extends('admin.layouts.layouts') @section('title', 'Leave Setting') @section('content')
@csrf
Leave Type Allocations

Total allocated for normal leaves: 0/{{ old('total_leave', $currentSetting->total_leave ?? 0) }}

Leave Type
Allocate Leaves
Carry Forward Leaves
@foreach($leaveTypes as $type)
@if($type->carry_forward)
@else
@endif
@endforeach
Leave Setting History
@if($leaveSettings->isEmpty())

No leave settings found.

@else
@foreach($leaveSettings as $setting) @endforeach
Effective Month Total Days Created At Created By Updated At Updated By Actions
{{ date('F, Y', strtotime($setting->effective_date)) }} {{ $setting->total_leave }} {{ $setting->created_at->format('d-m-Y') }} {{ $setting->creator->name }} {{ isset($setting->updated_by) ? $setting->updated_at->format('d-m-Y') : '-' }} {{ isset($setting->updated_by) ? $setting->editor->name : '-' }}
@endif
@endsection @section('page-js') @endsection