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.
		
		
		
		
		
			
		
			
				
					
					
						
							49 lines
						
					
					
						
							1.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							49 lines
						
					
					
						
							1.7 KiB
						
					
					
				| @extends('fermentations') | |
| 
 | |
| @section('main') | |
| <div class="container"> | |
|     <div class="row justify-content-center"> | |
|         <div class="col-md-12"> | |
|             <div class="card"> | |
| @include('inc.navbar') | |
|                 <div class="card-header"><a href="/home">Home</a> -> {{ __('Fermentation Instructions') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div> | |
| 
 | |
|                 <div class="card-body"> | |
| @if (Auth::user()->isAdmin()) | |
| 	   <a href="{{ route('fermentations.create') }}" class="btn btn-primary">Add Fermentation Step</a> | |
| 	   <hr/> | |
| @endif | |
| <table class="table table-striped table-dark" id="table-programs"> | |
|   <!-- This piece of code is for error messages display purposes --> | |
|   @include('inc.messages') | |
|   <thead> | |
|     <tr> | |
|       <th scope="col">Yeast</th> | |
|       <th scope="col">Beer</th> | |
|       <th scope="col">Temperature</th> | |
|       @if (Auth::user()->isAdmin())<th scope="col">Admin</th>@endif | |
|   <tbody> | |
|   @foreach ($fermentations as $fermentation) | |
|     <tr> | |
|       <td><a href="/yeast/{{$fermentation->yeast_id}}">{{$fermentation->name}}</a> </td> | |
|       <td><a href="/beer/{{$fermentation->beer_id}}">{{$fermentation->beer}}</a> </td> | |
|       <td>{{$fermentation->temperature}} </td> | |
|       @if (Auth::user()->isAdmin()) | |
|         <td><span id="buttons"><a href="{{ route('fermentations.edit',$fermentation->id)}}" class="btn btn-primary editbutton">Edit</a> | |
|         <form action="{{ route('fermentations.destroy', $fermentation->id)}}" method="post"> | |
|           @csrf | |
|           @method('DELETE') | |
|           <button class="btn btn-danger deletebutton" type="submit">Delete</button> | |
|         </form></span></td> | |
|       @endif | |
|     </tr> | |
|   @endforeach | |
|   </tbody> | |
| </table> | |
|                 </div> | |
|             </div> | |
|         </div> | |
|     </div> | |
| </div> | |
| 
 | |
| @endsection
 |