Complete TP7 TP8 authentication authorization and classic CSS
This commit is contained in:
@@ -33,12 +33,16 @@
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('products.show', $produit) }}">Voir</a>
|
||||
<a href="{{ route('products.edit', $produit) }}">Modifier</a>
|
||||
@can('update', $produit)
|
||||
<a href="{{ route('products.edit', $produit) }}">Modifier</a>
|
||||
@endcan
|
||||
@can('delete', $produit)
|
||||
<form method="POST" action="{{ route('products.destroy', $produit) }}" style="display: inline">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit">Supprimer</button>
|
||||
</form>
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user