@extends('admin.layouts.base') @section('title', 'Edit Warehouse') @section('content')

Edit Warehouse: {{ $warehouse->name }}

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('zone')
{{ $message }}
@enderror

Storage & Products

@foreach($storageTypes as $type)
id, old('storage_types', $warehouse->storageTypes->pluck('id')->toArray())) ? 'checked' : '' }}/>
@endforeach
@error('storage_types')
{{ $message }}
@enderror
@foreach($productCategories as $category)
id, old('product_categories', $warehouse->productCategories->pluck('id')->toArray())) ? 'checked' : '' }}/>
@endforeach
@error('product_categories')
{{ $message }}
@enderror
@error('product_categories')
{{ $message }}
@enderror

Additional Services

@php $existingServices = $warehouse->additionalServices->keyBy('id'); @endphp @foreach($additionalServices as $service) @php $isAttached = $existingServices->has($service->id); $pivotData = $isAttached ? $existingServices->get($service->id)->pivot : null; $customPrice = $pivotData ? $pivotData->price : $service->base_price; @endphp @endforeach
Service Name Price Type Base Price Custom Price (Optional)
id}.enabled", $isAttached) ? 'checked' : '' }} />
{{ $service->name }} {{ Str::limit($service->description, 50) }}
{{ ucfirst(str_replace('_', ' ', $service->price_type)) }} ${{ number_format($service->base_price, 2) }} @if($service->unit_label) / {{ $service->unit_label }} @endif
$ id}.price", $customPrice) }}" {{ old("additional_services.{$service->id}.enabled", $isAttached) ? '' : 'disabled' }} />

Pricing & Capacity Configuration

Changing capacity will affect available space calculations. Ensure no active rentals will be negatively impacted.
@error('total_sqft')
{{ $message }}
@enderror
@error('sqft_price_per_unit')
{{ $message }}
@enderror
Extra space added for movement (default 15%)
@error('activity_space_percentage')
{{ $message }}
@enderror
@error('pallet_max_height')
{{ $message }}
@enderror
Maximum space available for rental (prevents overbooking)
@error('maximum_rentable_sqft')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
@endsection @push('scripts') @endpush