@vite(['resources/css/app.css', 'resources/js/app.js'])
@if(session()->has('impersonator_id'))
You are currently viewing this tenant as Platform Admin. (Impersonating: {{ session('impersonated_tenant_name', 'Tenant Workspace') }})
@csrf
@endif
UAE

{{ auth()->user()->tenant ? auth()->user()->tenant->company_name : 'SaaS Platform Admin' }}

{{ auth()->user()->getPrimaryRoleName() }} @if(auth()->user()->tenant && auth()->user()->tenant->subscription) {{ auth()->user()->tenant->subscription->plan->name ?? 'Pro Plan' }} @endif
@if(!auth()->user()->isPlatformUser())
Select Active Branch
@csrf @if(auth()->user()->canViewAllBranches()) @endif @foreach(auth()->user()->accessibleBranches() as $branch) @endforeach
@endif
@isPlatformUser + New Tenant Wizard + New Plan + Record Payment @else @if(auth()->user()->hasPermission('applications.create')) + New Application @endif @if(auth()->user()->hasPermission('customers.create')) + Add Customer @endif @if(auth()->user()->hasPermission('crm.manage')) + New CRM Lead @endif @if(auth()->user()->hasPermission('appointments.manage')) + Book Appointment @endif @if(auth()->user()->hasPermission('tasks.manage')) + Assign Task @endif @if(auth()->user()->hasPermission('employees.create')) + New Employee + New User Account @endif @endisPlatformUser
@if(!auth()->user()->isPlatformUser()) @if(auth()->user()->hasPermission('tasks.view')) @php($headerTaskCount = \App\Models\WorkflowTask::where('assigned_user_id', auth()->id())->whereIn('status', ['open', 'in_progress', 'waiting'])->count()) @if($headerTaskCount){{ $headerTaskCount }}@endif @endif @php($headerNotifications = auth()->user()->unreadNotifications()->latest()->limit(6)->get())
Notifications

Workflow alerts requiring attention

View all
@forelse($headerNotifications as $notification)
@csrf
@empty
You are all caught up.
@endforelse
@if($headerNotifications->isNotEmpty())
@csrf
@endif
@endif

{{ auth()->user()->name }}

{{ auth()->user()->email }}

My Profile & Security
@csrf
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @yield('content')