|
|
@ -32,11 +32,11 @@ |
|
|
|
<td><a href="/brewery/{{$beer->brewery_id}}">{{$beer->brewery}}</a> </td> |
|
|
|
<td>{{$beer->type}} </td> |
|
|
|
@if (Auth::user()->isAdmin()) |
|
|
|
<td><a href="{{ route('beers.edit',$beer->beer_id)}}" class="btn btn-primary">Edit</a> |
|
|
|
<td><a href="{{ route('beers.edit',$beer->beer_id)}}" class="btn btn-primary editbutton">Edit</a> |
|
|
|
<form action="{{ route('beers.destroy', $beer->beer_id)}}" method="post"> |
|
|
|
@csrf |
|
|
|
@method('DELETE') |
|
|
|
<button class="btn btn-danger" type="submit">Delete</button> |
|
|
|
<button class="btn btn-danger deletebutton" type="submit">Delete</button> |
|
|
|
</form></td> |
|
|
|
@endif |
|
|
|
|
|
|
|