@if ($currentInstance) {{ __('app.Current Session (:day :time)', [ 'day' => __($dayOfWeek), 'time' => \Illuminate\Support\Carbon::createFromFormat('H:i:s', $currentTime)->format('H:i'), ]) }}

{{ optional($currentInstance->scheduleSlot)->name ?? 'Current slot' }}

{{-- show the actual schedulable title, whatever it is --}} @php $schedulable = $currentInstance->schedulable; @endphp {{ $schedulable->title ?? $schedulable->name ?? 'Scheduled activity' }}

@php $todaySession = $currentInstance->scheduleSlot?->sessions?->first(); @endphp @if ($todaySession && $todaySession->teachers->isNotEmpty())

Teacher

{{ $todaySession->teachers->pluck('name')->join(', ') }}

@endif
{{-- show today’s session time + location --}} @php $todaySession = $currentInstance->scheduleSlot?->sessions ?->first(); // we filtered to today in the widget @endphp @if ($todaySession)
{{ \Illuminate\Support\Carbon::createFromFormat('H:i:s', $todaySession->start_time)->format('H:i') }} – {{ \Illuminate\Support\Carbon::createFromFormat('H:i:s', $todaySession->end_time)->format('H:i') }}
@if ($todaySession?->location)
{{ $todaySession->location }}
@endif
@endif
@endif