@extends('layouts.main') @section('title') Cookini @endsection @section('content') @if($errors->any()) @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach @endif

    Update a recipe

    {{ Form::model($recipe, array('action' => array('RecipeController@update', $recipe->Id_recipe), 'method' => 'PUT')) }}
    {{ Form::label('Name', 'Name') }} {{ Form::text('Name', null, array('class' => 'form-control')) }}
    {{ Form::label('Additions', 'Additions') }} {{ Form::text('Additions', null, array('class' => 'form-control')) }}
    {{ Form::label('Steps', 'Steps') }} {{ Form::textarea('Steps', null, array('class' => 'form-control')) }}
    {{ Form::label('Ingredients', 'Ingredients') }} {{ Form::text('Ingredients', null, array('class' => 'form-control')) }}
    {{ Form::submit('Edit the recipe', array('class' => 'btn btn-primary')) }} {{ Form::close() }}
    @endsection