@if (auth()->user()->isStudent()) @if ($isOpen)

Li-A

Online

@foreach ($messages as $index => $message)
@if ($message['type'] === 'user')
{{ $message['content'] }}
{{ $message['timestamp']->format('H:i') }}
@else
{!! nl2br(e($message['content'])) !!}
{{ $message['timestamp']->format('H:i') }}
@endif
@if ($message['type'] === 'bot' && isset($messageButtons[$index]) && count($messageButtons[$index]) > 0)
@foreach ($messageButtons[$index] as $button) @php $action = $button['action']; $data = isset($button['data']) ? $button['data'] : null; $dataParam = $data !== null ? $data : 'null'; @endphp @endforeach
@endif @endforeach @if ($isTyping)
@endif
@if ($currentGame || $showingTipForm)
@if ($currentGame)
@elseif($showingTipForm)
@endif
@else

Use the buttons above to interact with me

@endif
@endif @endif @once @push('styles') @endpush @endonce
@once @push('scripts') @endpush @endonce