|
{{ $currentDate->format('d M Y') }}
|
@if ($isHoliday)
Holiday
|
@else
@if (!empty($classSection['DateWiseCounts']) &&
isset($classSection['DateWiseCounts'][$datenew->setTime(0, 0, 0)->format('Y-m-d H:i:s')]))
@php
$counts = $classSection['DateWiseCounts'][$datenew->setTime(0, 0, 0)->format('Y-m-d H:i:s')];
@endphp
{{ $counts['total_present'] }} |
{{ $counts['total_absent'] }} |
{{ $counts['total_count'] }} |
@else
@php
$checkDate = $currentDate->copy()->setTime(11, 20, 20);
$isWeekend = in_array($checkDate->dayOfWeek, [0, 6]);
$isOpenWeekend = in_array($checkDate->format('Y-m-d'), $weekends);
if ($isWeekend && $isOpenWeekend) {
$status = 'Not Marked';
} elseif ($isWeekend) {
$status = 'Weekend';
} else {
$status = 'Not Marked';
}
@endphp
{{ $status }}
|
@endif
@endif
@endforeach