@php $adminUser = auth()->user(); $showAdminShell = auth()->check() && (bool) ($adminUser?->is_admin ?? false) && (bool) ($adminUser?->is_active ?? true); @endphp @if ($showAdminShell)
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @yield('content')
@else
@yield('content')
@endif