@if ($m->tools_used)
@foreach ($m->tools_used as $t) {{ $t['label'] ?? $t['name'] }}@endforeach
@endif
@if ($m->error)
{{ $m->error }}
@if (str_contains($m->error, 'credits'))
Top up credits@endif
@else
{!! \Illuminate\Support\Str::markdown((string) $m->content, ['html_input' => 'strip', 'allow_unsafe_links' => false]) !!}
@endif
@unless ($m->error)@endunless
@if (! empty($isLast))@endif
{{ config('biznisos.ai.models.'.$m->model.'.label', '') }}{{ $m->own_key ? ' · your key' : ($m->credits_used ? ' · '.$m->credits_used.' '.\Illuminate\Support\Str::plural('credit', $m->credits_used) : '') }}
@endif