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 editor1", "placeholder"=>"Description"))}} {{$errors->first('description')}}
{{Form::textarea('ingredient',$recipe->ingredient,array("class"=>"form-control editor1", "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 editor1", "placeholder"=>"Method"))}}
{{Form::file('recipe_image',array("class"=>"form-control"))}}
@if($recipe->recipe_image == '') There is no image uploaded for this recipe. @else {{HTML::image('images/'.$recipe->recipe_image,"",["class"=>"img-brand"])}} @endif
{{Form::close()}}
Related Recipes
{{Form::open(array("url"=>"/admin/recipes/related/save/".$recipe->id,"method" => "POST","role"=>"form","class" => "horizontal-form","files"=>true))}}
{{Form::select('related_recipe_id',$all_recipes,'',array("class"=>"form-control"))}} {{$errors->first('related_recipe_id')}}
{{Form::close()}} @foreach($related_recipes as $rel)
{{$rel->recipe_name}}

@endforeach
Related Product
{{Form::open(array("url"=>"/admin/recipes/related-product/save/".$recipe->id,"method" => "POST","role"=>"form","class" => "horizontal-form"))}}
{{Form::select('related_product_id',$all_products,'',array("class"=>"form-control"))}} {{$errors->first('related_product_id')}}
{{Form::close()}} @foreach($related_products as $pro)
{{$pro->product_name}}
@endforeach