@extends('site.layout') @php $user = auth()->user(); $isAdmin = Gate::allows('admin'); $navUser = [ ['label' => 'Overview', 'route' => 'dashboard.overview', 'icon' => 'layout-dashboard'], ['label' => 'My Keywords', 'route' => 'dashboard.keywords', 'icon' => 'hash'], ['label' => 'API Keys', 'route' => 'dashboard.api-keys', 'icon' => 'key-round'], ['label' => 'Billing', 'route' => 'dashboard.billing', 'icon' => 'badge-dollar-sign'], ['label' => 'Preferences', 'route' => 'dashboard.preferences', 'icon' => 'settings-2'], ['label' => 'Profile', 'route' => 'profile.edit', 'icon' => 'user-round'], ]; $navAdmin = [ ['label' => 'Overview', 'route' => 'dashboard.overview', 'icon' => 'layout-dashboard'], ['label' => 'Users', 'route' => 'dashboard.admin.users', 'icon' => 'users'], ['label' => 'Subscriptions', 'route' => 'dashboard.admin.subscriptions', 'icon' => 'credit-card'], ['label' => 'Pricing', 'route' => 'dashboard.admin.pricing', 'icon' => 'badge-dollar-sign'], ['label' => 'Webhooks', 'route' => 'dashboard.admin.webhooks', 'icon' => 'webhook'], ['label' => 'Audit Logs', 'route' => 'dashboard.admin.audit_logs', 'icon' => 'list-checks'], ['label' => 'Settings', 'route' => 'dashboard.admin.settings', 'icon' => 'settings'], ['label' => 'Profile', 'route' => 'profile.edit', 'icon' => 'user-round'], ]; $nav = $isAdmin ? $navAdmin : $navUser; $exportQuery = request()->query(); @endphp @section('content')
Workspace

{{ trim($__env->yieldContent('page_title')) ?: 'Dashboard Overview' }}

{{ trim($__env->yieldContent('page_subtitle')) ?: 'A shared layout with role-based navigation.' }}

@if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())
Verify your email to unlock billing and API keys.
No reminders will be sent automatically.
@csrf
@endif @yield('dashboard_content')
@endsection @section('mobile_nav') @endsection @section('more_menu') @endsection @push('scripts') @endpush