@extends('layouts.default') @extends('content_wrappers.md-10') @section('title', '| Recipes') @section('heading', 'Recipes') @section('content')
Name | Created By | Maintainer | Operations |
---|---|---|---|
{{ $recipe->name }} | {{ $recipe->author }} | {{ $recipe->user ->name}} | @if(in_array('EditRecipe',$allperms) || ( Auth::user() && $recipe->user_id == Auth::user()->id)) Edit @endif @if(in_array('DeleteRecipe',$allperms) || ( Auth::user() && $recipe->user_id == Auth::user()->id)) {!! Form::open(['method' => 'DELETE', 'route' => ['recipes.destroy', $recipe->id] ]) !!} {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @endif |