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.
 
 
 
 
 
 

56 lines
1.9 KiB

@extends('fermentations')
@section('main')
<div class="row">
<div class="col-sm-12 offset-sm-2">
<h1 class="display-3">Add a Fermentation Step</h1>
<div>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div><br />
@endif
<form method="post" action="{{ route('fermentations.store') }}">
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="yeast_id">Yeast</label>
<select>
@foreach ($yeasts as $yeast)
<option name="yeast_id" value="{{$yeast->id}}">{{$yeast->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="temperature">Temperature</label>
<input type="text" maxlength="20" class="form-control" name="temperature">
</div>
<div class="form-group">
<label for="duration">Duration</label>
<textarea type="text" class="form-control" name="duration"></textarea>
</div>
<div class="form-group">
<label for="alternative">Alternative</label>
<select>
@foreach ($yeasts as $yeast)
<option name="alternative" value="{{$yeast->id}}">{{$yeast->name}}</option>
@endforeach
</select>
</div>
<button type="submit" class="btn btn-primary">Add Fermentation Step</button>
</form>
</div>
</div>
</div>
@endsection