@extends('layouts.admin')

@section('title', 'Rapport IA')
@section('page-title', 'Rapport d\'Analyse IA')

@section('content')
<div class="container-fluid">
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Rapport IA Généré</h1>
        <a href="{{ route('admin.ai.index') }}" class="btn btn-sm btn-secondary">
            <i class="fas fa-arrow-left"></i> Retour
        </a>
    </div>

    <div class="card shadow">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">Contenu du Rapport</h6>
        </div>
        <div class="card-body">
            <div class="border p-4 bg-light">
                @if($report ?? null)
                    {!! nl2br(htmlspecialchars($report)) !!}
                @else
                    <p class="text-muted">Aucun rapport généré</p>
                @endif
            </div>
        </div>
    </div>
</div>
@endsection
