@extends('layouts.customer') @section('title', 'AI Tools') @section('page-title', 'AI Tools') @section('content')
@customercan('ai_tools.permissions.can_use_email_text_generator')
Email Text Generator
Generate subject + body from structured inputs.
@endcustomercan
History
Your recent AI tool generations.
@forelse(($generations ?? null) as $g) @php($output = (string) ($g->output ?? '')) @php($outputId = 'ai-output-' . (string) $g->id) @empty @endforelse
Tool Provider / Model Status Tokens Created Output
{{ str_replace('_', ' ', (string) $g->tool) }} {{ (string) $g->provider }} @if(is_string($g->model ?? null) && trim((string) $g->model) !== '')
{{ (string) $g->model }}
@endif @if($g->used_admin_keys) admin keys @endif
@if($g->success) Success @else Failed @endif {{ $g->tokens_used !== null ? (int) $g->tokens_used : '—' }} {{ $g->created_at ? $g->created_at->format('Y-m-d H:i') : '—' }} @if($g->success && $output !== '')
{{ \Illuminate\Support\Str::limit($output, 120) }}
@else {{ \Illuminate\Support\Str::limit((string) ($g->error_message ?? ''), 140) ?: '—' }} @endif
@if($g->success && $output !== '') @customercan('templates.permissions.can_create_templates') @endcustomercan @endif
No history yet.
@if(($generations ?? null) && method_exists($generations, 'links'))
{{ $generations->links() }}
@endif
@endsection