|
|
@ -23,7 +23,7 @@ |
|
|
|
<td><a href="/grain/{{$grain->id}}">{{$grain->name}}</a> </td> |
|
|
|
@if (Auth::user()->isAdmin()) |
|
|
|
<td><a href="{{ route('grains.edit',$grain->id)}}" class="btn btn-primary">Edit</a></td> |
|
|
|
<td><form action="{{ route('grains.destroy', $grain->grain_id)}}" method="post"> |
|
|
|
<td><form action="{{ route('grains.destroy', $grain->id)}}" method="post"> |
|
|
|
@csrf |
|
|
|
@method('DELETE') |
|
|
|
<button class="btn btn-danger" type="submit">Delete</button> |
|
|
|