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.
71 lines
3.3 KiB
71 lines
3.3 KiB
@extends('hops')
|
|
@section('main') <div class="row">
|
|
<div class="col-sm-12 offset-sm-2">
|
|
<h1 class="display-3">Update Grain</h1>
|
|
|
|
@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('hops.update', $hop->id) }}">
|
|
@method('PATCH')
|
|
@csrf
|
|
<div class="form-group">
|
|
<label for="">Name</label>
|
|
<input type="text" class="form-control" name="name" value="{{$hop->name}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="bitter">Bittering?</label>
|
|
<input type="checkbox" class="form-control" name="bitter" @if($hop->bitter == 1) checked @endif />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="aroma">Aroma?</label>
|
|
<input type="checkbox" class="form-control" name="aroma" @if($hop->aroma == 1) checked @endif />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="profile">Profile</label>
|
|
<textarea type="text" class="form-control" name="profile" >{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$hop->profile)))))}}</textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="alpha_acid">Alpha-Acid %</label>
|
|
<input type="text" class="form-control" name="alpha_acid" value="{{$hop->alpha_acid}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="beta_acid">Beta-Acid %</label>
|
|
<input type="text" class="form-control" name="beta_acid" value="{{$hop->beta_acid}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="total_oil">Total Oil %</label>
|
|
<input type="text" class="form-control" name="total_oil" value="{{$hop->total_oil}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cohumulone">Cohumulone %</label>
|
|
<input type="text" class="form-control" name="cohumulone" value="{{$hop->cohumulone}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="myrcene">Myrcene %</label>
|
|
<input type="text" class="form-control" name="myrcene" value="{{$hop->myrcene}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="humulene">Humulene %</label>
|
|
<input type="text" class="form-control" name="humulene" value="{{$hop->humulene}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="farnesene">Farnesene %</label>
|
|
<input type="text" class="form-control" name="farnesene" value="{{$hop->farnesene}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="caryophyllene">Caryophyllene</label>
|
|
<input type="text" class="form-control" name="caryophyllene" value="{{$hop->caryophyllene}}" />
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Update</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|