@php $base_class .= ' grid gap-4 px-4 py-3 text-2xs font-medium'; $isImage = $entry->generator->type === 'image'; $isVideo = $entry->generator->type === 'video'; $isAiImagePro = ($entry->source ?? null) === 'ai-image-pro'; $isAiChatProImageChat = ($entry->source ?? null) === 'ai-chat-pro-image-chat'; $isExternalImageDoc = $isAiImagePro || $isAiChatProImageChat; $documentViewUrl = route('dashboard.user.openai.documents.single', $entry->slug); @endphp
withoutTwMergeClasses()->twMerge($base_class, $attributes->get('class')) }} >
@if (request()->route()->getName() !== 'dashboard.user.index') @endif @if ($isImage) @php $imageSource = $isExternalImageDoc ? ($entry->output_url ?? $entry->output) : ThumbImage(custom_theme_url($entry->output)); @endphp {{ __($entry->generator->title) }} @elseif ($isVideo) @else @if ($entry->generator->image !== 'none') {!! html_entity_decode($entry->generator->image) !!} @endif @endif

@php $title = $entry->title ? $entry->title . ' : ' . $entry->output : $entry->output; @endphp @if (in_array($entry->generator->type, ['text', 'youtube', 'rss', 'code'])) {{ str()->limit(strip_tags($title), $trim) }} @elseif (in_array($entry->generator->type, ['image', 'video'])) {{ str()->limit(strip_tags($entry->input ?? $entry->title), $trim) }} @elseif($entry->generator->type == 'audio') {!! str()->limit($title, $trim) !!} @elseif ($entry->generator->type == 'voiceover' || $entry->generator->type == 'isolator') {{ str()->limit($entry->title, $trim) }} @endif

generator->color) style="background: {{ $entry->generator->color }}; color: black;" @endif > {{ __($entry->generator->title) }}

{{-- {{ date('M j Y', strtotime($entry->created_at)) }} --}} {{-- --}} {{-- , {{ date('H:i', strtotime($entry->created_at)) }} --}} {{-- --}} {{ $entry->created_at->diffForHumans() }}

{{ $entry->credits }}
@if (!$hideFav && ! $isExternalImageDoc) @endif @if (! $isExternalImageDoc) {{ __('Move to folder') }} @includeIf('panel.user.openai.components.modals.move-to-folder', [ 'file_slug' => $entry->slug, 'folders' => $folders, ]) @endif