@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Holiday Setup') @section('content')

Holiday Setup

Define company holidays by date range and branch scope.

@can('Holiday-create') @endcan @can('Holiday-export') {{ __('Export') }} @endcan
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
{{ (int) ($holidayStats->total ?? 0) }}
{{ __('Holidays') }}
{{ (int) ($holidayStats->total_days ?? 0) }}
{{ __('Total Days') }}
{{ (int) ($holidayStats->all_branch_count ?? 0) }}
{{ __('All-Branch') }}
{{ __('Holiday List') }} {{ __('Clear Filters') }}
@can('Holiday-delete')
@endcan
@forelse($holidays as $holiday) @empty @endforelse
{{ __('Description') }} {{ __('From') }} {{ __('To') }} {{ __('Days') }} {{ __('Branch') }} {{ __('Action') }}
{{ $holiday->description }} {{ $holiday->from }} {{ $holiday->to }} {{ $holiday->number_of_holiday }} @if($holiday->warehouse_id === null) {{ __('All Branches') }} @else {{ $holiday->warehouse?->name ?? __('Branch') }} @endif
@can('Holiday-edit') @endcan @can('Holiday-delete') @endcan
{{ __('No holidays found for the selected filters.') }}
@if($holidays->hasPages()) @endif
@include('modals.delete_modal') @endsection @section('modal') @endsection @section('script') @endsection