@extends('layouts.backend') @section('content')

Holidays - {{ $year }}

{{ __('Export Excel (CSV)') }} @if(auth()->user()?->hasPermission('holiday.create')) {{ __('Add Holiday') }} @endif
@include('partials.flash')
@forelse($holidays as $holiday) @empty @endforelse
{{ __('Date') }} {{ __('Day') }} {{ __('Title') }} {{ __('Type') }} {{ __('Optional') }} {{ __('Description') }} {{ __('Actions') }}
{{ $holiday->holiday_date?->format('d M Y') }} {{ $holiday->holiday_date?->format('l') }} {{ $holiday->title }} {{ __(ucfirst($holiday->holiday_type)) }} @if($holiday->is_optional) {{ __('Yes') }} @else {{ __('No') }} @endif {{ $holiday->description ?: '-' }} @if(auth()->user()?->hasPermission('holiday.update')) @endif @if(auth()->user()?->hasPermission('holiday.delete'))
@csrf @method('DELETE')
@endif
No holidays configured for {{ $year }}.
{{ $holidays->links('pagination::bootstrap-5') }}

{{ __('Click any highlighted date to view holiday details.') }}

{{ __('Holiday') }} {{ __('Weekend') }}
@endsection @push('scripts') @endpush