@extends('layouts.master') @section('title', 'Dashboard') @push('css') @endpush @section('content')

Dashboard

Hello, {{ auth()->user()->name }}.

@if (isset(auth()->user()?->student?->currentBatch?->batch?->title)) You're enrolled to the {{ auth()->user()->student->currentBatch?->batch?->title }}. See the following table to check your class schedules. @else You're not enrolled to any batch. @endif

@if (count($classSchedules) > 0) @foreach ($classSchedules as $schedule) @endforeach @else @endif
Day Time Teacher
{{ Carbon\Carbon::parse($schedule->date)->format('d F, Y') }} ({{ $schedule->day_name }}) {{ Carbon\Carbon::parse($schedule?->batchDay?->start_time)->format('h:i A') }} - {{ Carbon\Carbon::parse($schedule?->batchDay?->end_time)->format('h:i A') }} {{ $schedule->batchDay->teacher_name }}
No schedule found.
{{--
Total Attendance
{{ $user?->student?->currentBatch?->attendance->count() }}
Total Present
{{ $user?->student?->currentBatch->total_present() }}
Total Absent
{{ $user?->student?->currentBatch->total_absent() }}
Total Late
{{ $user?->student?->currentBatch->total_late() }}
--}}
@endsection