@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')
@foreach ($titlebar_links as $link)
-
$loop->first,
])
variant="ghost"
href="{{ $link['link'] }}"
x-data
>
@lang($link['label'])
@endforeach
@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
@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)
@lang('Add your team members’ email address
to start collaborating.')
📧
@else
{{ __('How it Works') }}
-
{!! __('You send your invitation link to your friends.') !!}
-
{!! __('They subscribe to a paid plan by using your refferral link.') !!}
-
{!! __('From their first purchase, you will begin earning recurring commissions.') !!}
@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
@endsection
@push('script')
@includeWhen(\Illuminate\Support\Facades\Route::has('dashboard.introductions.index'), 'panel/admin/introduction/include/introduction')
@endpush