Browse Source

hops refactor mkIV

master
jk 3 years ago
parent
commit
ebf754b428
  1. 8
      resources/views/hops/index.blade.php

8
resources/views/hops/index.blade.php

@ -31,8 +31,8 @@
<tr> <tr>
<td><a href="/hop/{{$hop->id}}">{{$hop->name}}</a> </td> <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>{{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>@if($hop->bitter == 1) yes @else no @endif </td>
<td>@if($hop->aroma == 1) yes @else no @endif </td>
@if (Auth::user()->isAdmin()) @if (Auth::user()->isAdmin())
<td><a href="{{ route('hops.edit',$hop->id)}}" class="btn btn-primary">Edit</a></td> <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><form action="{{ route('hops.destroy', $hop->id)}}" method="post">
@ -41,9 +41,7 @@
<button class="btn btn-danger" type="submit">Delete</button> <button class="btn btn-danger" type="submit">Delete</button>
</form></td> </form></td>
@endif @endif
</tr>
@endforeach
</tr>
</tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save