@extends('admin.layouts.app') @section('title', 'Shelf Manager - Admin') @section('page-title', 'Shelf Manager') @section('content')
{{-- Shelf Grid --}}
πŸ—ΊοΈ Shelf Layout β€” Click a slot to assign a product
@foreach($sections as $letter => $info)
{{ $letter }} β€” {{ $info['name'] }}
@for($i = 1; $i <= 16; $i++) @php $code = $letter . $i; $product = $shelfMap->get($code); @endphp
{{ $code }} @if($product) {{ Str::limit($product->name, 8) }} @endif
@endfor
@endforeach
{{-- Assignment Panel --}}
{{-- Selected Slot Info --}} {{-- Legend --}}
Legend
A β€” Beverage
B β€” Snacks
C β€” Instant Food
D β€” Stationery
Empty slot
Occupied slot
{{-- Unassigned Products --}}
πŸ“¦ Unassigned Products
@php $unassigned = $products->whereNull('shelf_code'); @endphp @if($unassigned->isEmpty())

All products are assigned! βœ…

@else
@foreach($unassigned as $p)
{{ $p->name }} {{ $p->category->name }}
@endforeach
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush