TP6 et avant

This commit is contained in:
2026-10-07 16:34:12 +02:00
parent bb4ee689a1
commit e00d488df7
89 changed files with 11733 additions and 0 deletions
@@ -0,0 +1,26 @@
@extends('layouts.app')
@section('content')
<h2>Modifier un produit</h2>
<form method="POST" action="{{ route('products.update', $product) }}">
@csrf
@method('PUT')
<label>Nom</label>
<input type="text" name="name" value="{{ $product->name }}">
@error('name')
<div>{{ $message }}</div>
@enderror
<label>Prix</label>
<input type="number" name="price" value="{{ $product->price }}">
@error('price')
<div>{{ $message }}</div>
@enderror
<label>Stock</label>
<input type="number" name="stock" value="{{ $product->stock }}">
@error('stock')
<div>{{ $message }}</div>
@enderror
<button type="submit">
Enregistrer
</button>
</form>
@endsection