@php
// Resolve once for the policy checks below. The settings
// pages all run under the `tenant` middleware, so this is
// guaranteed to be non-null here.
$currentAccountForNav = app(\App\Support\CurrentAccount::class)->get();
@endphp
{{-- Account settings is owner/admin only — agents can't
edit anything on it, so hide the link entirely.
Server-side mount() gate in the Account component
also blocks direct-URL access. --}}
@can('manageAccountSettings', $currentAccountForNav)
{{ __('Account') }}
@endcan
{{-- Team is visible to all members; agents see the
read-only member list (no invite/cancel/role
controls). The Team component handles the in-page
conditionals. --}}
{{ __('Team') }}
{{-- Macros nav link removed from Settings — it's now a
primary sidebar entry. See
resources/views/layouts/app/sidebar.blade.php. --}}
{{ __('Profile') }}
{{ __('Security') }}
{{ __('Appearance') }}
{{ $heading ?? '' }}
{{ $subheading ?? '' }}
{{-- Default content max-width is max-w-lg to match the
focused, single-column feel of profile/security. Pages
with wider content (e.g. the Team page with side-by-side
form controls and tables) can opt in to a wider area
via `content-class="max-w-3xl"`. --}}
{{ $slot }}