@extends('layouts.superadmin') @section('title', 'Rack Management') @section('page-title', 'Rack Management') @section('content')
{{-- Page header + actions --}}

Rack Management

Manage bin locations via CSV upload and bulk actions.
Dump bin location
{{-- Alerts (success / error) --}}
@if(session('success')) @endif @if(session('error')) @endif
{{-- Upload card --}}
Upload Bin Locations CSV Bulk create / update / delete racks
@csrf
You can upload either the standard format (Bin Name, Sequence, ...) or the dumped CSV with an Action column (new, update, delete).
{{-- Bin locations list --}}
Bin Locations List Total: {{ isset($bins) ? $bins->count() : 0 }}
@if(isset($bins) && $bins->count())
@foreach($bins as $bin) @endforeach
Bin Name Sequence Location Status
{{ $bin->bin_name }} {{ $bin->sequence }} @if($bin->location) {{ $bin->location->name }} @if($bin->location->code) ({{ $bin->location->code }}) @endif @else - @endif @if($bin->status) @php $badgeClass = match (strtolower($bin->status)) { 'fastmoving' => 'bg-success', 'slowmoving' => 'bg-warning text-dark', 'overflow' => 'bg-secondary', default => 'bg-dark', }; @endphp @if(strtolower($bin->status) === 'fastmoving') Pickphase @else {{ ucfirst($bin->status) }} @endif @else - @endif
@else

No bin locations found. Upload a CSV to get started.

@endif
{{-- CSV Format Modal --}} @endsection