Basic Information
{!! Form::label('parent_id', 'Select Category:') !!} {!! Form::select('parent_id', $data['categories'], $data['selected_categories'], ['multiple'=>'multiple','name'=>'category[]','class'=>'form-control select2']) !!}
{!! Form::label('name', 'Name:') !!} {!! Form::text('name', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter product name ...', 'onblur' => 'ajax_request();']) !!}
{!! Form::label('slug', 'Slug:') !!} {!! Form::text('slug', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter slug ...']) !!} @if($data['cmd'] == 'edit') @endif
{!! Form::label('sku', 'SKU:') !!} {!! Form::text('sku', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter SKU ...']) !!}
{!! Form::label('', 'Type:') !!}
@php $css_dispay = 'd-none'; if(isset($data['product']) && $data['product']->type == 'variation') { $css_dispay = ''; } @endphp
{!! Form::label('variation_select', 'Variation Select Menu Caption:') !!}
{!! Form::select('variation_select', \App\Models\Product::$variation_caption, null, ['class'=>'form-control']) !!}
@if($data['type'] == 'child')
{!! Form::label('', 'Show Individually:') !!}
{!! Form::label('', 'Link Type:') !!}
@endif
{!! Form::label('', 'Surgical Set Product:') !!}
{!! Form::label('', 'Promo Product:') !!}
{!! Form::hidden('cmd', 'slug') !!} {!! Form::hidden('table', 'product') !!} {!! Form::hidden('step', '1') !!} @if($data['cmd'] == 'edit') @push('after-scripts') @endpush @endif