{{ html()->label(__('message.title') . ' *', 'title')->class('form-control-label') }}
{{ html()->text('title')->placeholder(__('message.title'))->class('form-control')->attribute('required','required') }}
{{ html()->label(__('message.affiliate_link').' *')->class('form-control-label') }}
{{ html()->input('url','affiliate_link', old('affiliate_link'))->placeholder(__('message.affiliate_link'))->class('form-control')->attribute('required') }}
{{ html()->label(__('message.price').' *')->class('form-control-label') }}
{{ html()->number('price', old('price'))->placeholder(__('message.price'))->class('form-control')->attribute('min', 0)->attribute('step', 'any')->attribute('required', 'required') }}
{{ html()->label(__('message.productcategory').' *')->class('form-control-label') }}
{{ html()->select('productcategory_id', isset($id) ? [ optional($data->productcategory)->id => optional($data->productcategory)->title ] : [], old('productcategory_id'))
->class('select2js form-group productcategory')
->attribute('data-placeholder', __('message.select_name', ['select' => __('message.productcategory')]))
->attribute('data-ajax--url', route('ajax-list', ['type' => 'productcategory']))
->attribute('required', 'required')
}}
{{ html()->label(__('message.status') . ' *', 'status')->class('form-control-label') }}
{{ html()->select('status',[ 'active' => __('message.active'), 'inactive' => __('message.inactive') ], old('status'))->class('form-control select2js')->attribute('required', 'required') }}
{{ html()->label(__('message.description'))->class('form-control-label') }}
{{ html()->textarea('description', null)->class('form-control tinymce-description') ->placeholder(__('message.description')) }}
@if( isset($id) && getMediaFileExit($data, 'product_image'))
@endif
{{ html()->submit( __('message.save') )->class('btn btn-md btn-primary float-end') }}