@extends('layouts.app') @section('title', 'Trainer Dashboard') @section('content') @include('partials.flash') {{-- Hero + create --}}

Welcome, {{ auth()->user()->name }}

Schedule training, mark attendance and share your notes with attendees.

add Create Session
{{-- Stats --}}
@php $tiles = [ ['label' => 'Upcoming Sessions', 'value' => $stats['upcoming'], 'icon' => 'event_upcoming', 'class' => 'text-primary'], ['label' => 'Completed Sessions', 'value' => $stats['past'], 'icon' => 'history', 'class' => 'text-secondary'], ['label' => 'Total Attendees', 'value' => $stats['attendees'], 'icon' => 'groups', 'class' => 'text-on-secondary-container'], ]; @endphp @foreach($tiles as $tile)
{{ $tile['icon'] }}

{{ $tile['value'] }}

{{ $tile['label'] }}

@endforeach
{{-- Upcoming --}}
event_upcoming

Your Upcoming Sessions

All trainings
@if($upcoming->isEmpty())
event_available

No upcoming sessions

Create your first training session to get started.

add Create Session
@else
@foreach($upcoming as $session) @endforeach
Session Date & Time Format Booked Action
{{ $session->title }} {{ $session->session_date->format('j M Y') }} ยท {{ \Carbon\Carbon::parse($session->start_time)->format('H:i') }} {{ $session->format === 'in_person' ? 'In-Person' : 'Online' }} {{ $session->booked_count }}{{ $session->capacity ? ' / ' . $session->capacity : '' }} Manage
@endif @endsection