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.
		
		
		
		
		
			
		
			
				
					
					
						
							182 lines
						
					
					
						
							6.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							182 lines
						
					
					
						
							6.3 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="/beers">Beer List</a> -> {{ __('Beer Sheet') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
							 | 
						|
								
							 | 
						|
								                <div class="card-body">
							 | 
						|
									  <h2>{{$beer->name}}</h2>
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr>
							 | 
						|
								                <th scope="col">Style</th>
							 | 
						|
								                <th scope="col">ABV %</th>
							 | 
						|
										            <th scope="col">OG</th>
							 | 
						|
										            <th scope="col">FG</th>
							 | 
						|
								                @if($beer->ibu)<th scope="col">IBU</th>@endif
							 | 
						|
								                @if($beer->ebc)<th scope="col">EBC</th>@endif
							 | 
						|
								                @if($beer->srm)<th scope="col">SRM</th>@endif
							 | 
						|
								                @if($beer->ph)<th scope="col">pH</th>@endif
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								              <tr>
							 | 
						|
								                <td>{{$beer->type}} </td>
							 | 
						|
								                <td>{{$beer->abv}} </td>
							 | 
						|
										            <td>{{$beer->og}} </td>
							 | 
						|
										            <td>{{$beer->fg}} </td>
							 | 
						|
								                @if($beer->ibu)<td>{{$beer->ibu}} </td>@endif
							 | 
						|
								                @if($beer->ebc)<td>{{$beer->ebc}} </td>@endif
							 | 
						|
								                @if($beer->srm)<td>{{$beer->srm}} </td>@endif
							 | 
						|
								                @if($beer->ph)<td>{{$beer->ph}} </td>@endif
							 | 
						|
								              </tr>
							 | 
						|
									     </tbody>
							 | 
						|
									    </table>
							 | 
						|
								
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr><th scope="col" colspan="3"><h4>Brewery</h4></th></tr>
							 | 
						|
								              <tr>
							 | 
						|
										<th scope="col">Name</th>
							 | 
						|
								                <th scope="col">City\Region</th>
							 | 
						|
								                <th scope="col">Country</th>
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								                @foreach ($breweries as $brewery)
							 | 
						|
								              <tr>
							 | 
						|
										<td><a href="/brewery/{{$brewery->id}}">{{$brewery->name}}</a> </td>
							 | 
						|
								                <td>{{$brewery->place}} </td>
							 | 
						|
								                <td>{{$brewery->country}} </td>
							 | 
						|
								              </tr>
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
									      @if(! ($beer->notes) == "")
							 | 
						|
										<thead><th scope="col"><center><h4>Notes</h4></center></thead>
							 | 
						|
										<tbody>	<tr><td>{{$beer->notes}}</td></tr></tbody>
							 | 
						|
										</table>
							 | 
						|
									      @endif
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr><th scope="col" colspan="3"><h4>Grain Bill ({{$beer->batch}}L Batch)</h4></th></tr>
							 | 
						|
								              <tr>
							 | 
						|
								                <th scope="col">Grain</th>
							 | 
						|
								                <th scope="col">Amount</th>
							 | 
						|
								                <th scope="col">% of total bill</th>
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
										@foreach ($grainbills as $bill)
							 | 
						|
								              <tr>
							 | 
						|
								                <td><a href="/grain/{{$bill->grain_id}}">{{$bill->grain_name}}</a> </td>
							 | 
						|
								                <td>{{$bill->amount}} </td>
							 | 
						|
								                <td>{{$bill->grain_bill}} </td>
							 | 
						|
								              </tr>
							 | 
						|
										@endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								          </table>
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
									      <tr><th scope="col" colspan="3"><h4>Mash Steps</h4></th></tr>
							 | 
						|
								              <tr>
							 | 
						|
								                <th scope="col">Temp °C</th>
							 | 
						|
								                <th scope="col">Duration</th>
							 | 
						|
								                <th scope="col">Stage</th>
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								                @foreach ($mashsteps as $mash)
							 | 
						|
								              <tr>
							 | 
						|
								                <td>{{$mash->temp}} </td>
							 | 
						|
								                <td>{{$mash->duration}} </td>
							 | 
						|
								                <td>{{$mash->stage}} </td>
							 | 
						|
								              </tr>
							 | 
						|
										@endforeach
							 | 
						|
										@foreach ($mashsteps as $mash)
							 | 
						|
										@if($mash->stage == 1)
							 | 
						|
										<tr><td colspan="3"><center><b>Boil: {{$mash->boil}} minutes @if($beer->boil_volume)<br/>Boil Volume: {{$beer->boil_volume}}L @endif </b></center></td></tr>
							 | 
						|
										@endif
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								          </table>
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr><th scope="col" colspan="3"><h4>Hop Additions</h4></th></tr>
							 | 
						|
								              <tr>
							 | 
						|
								                <th scope="col">Name</th>
							 | 
						|
								                <th scope="col">Amount (g)</th>
							 | 
						|
								                <th scope="col">Timing</th>
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								                @foreach ($hopadditions as $hop)
							 | 
						|
								              <tr>
							 | 
						|
								                <td><a href="/hop/{{$hop->hop_id}}">{{$hop->hop_name}}</a> </td>
							 | 
						|
								                <td>{{$hop->amount}} </td>
							 | 
						|
								                <td>{{$hop->timing}} </td>
							 | 
						|
								              </tr>
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
									  </table>
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr><th scope="col" colspan="3"><h4>Yeast</h4></th></tr>
							 | 
						|
									      <tr>
							 | 
						|
										<th scope="col">Name</th>
							 | 
						|
										<th scope="col">Temp °C</th>
							 | 
						|
										<th scope="col">Duration</th>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								                @foreach ($yeastadditions as $yeast)
							 | 
						|
								              <tr>
							 | 
						|
								                <td><a href="/yeast/{{$yeast->yeast_id}}">{{$yeast->yeast_name}}</a> @if($yeast->altname)or <a href="/yeast/{{$yeast->alternative}}">{{$yeast->altname}}</a> @endif</td>
							 | 
						|
										<td>{{$yeast->temperature}} </td>
							 | 
						|
										<td>{{$yeast->duration}} </td>
							 | 
						|
								              </tr>
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								          </table>
							 | 
						|
								
							 | 
						|
									  @if(! $adjunctadditions->isEmpty())
							 | 
						|
								          <table class="table table-striped table-dark" id="table-programs">
							 | 
						|
								            <thead>
							 | 
						|
								              <tr><th scope="col" colspan="3"><h4>Adjunct Additions</h4></th></tr>
							 | 
						|
								              <tr>
							 | 
						|
								                <th scope="col">Name</th>
							 | 
						|
								                <th scope="col">Amount</th>
							 | 
						|
								                <th scope="col">Timing</th>
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
								                @foreach ($adjunctadditions as $adjunct)
							 | 
						|
								              <tr>
							 | 
						|
								                <td><a href="/adjunct/{{$adjunct->id}}">{{$adjunct->adjunct_name}}</a> </td>
							 | 
						|
								                <td>{{$adjunct->amount}} </td>
							 | 
						|
								                <td>{{$adjunct->timing}} </td>
							 | 
						|
								              </tr>
							 | 
						|
								                @endforeach
							 | 
						|
								            </tbody>
							 | 
						|
								          </table>
							 | 
						|
									  @endif
							 | 
						|
								
							 | 
						|
										</div>
							 | 
						|
								            </div>
							 | 
						|
								        </div>
							 | 
						|
								    </div>
							 | 
						|
								</div>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								@endsection
							 |