@extends('layouts.app') @php $typeColors = [ 'public' => 'primary', 'national' => 'success', 'religious' => 'info', 'company' => 'warning', 'optional' => 'secondary', ]; @endphp @section('title', 'Holidays') @section('header', 'Holidays') @section('subheader', 'Company holiday list') @section('header-actions')
Calendar View @can('create', App\Models\Holiday::class) New Holiday @endcan
@endsection @section('content')
Reset
@forelse ($holidays as $holiday) @empty @endforelse
Title Date Day Type Actions
{{ $holiday->title }} @if ($holiday->description)
{{ Str::limit($holiday->description, 70) }}
@endif
{{ $holiday->date->format('M d, Y') }} {{ $holiday->date->format('l') }} {{ ucfirst($holiday->type) }} @can('update', $holiday) @endcan @can('delete', $holiday) @endcan
No holidays found.
{{ $holidays->links() }}
@endsection