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.
		
		
		
		
		
			
		
			
				
					
					
						
							47 lines
						
					
					
						
							2.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							47 lines
						
					
					
						
							2.1 KiB
						
					
					
				| @extends('yeasts') | |
| @section('main') <div class="row"> | |
|     <div class="col-sm-12 offset-sm-2"> | |
|         <h1 class="display-3">Update Yeast</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('yeasts.update', $yeast->id) }}"> | |
|             @method('PATCH') | |
|             @csrf | |
|             <div class="form-group"> | |
|               <label for="name">Name</label> | |
|                   <input type="text" class="form-control" name="name" value="{{$yeast->name}}" /> | |
|             </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('{','',$yeast->profile)))))}}</textarea> | |
|             </div> | |
|             <div class="form-group"> | |
|               <label for="attenuation">Attenuation</label> | |
|                   <input type="text" maxlength="9" class="form-control" name="attenuation" value="{{$yeast->attenuation}}" /> | |
|             </div> | |
|             <div class="form-group"> | |
|               <label for="flocculation">Flocculation</label> | |
|                   <input type="text" maxlength="15" class="form-control" name="flocculation" value="{{$yeast->flocculation}}" /> | |
|             </div> | |
|             <div class="form-group"> | |
|               <label for="tolerance">Alcohol Tolerance</label> | |
|                   <input type="text" maxlength="25" class="form-control" name="tolerance" value="{{$yeast->tolerance}}" /> | |
|             </div> | |
|             <div class="form-group"> | |
|               <label for="temp_range">Temperature Range °C</label> | |
|                   <input type="text" maxlength="7" class="form-control" name="temp_range" value="{{$yeast->temp_range}}" /> | |
|             </div> | |
|             <button type="submit" class="btn btn-primary">Update</button> | |
|         </form> | |
|     </div> | |
| </div> | |
| @endsection
 |