@extends('layouts.seller') @section('title', 'Edit Product') @section('content')
Product Details
{{-- IMPORTANT: update route should exist --}}
@csrf @method('PUT')
Allowed: {{ $minMoq }} - {{ $maxMoq }}

{{-- SPECIFICATIONS --}}
Specifications
@php $specs = $product->specifications ?? []; if (is_string($specs)) { $specs = json_decode($specs, true) ?? []; } @endphp @forelse($specs as $key => $value)
@empty
@endforelse

{{-- IMAGES --}}
Images
@if($product->images_json)
@foreach($product->images_json as $index => $image) @php $img = is_array($image) ? ($image['thumbnail'] ?? '') : $image; @endphp
Delete
@endforeach
@endif
@endsection @push('scripts') @endpush