@extends('layouts.app') @section('content')
{{-- Removed text-white --}}

This Week


@php use Carbon\Carbon; $startOfWeek = Carbon::now()->startOfWeek(); $endOfWeek = Carbon::now()->endOfWeek(); $hasThisWeekData = false; @endphp @for ($i = 0; $i < count($grp_namess); $i++) @php $classDate = isset($date[$i]) ? Carbon::parse($date[$i]) : null; @endphp @if ($classDate && $classDate->between($startOfWeek, $endOfWeek)) @php $hasThisWeekData = true; @endphp
{{ $grp_namess[$i] ?? 'No Group Available' }}
Date: {{ $classDate->format('d-m-Y') }}
Start: {{ $starting_time[$i] ?? 'Not Available' }}
End: {{ $end_time[$i] ?? 'Not Available' }}
@endif @endfor @if (!$hasThisWeekData)

No classes scheduled for this week.

@endif
@include('layouts.footers.auth.footer') @endsection @push('js') @endpush