@php use App\Models\Currency;$plan = Auth::user()->activePlan(); $plan_type = 'regular'; // $team = Auth::user()->getAttribute('team'); $teamManager = Auth::user()->getAttribute('teamManager'); if ($plan != null) { $plan_type = strtolower($plan->plan_type); } $titlebar_links = [ [ 'label' => 'All', 'link' => '#all', ], [ 'label' => 'AI Assistant', 'link' => '#all', ], [ 'label' => 'Your Plan', 'link' => '#plan', ], [ 'label' => 'Team Members', 'link' => '#team', ], [ 'label' => 'Recent', 'link' => '#recent', ], [ 'label' => 'Documents', 'link' => '#documents', ], [ 'label' => 'Templates', 'link' => '#templates', ], [ 'label' => 'Overview', 'link' => '#all', ], ]; if ($app_is_not_demo) { $premium_features = \App\Models\OpenAIGenerator::query()->where('active', 1)->where('premium', 1)->get()->pluck('title')->toArray(); } else { $premium_features = [__('Unlimited Credits'), __('Smart Schedule'), __('FB, IG, X, Linkedin Channels'), __('Premium Support')]; } $user_is_premium = false; $plan = auth()->user()?->relationPlan; if ($plan) { $planType = strtolower($plan->plan_type ?? 'all'); if ($plan->plan_type === 'all' || $plan->plan_type === 'premium') { $user_is_premium = true; } } $style_string = ''; if (setting('announcement_background_color')) { $style_string .= '.lqd-card.lqd-announcement-card { background-color: ' . setting('announcement_background_color') . ';}'; } if (setting('announcement_background_image')) { $style_string .= '.lqd-card.lqd-announcement-card { background-image: url(' . setting('announcement_background_image') . '); }'; } if (setting('announcement_background_color_dark')) { $style_string .= '.theme-dark .lqd-card.lqd-announcement-card { background-color: ' . setting('announcement_background_color_dark') . ';}'; } if (setting('announcement_background_image_dark')) { $style_string .= '.theme-dark .lqd-card.lqd-announcement-card { background-image: url(' . setting('announcement_background_image_dark') . '); }'; } @endphp @if (filled($style_string)) @push('css') @endpush @endif @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Dashboard')) @section('titlebar_title') {{ __('Welcome') }}, {{ auth()->user()->name }}. @endsection @section('titlebar_after')
@lang(setting('announcement_description', 'We are excited to have you here. Explore the marketplace to find the best AI models for your needs.'))
@lang('Upgrade your plan to unlock new AI capabilities.')
@lang('Add your team members’ email address
to start collaborating.')
📧
@lang('Comission Rate:')
{{ $setting->affiliate_commission_percentage }}%
@lang('Referral Program:')
@if ($is_onetime_commission) {{ __('First Purchase') }} @else {{ __('All Purchases') }} @endif
@endif