@extends('layouts.app')
@section('content')
    
        
            
@include('inc.navbar')
                
                
	  {{$beer->name}}
          
            
              
                | Style | ABV % | OG | FG | 
            
            
              
                | {{$beer->type}} | {{$beer->abv}} | {{$beer->og}} | {{$beer->fg}} | 
	     
	    
          
            
              | 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 | 
		@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