@extends('layouts.app') @section('title', 'Kalender Libur') @section('content')

Kalender Libur

Kelola tanggal libur dan aktivitas absensi harian

@if(auth()->user()?->role?->value === 'super_admin') @endif
@if(session('success')){{ session('success') }}@endif @if($errors->any()){{ $errors->first() }}@endif
Periode Deskripsi Tipe Cakupan Absensi Harian Dibuat Oleh @if(auth()->user()?->role?->value === 'super_admin') Aksi @endif @forelse($holidays as $holiday) {{ $holiday->start_date->format('d M Y') }} - {{ $holiday->end_date->format('d M Y') }} {{ $holiday->description }} {{ $holiday->type->label() }} {{ $holiday->scope->label() }} @if($holiday->scope->value === 'per_class')

{{ $holiday->classrooms->pluck('name')->join(', ') ?: '-' }}

@endif {{ $holiday->is_daily_attendance_active ? 'Aktif' : 'Nonaktif' }} {{ $holiday->creator?->name ?? '-' }} @if(auth()->user()?->role?->value === 'super_admin')
@endif @empty Belum ada data kalender libur @endforelse
@if($holidays->hasPages()) {{ $holidays->withQueryString()->links() }} @endif
@if(auth()->user()?->role?->value === 'super_admin')
@csrf
@endif
@endsection