{{-- Font Awesome 5 — same icon set as react-icons/fa in the original app --}} @if (($htmlDir ?? 'ltr') === 'rtl') @endif @vite(['resources/css/app.css', 'resources/js/app.js']) @livewireStyles @php $auth = \App\Support\CmsAuth::user(); $isProject = ($auth['scope'] ?? null) === 'project'; $company = \App\Models\CompanySetting::find(1); $languages = $activeLanguages ?? []; $locale = $currentLocale ?? app()->getLocale(); @endphp
@if (count($languages) > 0)
@csrf
@endif
{{ strtoupper(substr($auth['displayName'] ?? $auth['username'] ?? 'U', 0, 1)) }}
{{ $auth['displayName'] ?? $auth['username'] ?? __('layout.user') }}
{{ $isProject ? __('layout.project_user') : ($auth['role'] ?? __('layout.administrator')) }}
{{ $slot }}
@livewireScripts