@php $shop = Auth::guard('admin')->user()->shop ?? null; $shopLogo = $shop?->logo ? asset('storage/' . $shop->logo) : null; @endphp
@if($shopLogo) {{ $shop->name }} @else
eTailorz
@endif {{ $shop?->name ?? 'eTailorz' }}
@php $typeId = Auth::guard('admin')->user()->type_id; // Master Management default landing route, based on what each role can actually see $masterDefaultRoute = $typeId === 2 ? 'shop.staff.index' : 'shop.ageTypes.index'; @endphp
{{-- 1. Dashboard --}} Dashboard {{-- 2. Shops (Super Admin only) --}} @if($typeId === 1) Shops @endif {{-- 3. Master Management (Shop Owner + Staff) — bundles Staff, Staff Roles, Garments, Age Types, Customers, Addons, Settings --}} @if(in_array($typeId, [2, 3])) Master Management @endif {{-- 4. Orders (Shop Owner + Staff) --}} @if(in_array($typeId, [2, 3])) Orders @endif {{-- 5. Payments (Shop Owner + Staff) --}} @if(in_array($typeId, [2, 3])) Payments @endif {{-- 6. Salary (Shop Owner only) --}} @if($typeId === 2) Salary @endif {{-- 7. Report --}} @if(in_array($typeId, [2, 3])) Report @endif
{{ strtoupper(substr($shop?->name ?? Auth::guard('admin')->user()->name, 0, 2)) }}

{{ $shop?->name ?? Auth::guard('admin')->user()->name }}

{{ ['', 'Super Admin', 'Shop Owner', 'Staff'][$typeId] }}

@csrf