@extends('layouts.default') @extends('content_wrappers.md-10') @section('title', ' | '.$recipe->name) @section('heading') @if(Auth::user() && (in_array('EditRecipe',$allperms) || $recipe->user_id == Auth::user()->id)) {{$recipe->name}} @else {{$recipe->name }} @endif @endsection @section('content')
Created By: {{$recipe->author}}
Maintained By: {{$recipe->user->name}}
Entered On: {{$recipe->date_entered->format('Y/m/d') }}
Last Changed: {{$recipe->date_modified->format('Y/m/d') }}
Servings: {{$recipe->servings}}
Serving Size: {{$recipe->serving_size}}

Categories

@foreach ($recipe->categories as $index => $category){{($index != 0 ? ", " : "").ucwords($category->name)}}@endforeach

Description

{!!$recipe->description!!}

Ingredients

@foreach ($recipe->ingredients as $index => $ingredient) @if ($ingredient->alternative) OR {{$ingredient->quantity}} {{$ingredient->measurement}} {{$ingredient->name}} @else @if($index != 0)
@endif
{{$ingredient->quantity}} {{$ingredient->measurement}} {{$ingredient->name}} @endif @endforeach @if(count($recipe->ingredients) > 0)
@endif

Instructions

{!!$recipe->instructions!!}
@endsection