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