@component('components.widget', ['class' => 'box-solid'])
{!! Form::label('location_id', __('purchase.business_location') . ':') !!}
{!! Form::select('location_id', $business_locations, null, [
'class' => 'form-control',
'placeholder' => __('messages.please_select'),
]) !!}
{!! Form::label('color', __('productcatalogue::lang.qr_code_color') . ':') !!}
{!! Form::text('color', '#000000', ['class' => 'form-control']) !!}
{!! Form::label('title', __('productcatalogue::lang.title') . ':') !!}
{!! Form::text('title', $business->name, ['class' => 'form-control']) !!}
{!! Form::label('subtitle', __('productcatalogue::lang.subtitle') . ':') !!}
{!! Form::text('subtitle', __('productcatalogue::lang.product_catalogue'), ['class' => 'form-control']) !!}
{!! Form::label('product', __('productcatalogue::lang.product') . ':') !!}
{!! Form::select('product[]',
// Products should be in format [id => name]
$products->pluck('name', 'id')->toArray(),
isset($selectedProducts) ? $selectedProducts : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'product_select',
'style' => 'width: 100%' // Ensures proper Select2 width
]
) !!}
{!! Form::label('variation_type', __('productcatalogue::lang.varition_type') . ':') !!}
{!! Form::select('variation_type[]',
// Products should be in format [id => name]
$varitionsType->pluck('name', 'id')->toArray(),
isset($selectedVaritionsType) ? $selectedVaritionsType : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'variation_type_select',
'style' => 'width: 100%' // Ensures proper Select2 width
]
) !!}
{!! Form::label('variation', __('productcatalogue::lang.varition') . ':') !!}
{!! Form::select('variation[]',
// Products should be in format [id => name]
$varitions->pluck('name', 'id')->toArray(),
isset($selectedVaritions) ? $selectedVaritions : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'variation_select',
'style' => 'width: 100%' // Ensures proper Select2 width
]
) !!}
{!! Form::label('category', __('productcatalogue::lang.category') . ':') !!}
{!! Form::select('category[]',
$categories->pluck('name', 'id')->toArray(),
isset($selectedCategories) ? $selectedCategories : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'category_select',
'style' => 'width: 100%'
]
) !!}
{!! Form::label('sub_category', __('productcatalogue::lang.sub_category') . ':') !!}
{!! Form::select('sub_category[]',
$subCategories->pluck('name', 'id')->toArray(),
isset($selectedsubCategories) ? $selectedsubCategories : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'sub_category_select',
'style' => 'width: 100%'
]
) !!}
{!! Form::label('brands', __('brand.brands') . ':') !!}
{!! Form::select('brands[]',
$brands,
isset($brands) ? $brands : null,
[
'class' => 'form-control select2',
'multiple' => 'multiple',
'id' => 'brands_select',
'style' => 'width: 100%'
]
) !!}
@endcomponent
@component('components.widget', ['class' => 'box-solid'])
@lang('lang_v1.instruction'):
| 1 |
@lang('productcatalogue::lang.catalogue_instruction_1') |
| 2 |
@lang('productcatalogue::lang.catalogue_instruction_2') |
| 3 |
@lang('productcatalogue::lang.catalogue_instruction_3') |
@endcomponent