@php
$base_class = "lqd-docs-item lqd-docs-item-$style relative w-full items-center border-b transition-all last:border-b-0 hover:bg-foreground/5 group-[&[data-view-mode=grid]]:min-h-48 group-[&[data-view-mode=grid]]:bg-card-background group-[&[data-view-mode=grid]]:gap-0 group-[&[data-view-mode=grid]]:pb-1";
if ($style === 'min') {
$base_class .= ' flex gap-4 p-4 text-xs last:border-none';
} else {
$base_class .= ' grid gap-4 px-4 py-3 text-2xs font-medium';
}
@endphp
@if ($style === 'min')
withoutTwMergeClasses()->twMerge($base_class, $attributes->get('class')) }}
href="{{ LaravelLocalization::localizeUrl(route('dashboard.user.openai.documents.single', $entry->slug)) }}"
>
@if (in_array($entry->generator->type, ['text', 'youtube', 'rss', 'code', 'image'])) {{ str()->limit(strip_tags($entry->generator->type === 'image' ? $entry->title : $entry->title . ' : ' . $entry->output), 50) }} @elseif($entry->generator->type == 'audio') {!! str()->limit($entry->title . ' : ' . $entry->output, 50) !!} @elseif ($entry->generator->type == 'voiceover') {{ str()->limit($entry->title) }} @endif
{{ __($entry->generator->title) }}
{{ date('M j Y', strtotime($entry->created_at)) }} , {{ date('H:i', strtotime($entry->created_at)) }}
{{ $entry->credits }}