@extends('layouts.app') @section('title', __('Chat with AI')) @section('header')

{{ __('Chat with AI') }}

@endsection @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ __('Chat with AI') }}

{{ __('Ask anything to the AI models') }}

@csrf @method('DELETE')

{{ __('Do not share sensitive personal data, use profanity, or discuss prohibited topics such as pornography, politics, religion, or prejudice. Violations may result in account restrictions.') }}

@forelse($chatHistory as $chat)

{{ $chat->message }}

{{ $chat->created_at->format('H:i') }}

@if($chat->response)
{!! \App\Services\MarkdownService::parse($chat->response) !!}

{{ $chat->created_at->format('H:i') }}

| {{ ucfirst($chat->provider) }} | {{ $chat->model }}
@endif
@empty

{{ __('Start a conversation with AI!') }}

{{ __('Type a message below to begin.') }}

@endforelse
@csrf
@endsection @push('scripts') @endpush