@extends('base.base') @section('content') @if (theme()->getOption('layout', 'main/type') === 'blank')
{{ $slot }}
@else
@if( theme()->getOption('layout', 'aside/display') === true ) {{ theme()->getView('layout/aside/_base') }} @endif
{{ theme()->getView('layout/header/_base') }}
@if (theme()->getOption('layout', 'toolbar/display') === true) {{ theme()->getView('layout/toolbars/_' . theme()->getOption('layout', 'toolbar/layout')) }} @endif
{{ theme()->getView('layout/_content', compact('slot')) }}
{{ theme()->getView('layout/_footer') }}
{{-- Activity y Chat drawers contienen mock data del template Keenthemes ("AirPlus Mobile", "Brian Cox", etc.). Solo se renderizan para roles admin/staff que tienen actividad real cross-tenant. Los non-staff (Closer/Setter/Client) no los necesitan — su actividad la ven en sus paneles propios. --}} @php $u = auth()->user(); $isNonStaffOnly = $u && !$u->hasAnyRole(['Super Admin','System Admin','Administrator','Admin Comercial']) && ($u->hasRole('Closer') || $u->hasRole('Setter') || $u->hasRole('Client')); @endphp @if(!$isNonStaffOnly) {{ theme()->getView('partials/topbar/_activity-drawer') }} {{ theme()->getView('pages/apps/chat/_partials/_drawer-messenger') }} @endif {{ theme()->getView('partials/engage/_main') }} @if(theme()->getOption('layout', 'scrolltop/display') === true) {{ theme()->getView('layout/_scrolltop') }} @endif @endif @endsection