Recipes

Go Back
@if(Session::has('success'))
Success! {{Session::get('success')}}
@endif @if(Session::has('failure'))
Error! {{Session::get('success')}}
@endif
Edit Recipe
{{Form::open(array("url"=>"/admin/recipes/update/".$recipe->id,"method" => "PUT","role"=>"form","class" => "form-horizontal","files"=>true))}}
{{Form::text('recipe_name',$recipe->recipe_name,array("class"=>"form-control", "placeholder"=>"Enter Recipe Name"))}} {{$errors->first('recipe_name')}}
{{Form::select('category_id',$categories,$recipe->category_id,array("class"=>"form-control"))}} {{$errors->first('category_id')}}
{{Form::text('preparation_time',$recipe->preparation_time,array("class"=>"form-control", "placeholder"=>"Enter Preparation Time"))}} {{$errors->first('preparation_time')}}
{{Form::textarea('description',$recipe->description,array("class"=>"form-control", "placeholder"=>"Description"))}} {{$errors->first('description')}}
{{Form::textarea('ingredient',$recipe->ingredient,array("class"=>"form-control", "placeholder"=>"Ingredient"))}} {{$errors->first('ingredient')}}
{{Form::text('cook_time',$recipe->cook_time,array("class"=>"form-control", "placeholder"=>"Enter Cook Time"))}}
{{Form::text('to_serve',$recipe->to_serve,array("class"=>"form-control", "placeholder"=>"Enter To Serve"))}}
{{Form::textarea('method',$recipe->method,array("class"=>"form-control", "placeholder"=>"Method"))}}
{{Form::file('recipe_image',array("class"=>"form-control"))}}
@if($recipe->recipe_image == '') There is image uploaded for this recipe @else {{HTML::image('images/'.$recipe->recipe_image,"",["class"=>"img-brand"])}} @endif
{{Form::close()}}