@extends('layouts.default') @extends('content_wrappers.md-12') @section('title', '| Recipes') @section('heading', 'Recipes') @section('content')
@if(Auth::user()) @endif @if(Auth::user()) @endif @foreach ($recipes as $recipe) @if(Auth::user()) @endif @endforeach
Name Categories Created ByOperations
{{ $recipe->name }} @foreach ($recipe->categories as $category) {{ $category->name }} @endforeach {{ $recipe->author }} @if(in_array('EditRecipe',$allperms) || $recipe->user_id == Auth::user()->id) Edit @endif @if(in_array('DeleteRecipe',$allperms) || $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
@if(Auth::user()) Create New Recipe @endif @endsection @section('scripts') @endsection @section('styles') @endsection