@props(['title' => null]) @php $user = auth()->user(); $dark = $user?->dark_mode ? 'dark' : ''; $rtl = (auth()->user()?->locale ?? app()->getLocale()) === 'ar'; @endphp {{ $title ? $title.' · ' : '' }}{{ $appSettings['company_name'] ?? 'Notch ERP' }} @livewireStyles
{{-- Sidebar --}} {{-- Main --}}
{{-- Dark mode toggle --}}
@csrf
{{-- Notifications --}} @livewire('notification-bell') {{-- User menu --}}

{{ $user?->name }}

{{ $user?->email }}

{{ __('Profile') }} @if(auth()->user()?->hasPermission('settings.manage') || auth()->user()?->isSuperAdmin()) {{ __('Settings') }} @endif
@csrf
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif {{ $slot }}
@livewireScripts