|
|
@ -19,10 +19,10 @@ |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th scope="col">Hop Name</th> |
|
|
|
<th scope="col">Profile</th> |
|
|
|
<th scope="col">Bittering?</th> |
|
|
|
<th scope="col">Aroma?</th> |
|
|
|
@if (Auth::user()->isAdmin())<th colspan="2" scope="col">Admin</th>@endif |
|
|
|
<th scope="col" class="hideable">Profile</th> |
|
|
|
<th scope="col" class="hideable">Bittering?</th> |
|
|
|
<th scope="col" class="hideable">Aroma?</th> |
|
|
|
@if (Auth::user()->isAdmin())<th scope="col">Admin</th>@endif |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
|
|
|
@ -30,16 +30,16 @@ |
|
|
|
@foreach ($hops as $hop) |
|
|
|
<tr> |
|
|
|
<td><a href="/hop/{{$hop->id}}">{{$hop->name}}</a> </td> |
|
|
|
<td>{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$hop->profile)))))}} </td> |
|
|
|
<td>@if($hop->bitter == 1) yes @else no @endif </td> |
|
|
|
<td>@if($hop->aroma == 1) yes @else no @endif </td> |
|
|
|
<td class="hideable">{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$hop->profile)))))}} </td> |
|
|
|
<td class="hideable">@if($hop->bitter == 1) yes @else no @endif </td> |
|
|
|
<td class="hideable">@if($hop->aroma == 1) yes @else no @endif </td> |
|
|
|
@if (Auth::user()->isAdmin()) |
|
|
|
<td><a href="{{ route('hops.edit',$hop->id)}}" class="btn btn-primary">Edit</a></td> |
|
|
|
<td><form action="{{ route('hops.destroy', $hop->id)}}" method="post"> |
|
|
|
<td><span id="buttons"><a href="{{ route('hops.edit',$hop->id)}}" class="btn btn-primary editbutton">Edit</a> |
|
|
|
<form action="{{ route('hops.destroy', $hop->id)}}" method="post"> |
|
|
|
@csrf |
|
|
|
@method('DELETE') |
|
|
|
<button class="btn btn-danger" type="submit">Delete</button> |
|
|
|
</form></td> |
|
|
|
<button class="btn btn-danger deletebutton" type="submit">Delete</button> |
|
|
|
</form></span></td> |
|
|
|
@endif |
|
|
|
</tr> |
|
|
|
@endforeach |
|
|
|