@extends('layouts.default') @extends('content_wrappers.md-10') @section('title', ' | Edit '.$recipe->name) @section('heading', 'Edit '.$recipe->name) @section('content')
{{ Form::model($recipe, array('route' => array('recipes.update', $recipe->id), 'method' => 'PUT')) }}
{{ Form::label('author', 'Created By:') }} {{ Form::text('author', null, array('class' => 'form-control', 'id' => 'authorFilter')) }}
{{ Form::label('user', 'Maintained By:') }} {{ Form::select($recipe->user->name, $lists['owners'], array('class' => 'form-control')) }}
Entered On: {{$recipe->date_entered->format('Y/m/d') }}
Last Changed: {{$recipe->date_modified->format('Y/m/d') }}
{{ Form::label('servings', 'Servings:') }} {{ Form::text('servings', null, array('class' => 'form-control')) }}
Serving Size: {{$recipe->serving_size}}

Categories

@foreach ($recipe->categories as $index => $category) {{ Form::button(ucwords($category->name), array('class' => 'btn form-control category','style'=>'width:100px;margin-left:10px;margin-bottom:10px;'))}} @endforeach
{{ Form::button("Add", array('id'=>'addCategory','class'=>'form-control'))}}

Description

{{ Form::textarea('description', null, array('class' => 'form-control', 'id' => 'descriptionEditor','name'=>'descriptionEditor')) }}

Ingredients

@foreach ($recipe->ingredients as $index => $ingredient) @endforeach
Alternative? Quantity Measurement Name          
@if($index != 0) {{Form::checkbox($ingredient->alternative,null,$ingredient->alternative,array('class' => 'form-control ingredientAlternative'))}} @endif {{Form::text($ingredient->quantity,$ingredient->quantity,array('class' => 'form-control ingredientQuantity'))}} {{Form::text($ingredient->measurement,$ingredient->measurement,array('class' => 'form-control ingredientMeasurement'))}} {{Form::text($ingredient->name,$ingredient->name,array('class' => 'form-control ingredientName'))}} {{Form::button("Remove",array('class' => 'form-control ingredientRemove'))}}
{{Form::checkbox($ingredient->alternative,null,false,array('class' => 'form-control ingredientAlternative','id'=>'addIngredientAlternative'))}} {{Form::text($ingredient->quantity,null,array('class' => 'form-control ingredientQuantity'))}} {{Form::text($ingredient->measurement,null,array('class' => 'form-control ingredientMeasurement'))}} {{Form::text($ingredient->name,null,array('class' => 'form-control ingredientName'))}} {{Form::button("Add",array('class' => 'form-control','id' => 'addIngredient'))}}
@if(count($recipe->ingredients) > 0)
@endif

Instructions

{{ Form::textarea('instructions', null, array('class' => 'form-control', 'id' => 'instructionsEditor','name'=>'instructionsEditor')) }} {{ Form::submit('Save', array('class' => 'btn btn-primary')) }} {{ Form::close() }} @endsection @section('scripts') @endsection @section('styles') @endsection