My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
3.5 KiB

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
@include('inc.navbar')
<div class="card-header"><a href="/home">Home</a> -> <a href="/hops">Hop List</a> -> {{ __('Hop Card') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
<div class="card-body">
<h2>{{$hop->name}}</h2>
<section id="hop_card" class="container">
<div class="row">
<div class="infopanel col-sm-4">Profile</div>
<div class="infopanel col-sm-8">{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$hop->profile)))))}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Role</div>
<div class="infopanel col-sm-8">@if($hop->bitter && $hop->aroma)Dual Purpose @elseif ($hop->bitter)Bittering @else Aroma @endif</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Alpha Acid %</div>
<div class="infopanel col-sm-8">{{$hop->alpha_acid}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Beta Acid %</div>
<div class="infopanel col-sm-8">{{$hop->beta_acid}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Total Oils %</div>
<div class="infopanel col-sm-8">{{$hop->total_oil}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Cohumulone %</div>
<div class="infopanel col-sm-8">{{$hop->cohumulone}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Myrcene %</div>
<div class="infopanel col-sm-8">{{$hop->myrcene}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Humulene %</div>
<div class="infopanel col-sm-8">{{$hop->humulene}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Farnesene %</div>
<div class="infopanel col-sm-8">{{$hop->farnesene}}</div>
</div>
<div class="row">
<div class="infopanel col-sm-4">Caryophyllene %</div>
<div class="infopanel col-sm-8">{{$hop->caryophyllene}}</div>
</div>
</section>
<hr/>
<table class="table table-striped table-dark" id="table-programs">
<thead>
<tr><th scope="col" colspan="2">Used in</th></tr>
<tr>
<th scope="col">Brewery</th>
<th scope="col">Beer</th>
</tr>
</thead>
<tbody>
@foreach ($hopadditions as $hops)
<tr>
<td><a href="/brewery/{{$hops->breweryID}}">{{$hops->brewery}}</a> </td>
<td><a href="/beer/{{$hops->beer_id}}">{{$hops->beer}}</a> </td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection