{{-- New-Unity ERP | app/Modules/Warehouse/Resources/Views/locations/generate.blade.php | v1.0 | 13/07/2026 --}} {{-- v1.0 — Generador dinámico de ubicaciones WMS. Pasillos/Racks/Niveles libres. --}} @extends('layouts.vertical', ['pageTitle' => __('warehouse.generate-locations')]) @section('page-title')

{{ __('warehouse.generate-locations') }} {{ __('warehouse.wms-builder-sub') }}

{{ __('warehouse.back') }}
@endsection @section('content')
{{-- LEFT: Generator form --}}

{{ __('warehouse.location-generator') }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@csrf {{-- Warehouse + Zone --}}
{{-- Location type --}}
{{-- Aisles --}}
{{ __('warehouse.aisles-hint') }}
{{-- Racks / Blocks --}}
{{ __('warehouse.leave-empty-na') }}
{{-- Levels --}}
{{ __('warehouse.leave-empty-piso') }}
{{-- Capacity --}}
{{-- Duplicate handling --}}
{{-- RIGHT: Preview --}}

{{ __('warehouse.preview') }}

0 {{ __('warehouse.locations-lower') }}
{{-- Summary --}} {{-- Location grid preview --}}
{{ __('warehouse.fill-form-preview') }}
{{-- Existing locations summary --}}

{{ __('warehouse.existing-locations') }}

{{ $totalLocations }} {{ __('warehouse.total-lower') }}
@if($recentLocations->count() > 0) @foreach($recentLocations as $loc) @endforeach
{{ __('warehouse.code') }} {{ __('warehouse.zone') }} {{ __('warehouse.type-col') }} {{ __('warehouse.capacity') }} {{ __('warehouse.active') }}
{{ $loc->code }} {{ $loc->zone_code }} {{ $loc->location_type ?? 'RACK' }} {{ $loc->max_capacity ? $loc->max_capacity . ' ' . $loc->capacity_unit : '—' }} @if($loc->is_active) @else @endif
@if($totalLocations > 10)
{{ __('warehouse.showing-locations', ['total' => $totalLocations]) }} {{ __('warehouse.view-all') }}
@endif @else
{{ __('warehouse.no-locations-configured') }}
@endif
@endsection @section('scripts') @endsection