@foreach ($productCategories as $category)
  • {{ $category->name }} @if($category->children->count() > 0) @endif @if($category->children->count() > 0)

    {{ $category->name }}

    @foreach($category->children as $subCategory)
    @if($subCategory->image) {{ $subCategory->name }} @else @endif

    {{ $subCategory->name }}

    {{ $subCategory->products->count() }} produk

    @endforeach
    Lihat Semua Sub Kategori
    @endif
  • @endforeach
@if (Auth::check()) @if (Auth::user()->user_type === 'admin') @elseif (Auth::user()->user_type === 'supervisor') @elseif (Auth::user()->user_type === 'teknisi') @else @endif

{{ Auth::user()->name }}

{{ Auth::user()->email }}

@if (Auth::user()->user_type === 'admin') Dashboard Admin @elseif (Auth::user()->user_type === 'supervisor') Dashboard Supervisor @elseif (Auth::user()->user_type === 'teknisi') Dashboard Teknisi @else Dashboard User Pesanan Saya @endif
Edit Profil
@csrf
@else Masuk Daftar @endif

Menu

    @foreach ($productCategories as $category)
  • @if($category->children->count() > 0)
    • Semua {{ $category->name }}
    • @foreach($category->children as $subCategory)
    • {{ $subCategory->name }}
    • @endforeach
    @else {{ $category->name }} @endif
  • @endforeach
@if (Auth::check())
@if(Auth::user()->photo && \Storage::disk('uploads')->exists('profiles/' . Auth::user()->photo)) {{ Auth::user()->name }} @else
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
@endif {{ Auth::user()->name ?? Auth::user()->email }}
@if (Auth::user()->user_type === 'admin') @elseif (Auth::user()->user_type === 'supervisor') @elseif (Auth::user()->user_type === 'teknisi') @else @endif
@if (Auth::user()->user_type === 'admin') Dashboard Admin @elseif (Auth::user()->user_type === 'supervisor') Dashboard Supervisor @elseif (Auth::user()->user_type === 'teknisi') Dashboard Teknisi @else Dashboard User Pesanan Saya @endif Edit Profil
@csrf
@else Masuk Daftar @endif