mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
PHTML
34 lines
1.4 KiB
PHTML
<div class="wizard-form">
|
|
<div class="row">
|
|
<div class="col-md-6 mt-3">
|
|
<div class="form-group pt-3" >
|
|
<br>
|
|
<label for="active">
|
|
{{__('Active')}}
|
|
</label>
|
|
<input name="active" type="checkbox" id="active"
|
|
|
|
class="float-left ml-4 mt-1 form-check-inline @error('active') is-invalid @enderror"
|
|
@if (old('active',$product->active??0) != 0)
|
|
checked
|
|
@endif
|
|
value="1"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" id="jDataSrc" value='{!! $product->category->props??'[]' !!}'>
|
|
<input type="hidden" id="jDef" value='{!! $product->meta??'[]' !!}'>
|
|
<meta-element id="jdata" ref="metaEl" :searchable="false" :defz="def" :jdata='jdata'></meta-element>
|
|
<div id="meta" class="row"></div>
|
|
|
|
<div id="metaprice">
|
|
<meta-price ref="metaPr" :jdata='jdata' :images='{!! isset($product)?$product->getMedia():'[]' !!}'
|
|
:defz='{!! isset($product)?$product->quantities()->pluck('data'):'[]' !!}' ></meta-price>
|
|
</div>
|
|
@if(isset($product))
|
|
<input type="hidden" name="id" value="{{$product->id}}"/>
|
|
<input type="hidden" id="metaz" value='@json($product->getAllMeta())'>
|
|
@endif
|
|
</div>
|