@include('global.header-links')
@include('partials.sidebar')
@include('partials.header')

Edit Product

@if ($errors->any())
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif
@csrf

Product Basics

@php $statusOld = (string)old('status', (string)$equipment->status); @endphp
@if($equipment->image) product_image @endif

Dimensions

@php $massOld = strtolower(old('dim_mass_unit', $dimension->mass_unit ?? 'oz')); @endphp
@php $distOld = strtolower(old('dim_distance_unit', $dimension->distance_unit ?? 'in')); @endphp
@php $axisOld = strtolower(old('dim_stack_axis', $dimension->stack_axis ?? 'height')); @endphp

Attributes & Options

{{-- Preload existing attributes --}} @php $attrIdx=0; @endphp @foreach($attrs as $a)
@php $opts = collect($options[$a->id] ?? [])->pluck('name')->implode(', '); @endphp
@php $attrIdx++; @endphp @endforeach

Variants

Tick “Delete” to remove a variant.
{{-- Hidden payloads --}}
Cancel
@include('partials.footer')
@include('global.footer-links')