@php $title_classes = isset($product) ? 'form-control' : 'form-control makeSlug'; @endphp @if (config('system_settings.can_use_own_catalog_only') && auth()->user()->isFromPlatform())
{{ trans('app.notice') }} {!! trans('messages.vendor_can_use_own_catalog_only_notice') !!}
@else

{{ isset($product) ? trans('app.update_product') : trans('app.add_product') }}

@if (!isset($product)) {{ trans('app.bulk_import') }} @endif
{!! Form::label('name', trans('app.form.name') . '*', ['class' => 'with-help']) !!} {!! Form::text('name', null, ['class' => $title_classes, 'placeholder' => trans('app.placeholder.title'), 'required']) !!}
{!! Form::label('active', trans('app.form.status') . '*', ['class' => 'with-help']) !!} {!! Form::select('active', ['1' => trans('app.active'), '0' => trans('app.inactive')], !isset($product) ? 1 : null, ['class' => 'form-control select2-normal', 'placeholder' => trans('app.placeholder.status'), 'required']) !!}
{!! Form::label('mpn', trans('app.form.mpn'), ['class' => 'with-help']) !!} {!! Form::text('mpn', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.mpn')]) !!}
{!! Form::label('gtin', trans('app.form.gtin'), ['class' => 'with-help']) !!} {!! Form::text('gtin', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.gtin')]) !!}
{!! Form::label('gtin_type', trans('app.form.gtin_type'), ['class' => 'with-help']) !!} {!! Form::select('gtin_type', $gtin_types, null, ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.gtin_type')]) !!}
{!! Form::label('description', trans('app.form.description') . '*', ['class' => 'with-help']) !!} {!! Form::textarea('description', null, ['class' => 'form-control summernote', 'rows' => '4', 'placeholder' => trans('app.placeholder.description'), 'required']) !!}
{!! $errors->first('description', ':message') !!}
{{ trans('app.form.images') }}
{{ trans('help.multi_img_upload_instruction', ['size' => getAllowedMaxImgSize(), 'number' => getMaxNumberOfImgsForInventory(), 'dimension' => '800 x 800']) }}

* {{ trans('app.form.required_fields') }}

{!! Form::submit(isset($product) ? trans('app.form.update') : trans('app.form.save'), ['class' => 'btn btn-flat btn-lg btn-primary']) !!}

{{ trans('app.organization') }}

{!! Form::label('category_list[]', trans('app.form.categories') . '*') !!} {!! Form::select('category_list[]', $categories, null, ['class' => 'form-control select2-normal', 'multiple' => 'multiple', 'required']) !!}
{{ trans('app.catalog_rules') }}
{{ Form::hidden('requires_shipping', 0) }} {!! Form::checkbox('requires_shipping', null, !isset($product) ? 1 : null, ['id' => 'requires_shipping', 'class' => 'icheckbox_line']) !!} {!! Form::label('requires_shipping', trans('app.form.requires_shipping')) !!}
{{ Form::hidden('downloadable', 0) }} {!! Form::checkbox('downloadable', null, null, ['class' => 'icheckbox_line']) !!} {!! Form::label('downloadable', trans('app.form.downloadable')) !!}
@if (auth()->user()->isFromplatform())
{!! Form::label('min_price', trans('app.form.catalog_min_price'), ['class' => 'with-help']) !!}
{{ get_currency_symbol() }} {!! Form::number('min_price', null, ['class' => 'form-control', 'step' => 'any', 'min' => '0', 'placeholder' => trans('app.placeholder.catalog_min_price')]) !!}
{!! Form::label('max_price', trans('app.form.catalog_max_price'), ['class' => 'with-help']) !!}
{{ get_currency_symbol() }} {!! Form::number('max_price', null, ['class' => 'form-control', 'step' => 'any', 'min' => '0', 'placeholder' => trans('app.placeholder.catalog_max_price')]) !!}
@endif
{{ trans('app.featured_image') }} @if (isset($product) && $product->featureImage) {{ trans('app.featured_image') }} @endif
{{ trans('app.form.upload') }}
{{ trans('app.branding') }}
{!! Form::label('origin_country', trans('app.form.origin'), ['class' => 'with-help']) !!} {!! Form::select('origin_country', $countries, null, ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.origin')]) !!}
{!! Form::label('manufacturer_id', trans('app.form.manufacturer'), ['class' => 'with-help']) !!} {!! Form::select('manufacturer_id', $manufacturers, null, ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.manufacturer')]) !!}
{!! Form::label('brand', trans('app.form.brand'), ['class' => 'with-help']) !!} {!! Form::text('brand', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.brand')]) !!}
{!! Form::label('model_number', trans('app.form.model_number'), ['class' => 'with-help']) !!} {!! Form::text('model_number', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.model_number')]) !!}
{{ trans('app.seo') }}
{!! Form::label('slug', trans('app.form.slug') . '*', ['class' => 'with-help']) !!} {!! Form::text('slug', null, ['class' => 'form-control slug', 'placeholder' => trans('app.placeholder.slug'), isset($product) ? 'disabled' : 'required']) !!}
{!! Form::label('tag_list[]', trans('app.form.tags'), ['class' => 'with-help']) !!} {!! Form::select('tag_list[]', $tags, null, ['class' => 'form-control select2-tag', 'multiple' => 'multiple']) !!}
@endif