@extends('admin.layout.master') @section('admin')
{{ Breadcrumbs::render('admin.product.features.detail',$productFeature) }}

{!! trans('admin/product.features.detail.title',['title'=>$productFeature->title]) !!}

{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@if($errors->any())
@foreach ($errors->all() as $error) {!! $error !!}
@endforeach
@endif
{{html()->label()->for("status")->html(trans("admin/product.features.form.status")) }} {{html()->select()->options( $form['statuses'])->required(true)->name("status")->value($productFeature->status)->id("form-status")->class("form-control")}}
{{html()->label()->for("lang")->html(trans("admin/product.features.form.lang")) }} : {{html()->span()->id("lang")->style(['font-size'=>'0.8rem'])->text($productFeature->language!==null ? $productFeature->language->title:$productFeature->lang_code)}}
{{html()->label()->for("formType")->html(trans("admin/product.features.form.type")) }} : {{html()->span()->id("formType")->style(['font-size'=>'0.8rem'])->text($formType)}} {{html()->hidden()->name("type")->value($productFeature->type)}}
{{html()->label()->for("formTitle")->html(trans("admin/product.features.form.title")) }} {{html()->input()->name("title")->required(true)->id("formTitle")->value($productFeature->title)->class("form-control")}}
{{html()->label()->for("formDescription")->html(trans("admin/product.features.form.description")) }} {{html()->input()->name("description")->value($productFeature->description)->id("formDescription")->class("form-control")}}
@if($productFeature->type==="select")
{{html()->label()->for("formOptions")->html(trans("admin/product.features.form.options")) }}
@if(is_array($selectOptions)) @foreach($selectOptions as $selectOpt)
{{html()->label()->for("formOption")->html(trans("admin/product.features.form.option_short")) }} {{html()->input()->name("options[]")->value($selectOpt)->id("formOption")->class("form-control")}}
@endforeach @else
{{html()->label()->for("formOption")->html(trans("admin/product.features.form.option_short")) }} {{html()->input()->name("option")->id("formOption")->class("form-control")}}
@endif
@endif
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(' '.trans("admin/product.features.detail.form.action")) }}
{{ html()->form()->close() }}
@endsection @section('admin.javascript')