@extends('layouts.dashboard')
@section('content')
@php
/** @var bool $ready @var string $reason @var array $suggestions @var string $userAvatar */
$suggestions = $suggestions ?? [];
@endphp
@php /* .qm-d2: the dashboard density standard (app.css §35) */
@endphp
@php /* No head block: the H1 is the chrome's, and the welcome bubble opens the
conversation — an orphan sentence above the card was the weakest
element on the page. */
@endphp
@partial('ai-chat-widget', [
'wrapClass' => 'qm-card qm-chat',
'ready' => $ready,
'reason' => $reason,
'disabledNote' => t_raw('vendor.ai.disabled_extra_note'),
'endpoint' => '/vendor/ai-assistant/chat',
'userAvatar' => $userAvatar,
'welcome' => t_raw('vendor.ai.welcome_message', [':site' => setting('site_name', 'QuickMunch')]),
'suggestions' => $suggestions,
])
@php /* /.qm-d2 */
@endphp
@endsection