@php /** @var \App\Models\Account $account */ $account = app(\App\Support\CurrentAccount::class)->get(); $user = auth()->user(); $membership = $account->users()->where('users.id', $user->id)->first(); $role = $membership?->pivot->role ?? '—'; $storeCount = \App\Models\Store::count(); @endphp
{{-- Header: workspace context + page heading --}}
{{ __('Workspace') }}: {{ $account->name }} · {{ $account->slug }}
{{ __('Dashboard') }} {{ __('Overview of your support workspace.') }}
{{-- Stat cards --}}
{{ __('Account') }}
{{ $account->name }}
{{ $account->slug }}
{{ __('Your role') }}
{{ $role }}
{{ __('within this account') }}
{{ __('Stores') }}
{{ $storeCount }}
{{ __('Manage stores') }}
{{ __('Account created') }}
{{ $account->created_at->format('M j, Y') }}
{{ $account->created_at->diffForHumans() }}
{{-- Empty-state pointing at the inbox. Email ingestion, AI drafts and integrations still land in later steps. --}}
{{ __('Jump into the inbox') }} {{ __('Manage tickets in your workspace. Email ingestion, AI drafts and integrations arrive in later steps.') }}
{{ __('Open inbox') }} @can('manageAccountSettings', $account) {{ __('Account settings') }} @endcan