@props([ 'subtitle' => null, // teks kecil di bawah nama (opsional) 'showName' => true, ]) @php // Branding dari Settings (aman saat belum termigrasi). try { $g = app(\App\Settings\GeneralSettings::class); $appName = $g->app_name ?: config('app.name'); $logo = $g->logo_path ? \Illuminate\Support\Facades\Storage::url($g->logo_path) : null; } catch (\Throwable $e) { $appName = config('app.name'); $logo = null; } $initial = \Illuminate\Support\Str::of($appName)->trim()->substr(0, 1)->upper(); @endphp class('flex items-center gap-2.5') }}> @if ($logo) {{ $appName }} @else {{ $initial }} @endif @if ($showName) {{ $appName }} @if ($subtitle){{ $subtitle }}@endif @endif