@php $plan = Auth::user()->activePlan(); $plan_type = 'regular'; 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' => 'Overview', 'link' => '#overview', ], [ 'label' => 'Favorites', 'link' => '#favorites', ], [ 'label' => 'Recent Documents', 'link' => '#recents', ], ]; $premium_features = \App\Models\OpenAIGenerator::query()->where('active', 1)->where('premium', 1)->get()->pluck('title')->toArray(); $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; } } @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Dashboard')) @section('titlebar_title') {{ __('Welcome') }}, {{ auth()->user()->name }} 👋🏻 @endsection @section('titlebar_after') @endsection @section('content')
@if (setting('announcement_active', 0) && !auth()->user()->dash_notify_seen)

@lang(setting('announcement_title', 'Welcome'))

@lang(setting('announcement_description', 'We are excited to have you here. Explore the marketplace to find the best AI models for your needs.'))

{{ setting('announcement_button_text', 'Try it Now') }} @lang('Dismiss')
@if (setting('announcement_image_dark')) @endif @lang(setting('announcement_title', 'Welcome to MagicAI!'))
@endif

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} @lang('Hey, How can I help you?')

@lang('Create a Blank Document')
@include('panel.user.finance.subscriptionStatus')
@if ($ongoingPayments != null)
@include('panel.user.finance.ongoingPayments')
@endif @if (!$user_is_premium)

@lang('Premium Advantages')

@lang('Upgrade your plan to unlock new AI capabilities.')

    @foreach ($premium_features as $feature)
  • {{ $feature }}
  • @endforeach
@lang('Upgrade Your Plan')
@endif
$user_is_premium]) >

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Overview') }}

@lang('Your Document Values')

@lang('Understand and manage your projects better. Dig deeper into relevant details.')

{{ __('Remaining Credits') }}

{{ __('Hours Saved') }}

{{ number_format(($total_words * 0.5) / 60) }}

{{ __('Your Documents') }}

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Favorite Documents') }}

@lang('See All Documents')
@foreach (\App\Models\UserDocsFavorite::getFavoriteDocs(auth()->user()->id) as $entry) @if ($entry->generator != null) @endif @endforeach

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}} {{ __('Recently Launched Documents') }}

@lang('See All Documents')
@lang('Templates Information') @lang('Category') @lang('In') @lang('Date') @foreach (Auth::user()->openai()->orderBy('created_at', 'desc')->take(4)->get() as $entry) @if ($entry->generator != null) @if ($entry->generator->image !== 'none') {!! html_entity_decode($entry->generator->image) !!} @endif {{ __($entry->generator->title) }} {{ @ucfirst($entry->generator->type) }} @lang('In Workbook') {{ $entry->created_at->format('M d, Y') }} {{ __('View') }} @endif @endforeach
@endsection @push('script') @includeFirst(['onboarding::include.introduction', 'panel.admin.onboarding.include.introduction', 'vendor.empty']) @includeFirst(['onboarding-pro::include.introduction', 'panel.admin.onboarding-pro.include.introduction', 'vendor.empty']) @endpush