@php $auth = Auth::user(); $plan = $auth->activePlan(); $plan_type = 'regular'; $upgrade = false; $overlay_link_href = ''; $overlay_link_label = 'Create Workbook'; $has_words_credit = $auth->remaining_words > 0 || $auth->remaining_words == -1; $has_images_credit = $auth->remaining_images > 0 || $auth->remaining_images == -1; if ($plan != null) { $plan_type = strtolower($plan->plan_type); } if ($app_is_demo) { if ($item->premium == 1 && $plan_type === 'regular') { $upgrade = true; } } else { if (!$auth->isAdmin() && $item->premium == 1 && $plan_type === 'regular') { $upgrade = true; } } if ($upgrade) { $overlay_link_href = route('dashboard.user.payment.subscription'); $overlay_link_label = 'Upgrade'; } elseif ($item->type == 'text' || $item->type == 'code') { if ($item->slug == 'ai_article_wizard_generator' && $has_words_credit) { $overlay_link_href = route('dashboard.user.openai.articlewizard.new'); } elseif ($has_words_credit) { $overlay_link_href = route('dashboard.user.openai.generator.workbook', $item->slug); } } elseif ((($item->type == 'voiceover' || $item->type == 'audio' || $item->type == 'isolator') && $has_words_credit) || ($item->type == 'image' && $has_images_credit)) { $overlay_link_href = route('dashboard.user.openai.generator', $item->slug); $overlay_link_label = 'Create'; } else { $overlay_link_href = '#'; $overlay_link_label = 'No Tokens Left'; } $item_filters = $item->filters; if (isFavorited($item->id)) { $item_filters .= ',favorite'; } @endphp Theme::getSetting('defaultVariations.card.variant', 'outline') === 'outline', 'hidden' => null !== request()->query('filter') && !str()->contains($item_filters, request()->query('filter')), ]) size="none" roundness="{{ Theme::getSetting('defaultVariations.card.roundness', 'default') === 'default' ? 'none' : Theme::getSetting('defaultVariations.card.roundness', 'default') }}" x-data ::class="{ 'hidden': $store.generatorsFilter.filter !== 'all' && ('{{ $item_filters }}').search($store.generatorsFilter.filter) < 0 }" > @if ($item->image !== 'none') {!! html_entity_decode($item->image) !!} @endif

{{ __($item->title) }}

{{ __($item->description) }}

@if ($item->active == 1) @if (!$upgrade) @endif
$upgrade || $overlay_link_href === '#', ])> $upgrade || $overlay_link_href === '#', '-indent-[99999px]' => !$upgrade && $overlay_link_href !== '#', ]) href="{{ $overlay_link_href }}" > @if ($upgrade || $overlay_link_href === '#') $upgrade, 'bg-foreground text-background' => $overlay_link_href === '#', ])> @endif {{ __($overlay_link_label) }} @if ($upgrade) @endif
@endif