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('mashes')
@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> -> {{ __('Mash Steps') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
<div class="card-body"> @if (Auth::user()->isAdmin()) <a href="{{ route('mashes.create') }}" class="btn btn-primary">Add Mash 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">Beer</th> <th scope="col">Temperature</th> <th scope="col">Duration</th> <th scope="col">Stage</th> <th scope="col">Length of Boil</th> @if (Auth::user()->isAdmin())<th colspan="2" scope="col">Admin</th>@endif <tbody> @foreach ($mashes as $mash) <tr> <td><a href="/beer/{{$mash->beer_id}}">{{$mash->beer}}</a> </td> <td>{{$mash->temp}} </td> <td>{{$mash->duration}} </td> <td>{{$mash->stage}} </td> <td>{{$mash->boil}} </td> @if (Auth::user()->isAdmin()) <td><a href="{{ route('mashes.edit',$mash->id)}}" class="btn btn-primary">Edit</a></td> <td><form action="{{ route('mashes.destroy', $mash->id)}}" method="post"> @csrf @method('DELETE') <button class="btn btn-danger" type="submit">Delete</button> </form></td> @endif </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div>
@endsection
|