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.
|
|
@extends('adjunctadditions') @section('main') <div class="row"> <div class="col-sm-12"> <h1 class="display-3">Update Adjunct Addition</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('adjunctadditions.update', $adjunctaddition->id) }}"> @method('PATCH') @csrf <div class="form-group"> <label for="beer_id">Beer</label> <select class="form-control" name="beer_id"> @foreach ($beers as $beer) <option value="{{$beer->beer_id}}" {{ $selected_beer == $beer->beer_id ? 'selected="selected"' : '' }}>{{$beer->name}}</option> @endforeach </select> </div> <div class="form-group"> <label for="adjunct_id">Adjunct</label> <select class="form-control" name="adjunct_id"> @foreach ($adjuncts as $adjunct) <option value="{{$adjunct->id}}" {{ $selected_adjunct == $adjunct->id ? 'selected="selected"' : '' }}>{{$adjunct->name}}</option> @endforeach </select> </div> <div class="form-group"> <label for="amount">Amount</label> <input type="text" maxlength="10" class="form-control" name="amount" value="{{$adjunctaddition->amount}}" /> </div> <div class="form-group"> <label for="timing">Timing</label> <input type="text" maxlength="10" class="form-control" name="timing" value="{{$adjunctaddition->timing}}" /> </div> <div class="form-group"> <label for="alternative">Alternative</label> <select class="form-control" name="alternative"> <option value="">None suggested</option> @foreach ($adjuncts as $adjunct) <option value="{{$adjunct->id}}" {{ !(is_null($adjunctaddition->alternative)) & $selected_alt == $adjunct->id ? 'selected="selected"' : '' }}>{{$adjunct->name}}</option> @endforeach </select> </div> <div class="form-group"> <label for="notes">Notes</label> <textarea type="text" class="form-control" name="notes">{{$adjunctaddition->notes}}</textarea> </div> <button type="submit" class="btn btn-primary">Update</button> </form> </div> </div> @endsection
|