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