@extends('layouts.app')
@section('content')
    
        
            
@include('inc.navbar')
                
                
	  {{$beer->name}}
          
            
              
                | Style | 
                ABV % | 
		            OG | 
		            FG | 
                @if($beer->ibu)IBU | @endif
                @if($beer->ebc)EBC | @endif
                @if($beer->srm)SRM | @endif
                @if($beer->ph)pH | @endif
              
            
            
              
                | {{$beer->type}}  | 
                {{$beer->abv}}  | 
		            {{$beer->og}}  | 
		            {{$beer->fg}}  | 
                @if($beer->ibu){{$beer->ibu}}  | @endif
                @if($beer->ebc){{$beer->ebc}}  | @endif
                @if($beer->srm){{$beer->srm}}  | @endif
                @if($beer->ph){{$beer->ph}}  | @endif
              
	     
	    
          
            
              Brewery | 
              
		| Name | 
                City\Region | 
                Country | 
              
            
            
                @foreach ($breweries as $brewery)
              
		| {{$brewery->name}}  | 
                {{$brewery->place}}  | 
                {{$brewery->country}}  | 
              
                @endforeach
            
          
	      @if(! ($beer->notes) == "")
		Notes | 
			| {{$beer->notes}} | 
		
	      @endif
          
            
              Grain Bill ({{$beer->batch}}L Batch) | 
              
                | Grain | 
                Amount | 
                % of total bill | 
              
            
            
		@foreach ($grainbills as $bill)
              
                | {{$bill->grain_name}}  | 
                {{$bill->amount}}  | 
                {{$bill->grain_bill}}  | 
              
		@endforeach
            
          
          
            
	      Mash Steps | 
              
                | Temp °C | 
                Duration | 
                Stage | 
              
            
            
                @foreach ($mashsteps as $mash)
              
                | {{$mash->temp}}  | 
                {{$mash->duration}}  | 
                {{$mash->stage}}  | 
              
		@endforeach
		@foreach ($mashsteps as $mash)
		@if($mash->stage == 1)
		Boil: {{$mash->boil}} minutes @if($beer->boil_volume) Boil Volume: {{$beer->boil_volume}}L @endif  | 
		@endif
                @endforeach
            
          
          
            
              Hop Additions | 
              
                | Name | 
                Amount (g) | 
                Timing | 
              
            
            
                @foreach ($hopadditions as $hop)
              
                | {{$hop->hop_name}}  | 
                {{$hop->amount}}  | 
                {{$hop->timing}}  | 
              
                @endforeach
            
	  
          
	  @if(! $adjunctadditions->isEmpty())
          
            
              Adjunct Additions | 
              
                | Name | 
                Amount | 
                Timing | 
              
            
            
                @foreach ($adjunctadditions as $adjunct)
              
                | {{$adjunct->adjunct_name}}  | 
                {{$adjunct->amount}}  | 
                {{$adjunct->timing}}  | 
              
                @endforeach
            
          
	  @endif
		
            
        
    
@endsection