@extends('layouts.admin') @section('title', 'Modifier un produit') @section('page-title', 'Produits') @section('content')

Modifier un produit

Retour
@if($errors->any())
@endif @php $categoriesForJs = $categories->map(function ($category) { return [ 'id' => $category->id, 'name' => $category->name, 'attributes' => $category->attributes->map(function ($attribute) { return [ 'id' => $attribute->id, 'name' => $attribute->name, 'type' => $attribute->type, 'required' => (bool) $attribute->required, 'options' => $attribute->options ?? [], ]; })->values(), ]; })->values(); @endphp
@csrf @method('PUT')
@if($product->thumbnail)
{{ $product->name }}
@endif

Les attributs s'adaptent a la categorie selectionnee.

Annuler
@endsection