@extends('layouts.app') @section('title', __('app.teacher.chats.show.page_title', ['student' => $conversation->student_name ?? __('app.common.unknown')]) . ' - ' . config('app.name', 'CurioGPT')) @section('container-class', 'mx-auto max-w-3xl px-4 py-8 w-full overflow-y-auto') @push('head') @vite(['resources/js/teacher-chat.js']) @endpush @section('content')
← {{ __('app.teacher.chats.show.back') }}

{{ $conversation->student_name ?? __('app.common.unknown_student') }}

@if ($conversation->agent_name) {{ $conversation->agent_name }} @endif

{{ $conversation->title }}

@if ($messages->isEmpty())

{{ __('app.teacher.chats.show.no_messages') }}

@else @php $userBubble = 'max-w-[80%] rounded-2xl rounded-tr-sm bg-black dark:bg-white text-white dark:text-black px-4 py-2.5 text-sm whitespace-pre-wrap break-words leading-relaxed'; $assistantBubble = 'flex-1 min-w-0 prose-chat text-sm text-black dark:text-white leading-relaxed'; @endphp
@foreach ($messages as $message) @if ($message->role === 'user')
{{ $message->content }}
@elseif ($message->role === 'assistant')
{{ $message->content }}
@endif @endforeach
@endif
{{-- Templates for markdown-enhanced code blocks & copy feedback --}} @endsection