|
|
@ -21,7 +21,7 @@ |
|
|
|
<th scope="col">Name</th> |
|
|
|
<th scope="col">Brewery</th> |
|
|
|
<th scope="col">Style</th> |
|
|
|
@if (Auth::user()->isAdmin())<th colspan="2" scope="col">Admin</th>@endif |
|
|
|
@if (Auth::user()->isAdmin())<th scope="col">Admin</th>@endif |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
|
|
|
@ -32,8 +32,8 @@ |
|
|
|
<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> |
|
|
|
<td><form action="{{ route('beers.destroy', $beer->beer_id)}}" method="post"> |
|
|
|
<td><a href="{{ route('beers.edit',$beer->beer_id)}}" class="btn btn-primary">Edit</a> |
|
|
|
<form action="{{ route('beers.destroy', $beer->beer_id)}}" method="post"> |
|
|
|
@csrf |
|
|
|
@method('DELETE') |
|
|
|
<button class="btn btn-danger" type="submit">Delete</button> |
|
|
|