Réalisation du tp3, tp4, tp5 et tp6 avec documentation.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<h2>{{ $product->name }}</h2>
|
||||
<p>Prix : {{ $product->price }} EUR</p>
|
||||
<p>Stock : {{ $product->stock }}</p>
|
||||
<p>Disponibilité : {{ $product->stock < 5 ? '⚠ Stock faible' : 'Disponible' }}</p>
|
||||
<a href="{{ route('products.index') }}">Retour</a>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user