@foreach ($aiWriters as $aiWriter)
type == 'text' || $aiWriter->type == 'code') && $aiWriter->slug != 'ai_webchat') href="{{ LaravelLocalization::localizeUrl(route('dashboard.user.openai.generator.workbook', $aiWriter->slug)) }}" @elseif ($aiWriter->slug == 'ai_webchat' && \Illuminate\Support\Facades\Route::has('dashboard.user.openai.webchat.workbook')) href="{{ route('dashboard.user.openai.webchat.workbook') }}" @else href="{{ LaravelLocalization::localizeUrl(route('dashboard.user.openai.generator', $aiWriter->slug)) }}" @endif >
{!! html_entity_decode($aiWriter->image) !!}
{{ $aiWriter->title }}
@endforeach