Commit ba9fd6e3 by Francisco Salazar

recomendados con checkbox

parent 4dc5f91f
......@@ -21,8 +21,16 @@
<div class="form-group">
{!! Form::label('related_subcategories', '¿De cual(es) subcategorías seran los productos relacionados de esta subcategoría?') !!}
{!! Form::select('related_subcategories[]', $related_subcategories, isset($subcategory->related_products) ? $subcategory->related_products->pluck("id") : null, ["class"=>"form-control", "multiple" => "multiple", "id" => "related_subcategories", "style" => "width: 100%;"]) !!}
</div>
<div class="row">
@foreach($related_subcategories as $index => $value)
<div class="col-md-2">
{!! Form::checkbox('related_subcategories[]', $index, in_array($index,isset($subcategory->related_products) ? $subcategory->related_products->pluck("id")->toArray() : []) ? true : false) !!} {{$value}}
</div>
@endforeach
</div>
<br>
<br>
<div class="form-group">
{!! Form::label('portada', 'Imagén de portada') !!}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment