View
<div class="form-group">
<label class="col-sm-3 control-label" for="exampleInputEmail1">productos para la orden:*</label>
<div class="col-sm-5">
{{ Form::select('products[]', $products, null, ['id' => 'products', 'multiple' => 'multiple', "class"=>"form-control multi-select"]) }}
<span class="errors">{{ $errors->first('shipping_method_id') }}</span>
</div>
</div>
That is my SELECT multiple where I call from my controller all my products whose stock is greater than 0
Controller
$products = Product::where('stock','>','0')->lists('name', 'id');
return View::make("backend.orders.create")
->with("action","create")
->with('products',$products);
How do I select those items so that I can print them below and then be able to select the amount of this item? Suppose you have a coffee item, select it and down load this item and put an accountant to tell you the number of coffees you want and then in the controller are out of stock.