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.
		
		
		
		
		
			
		
			
				
					
					
						
							54 lines
						
					
					
						
							2.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							54 lines
						
					
					
						
							2.1 KiB
						
					
					
				
								@extends('hopadditions')
							 | 
						|
								
							 | 
						|
								@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> -> {{ __('Hop Additions') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
							 | 
						|
								
							 | 
						|
								                <div class="card-body">
							 | 
						|
								@if (Auth::user()->isAdmin())
							 | 
						|
								      <a href="{{ route('hopadditions.create') }}" class="btn btn-primary">Add Hop Addition</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">Beer</th>
							 | 
						|
										            <th scope="col">Hop</th>
							 | 
						|
								                <th scope="col">Amount</th>
							 | 
						|
										            <th class="hideable" scope="col">Timing</th>
							 | 
						|
								                @if (Auth::user()->isAdmin())<th scope="col">Admin</th>@endif
							 | 
						|
								              </tr>
							 | 
						|
								            </thead>
							 | 
						|
								
							 | 
						|
								            <tbody>
							 | 
						|
									    @foreach ($hopadditions as $hopaddition)
							 | 
						|
								              <tr>
							 | 
						|
								                <td><a href="/beer/{{$hopaddition->beer_id}}">{{$hopaddition->beer}}</a> </td>
							 | 
						|
										            <td><a href="/hop/{{$hopaddition->hop_id}}">{{$hopaddition->hop}}</a> </td>
							 | 
						|
								                <td>{{$hopaddition->amount}} </td>
							 | 
						|
										            <td class="hideable">{{$hopaddition->timing}} </td>
							 | 
						|
								                @if (Auth::user()->isAdmin())
							 | 
						|
								                  <td><span id="buttons"><a href="{{ route('hopadditions.edit',$hopaddition->id)}}" class="btn btn-primary editbutton">Edit</a>
							 | 
						|
								                  <form action="{{ route('hopadditions.destroy', $hopaddition->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
							 |