@if (auth()->user()->role == 'admin' || auth()->user()->role == 'guru')
@endif
@can('admin')
@endcan
@can('siswa')
@endcan
@can('walikelas')
@php
$role = Auth::user()->role;
$date = date('Y-m-d');
// $date = date('2023-09-07');
$month = Carbon::now()->format('m');
$dateString = $date;
list($year, $month, $day) = explode('-', $dateString);
$timestamp = mktime(0, 0, 0, $month, $day, $year);
$timestamp = strtotime($dateString);
$key = $timestamp . '_' . Str::random(10);
$hariLibur = HariLibur::get()->pluck('tgl');
$akhirPekan = Carbon::parse($date);
@endphp
@if ($hariLibur->contains($date) || $akhirPekan->dayOfWeek === 0 || $akhirPekan->dayOfWeek == 6)
{{-- NULL --}}
@else
@endif
@endcan
@can('piket')
@endcan