@php $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', ], ]; @endphp @push('css') @endpush @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')
@if ($ongoingPayments != null)
@include('panel.user.finance.ongoingPayments')
@endif @include('panel.user.finance.subscriptionStatus') @if (showTeamFunctionality()) @if ($team)
Team

@lang('Add your team members’ email address
to start collaborating.') 📧

@csrf @if ($app_is_demo) @lang('Invite Friends') @else @lang('Invite Friends') @endif
@else

{{ __('How it Works') }}

  1. 1 {!! __('You send your invitation link to your friends.') !!}
  2. 2 {!! __('They subscribe to a paid plan by using your refferral link.') !!}
  3. 3 {!! __('From their first purchase, you will begin earning recurring commissions.') !!}
{{ __('Send') }}
@endif
@endif

@lang('Recently Launched')

@foreach (Auth::user()->openai()->orderBy('updated_at', 'desc')->take(5)->get() as $entry) @if ($entry->generator != null) @endif @endforeach

{{ __('Documents') }}

@foreach (Auth::user()->openai()->with('generator')->take(4)->get() as $entry) @if ($entry->generator != null) @endif @endforeach

{{ __('Favorite Templates') }}

@foreach (\Illuminate\Support\Facades\Auth::user()->favoriteOpenai as $entry) @php $upgrade = false; if ($entry->premium == 1 && $plan_type === 'regular') { $upgrade = true; } if ($upgrade) { $href = LaravelLocalization::localizeUrl(route('dashboard.user.payment.subscription')); } else { $href = LaravelLocalization::localizeUrl(route('dashboard.user.openai.generator', $entry->slug)); } @endphp @if ($upgrade || $entry->active == 1) @else

@endif @if ($entry->image !== 'none') {!! html_entity_decode($entry->image) !!} @endif {{ __($entry->title) }} {{ str()->words(__($entry->description), 5) }} {{ __('in Workbook') }} {{ $entry->created_at->format('M d, Y') }} @if ($upgrade) {{ __('Upgrade') }} @endif @if ($upgrade || $entry->active == 1) @else

@endif @if ($loop->iteration == 4) @break @endif @endforeach
@endsection @push('script') @includeWhen(\Illuminate\Support\Facades\Route::has('dashboard.introductions.index'), 'panel/admin/introduction/include/introduction') @endpush