@if (optional($form)->id) {{ __('common.edit') }} - {{ optional($form)->product_name }} @else {{ __('common.create') }} @endif
reply_all
{{ __('common.go_back') }}
@csrf
@if (optional($form)->id) @method('PUT') @else @method('POST') @endif @if (optional($form)->id)
@else
@endif
{{ __('common.product_information') }}
{{--
is_featured ?? '' === 'Yes') checked @endif class="vh" name="is_featured" value="Y">
{{ __('common.featured_product') }}
--}}
{{ __('auth.register.labels.name') }}
@include('includes.invalid', ['field'=> 'product_name'])
{{ __('common.stock') }}
@foreach ($options['stock'] as $key => $name)
stock ?? '') === $name ? 'selected' : '' }}> {{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'stock'])
Select {{ __('common.currency') }}
currency ?? '') === $currency->id ? 'selected' : '' }}> {{ __($currency->title) }}
@include('includes.invalid', ['field' => 'currency'])
{{ __('common.brand') }}
@foreach ($options['brand'] as $key => $name)
brand ?? '') === $name ? 'selected' : '' }}> {{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'status'])
{{ __('common.category') }}
Select Category
@foreach ($options['pcategory'] as $key => $code)
parent_cat_id ?? '') === $code->id ? 'selected' : '' }}> {{ $code->name }}
@endforeach
@include('includes.invalid', ['field'=> 'parent_cat_id'])
{{ __('common.sub_category1') }}
Select SubCategory I
@if(isset($subCategory[0]->category[0]['name']))
{{ $subCategory[0]->category[0]['name'] }}
@endif
{{ __('common.sub_category2') }}
Select SubCategory II
@if(isset($subCategory[1]->category[0]['name']))
{{ $subCategory[1]->category[0]['name']}}
@endif
{{ __('common.sub_category3') }}
Select SubCategory III
@if(isset($subCategory[2]->category[0]['name']))
{{ $subCategory[2]->category[0]['name'] }}
@endif
{{ __('common.units') }}
KG
{{--
--}} @include('includes.invalid', ['field'=> 'units'])
{{ __('common.weight') }}
@include('includes.invalid', ['field'=> 'weight'])
{{--
{{ __('common.hsn_code') }}
@include('includes.invalid', ['field' => 'hsn_code'])
--}}
{{ __('common.hsn_code') }}
@foreach ($options['hsncodes'] as $key => $name)
hsn_code ?? '') === $name['code'] ? 'selected' : '' }}> {{ __($name['code']) .'-'. $name['desc']}}
@endforeach
{{--
--}} @include('includes.invalid', ['field' => 'units'])
{{ __('common.sku_no') }}
@include('includes.invalid', ['field' => 'sku_no'])
Note* Used for packing and delivery cost calculation
{{--
{{ __('Volumetric Units') }}
--}}
{{ __('Volumetric Units') }}
CM
Inches
{{--
--}} @include('includes.invalid', ['field'=> 'dimension_units'])
{{--
{{ __('common.length') }}
--}}
{{ __('common.length') }}
@include('includes.invalid', ['field'=> 'length'])
{{--
{{ __('common.width') }}
--}}
{{ __('common.width') }}
@include('includes.invalid', ['field'=> 'width'])
{{--
{{ __('common.height') }}
--}}
{{ __('common.height') }}
@include('includes.invalid', ['field'=> 'height'])
{{ __('common.sort_description') }}
@include('includes.invalid', ['field'=> 'short_desc'])
{{ __('common.qty') }}
@include('includes.invalid', ['field'=> 'qty'])
{{ __('common.product_price') }}
@include('includes.invalid', ['field'=> 'price'])
{{ __('common.product_offer_price') }}
@include('includes.invalid', ['field'=> 'offer_price'])
{{ __('Send Email') }}
{{--
{{ __('common.product_commission') }}
@include('includes.invalid', ['field'=> 'product_commission'])
--}}
{{ __('common.gst') }}
@include('includes.invalid', ['field'=> 'gst'])
{{-- @php $commission = App\Helpers\Helper::getConfig('COMMISSION'); if(isset($form->offer_price)){ $total = 100 + (int)$commission; $netprice = $form->offer_price/$total*100; } @endphp --}}
Tags
@include('includes.invalid', ['field'=> 'tags'])
{{ __('common.long_desc') }}
{!! old('long_desc', $form->long_desc ?? '') !!}
{!! old('long_desc', $form->long_desc ?? '') !!}
@include('includes.invalid', ['field'=>'long_desc'])
backup
{{ __('common.product_image') }}
@include('includes.invalid', ['field'=> 'cover_image'])
{{--
backup
{{ __('common.product_video') }}
@include('includes.invalid', ['field'=>'cover_video'])
--}} {{--
picture_as_pdf
{{ __('common.catalog') }}
@include('includes.invalid', ['field'=>'catalog'])
--}}
{{-- @if(!empty($form->cover_image))
×
@endif --}} {{--
@if ($form) @if ($form->cover_video)
@endif @endif
--}} {{--
@if ($form) @if ($form->catalog)
picture_as_pdf
@endif @endif
--}} {{--
Add Product Images
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}
@isset($form)
{{--
--}} {{--
--}} {{-- {{ __('common.product_images') }} --}} {{--
--}} {{--
--}}
{{-- @foreach ($form->productImages as $image) --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- @endforeach --}}
@endisset
{{ __('common.size_chart') }}
Size Chart
{{--
--}} @include('includes.invalid', ['field' => 'image'])
@if(!empty($chart?->image))
×
@endif
How to measure
{{--
--}} @include('includes.invalid', ['field' => 'image'])
@if(!empty($measure->image))
×
@endif
{{ __('common.product_multipal_image') }}
@include('includes.invalid', ['field'=>'image'])
@if(!empty($form->productImages)) @foreach($form->productImages as $image)
×
@endforeach @endif
{{-- Select product FTT --}}
{{ __('common.is_featured') }}
@foreach ($options['topstatus'] as $key => $name)
is_featured ?? '') === $name ? 'selected' : '' }}> {{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'is_featured'])
{{ __('common.is_top') }}
@foreach ($options['topstatus'] as $key => $name)
is_top ?? '') === $name ? 'selected' : '' }}> {{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'is_top'])
{{ __('common.is_trending') }}
@foreach ($options['topstatus'] as $key => $name)
is_trending ?? '') === $name ? 'selected' : '' }}> {{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'is_trending'])
{{-- End product FTT --}} {{-- Product entry in Hindi --}}
{{ __('common.product_information_hindi') }}
{{ __('auth.register.labels.name') }}
@include('includes.invalid', ['field' => 'product_name_hi'])
{{ __('common.sort_description') }}
@include('includes.invalid', ['field' => 'short_desc_hi'])
{{ __('common.long_desc') }}
{!! old('long_desc_hi', $form->long_desc_hi ?? '') !!}
{!! old('long_desc_hi', $form->long_desc_hi ?? '') !!}
@include('includes.invalid', ['field' => 'long_desc_hi'])
{{-- End Product entry in Hindi --}} {{-- Start product entry Kannad --}}
{{ __('common.product_information_kan') }}
{{ __('auth.register.labels.name') }}
@include('includes.invalid', ['field' => 'product_name_kan'])
{{ __('common.sort_description') }}
@include('includes.invalid', ['field' => 'short_desc_kan'])
{{ __('common.long_desc') }}
{!! old('long_desc_kan', $form->long_desc_kan ?? '') !!}
{!! old('long_desc_kan', $form->long_desc_kan ?? '') !!}
@include('includes.invalid', ['field' => 'long_desc_kan'])
{{-- End product entry Kannad --}} {{-- Start product entry Tamil --}}
{{ __('common.product_information_tam') }}
{{ __('auth.register.labels.name') }}
@include('includes.invalid', ['field' => 'product_name_tam'])
{{ __('common.sort_description') }}
@include('includes.invalid', ['field' => 'short_desc_tam'])
{{ __('common.long_desc') }}
{!! old('long_desc_tam', $form->long_desc_tam ?? '') !!}
{!! old('long_desc_tam', $form->long_desc_tam ?? '') !!}
@include('includes.invalid', ['field' => 'long_desc_tam'])
{{-- End product entry Tamil --}} {{-- Start product entry Telgu --}}
{{ __('common.product_information_tel') }}
{{ __('auth.register.labels.name') }}
@include('includes.invalid', ['field' => 'product_name_tel'])
{{ __('common.sort_description') }}
@include('includes.invalid', ['field' => 'short_desc_tel'])
{{ __('common.long_desc') }}
{!! old('long_desc_tel', $form->long_desc_tel ?? '') !!}
{!! old('long_desc_tel', $form->long_desc_tel ?? '') !!}
@include('includes.invalid', ['field' => 'long_desc_tel'])
{{-- End product entry Telgu --}} {{-- Options fields --}} {{-- Options fields --}}
{{ __('common.product_attributes') }}
@php $loop_count_num = 1; if($optioncount > 0){ $loop_count_num = $optioncount; }else{ $loop_count_num=1; } @endphp {{-- @foreach ($productAttrArr as $key => $val) --}} {{-- @php $loop_count_prev=$loop_count_num; $pAArr=(array)$val; @endphp --}}
{{ __('common.select_option') }}
{{ __('common.select_option') }}
@foreach ($options['optionsitem'] as $key => $code)
attributes ?? '') === $code->id ? 'selected' : '' }}> {{ $code->attributes }}
@endforeach
{{ __('common.select_option_value') }}
{{ __('common.select_option_value') }}
@include('includes.invalid', ['field' => 'values'])
{{ __('Image') }}
{{ __('Stock') }}
{{ __('common.orignal_price') }}
{{--
Offer Price
--}}
@if ($loop_count_num >= 2)
Add
@else
Remove
@endif
{{-- @endforeach --}}
@if (!@empty($productoption)) @php $i = 0; @endphp @foreach ($productoption as $data)
@php $loop_count_num=1; @endphp {{-- @foreach ($productAttrArr as $key => $val) --}} {{-- @php $loop_count_prev=$loop_count_num; $pAArr=(array)$val; @endphp --}}
{{ __('common.select_option') }}
{{ $data->attributes }}
@foreach ($options['optionsitem'] as $key => $code)
attributes ?? '') === $code->id ? 'selected' : '' }}> {{ $code->attributes }}
@endforeach
{{ __('common.select_option_value') }}
{{ $data->values }}
@foreach ($options['optionstype'] as $key => $code)
values ?? '') === $code->attributes_id ? 'selected' : '' }}> {{ $code->values }}
@endforeach
{{ __('Image') }}
{{ __('Image') }}
{{ __('Stock') }}
@php $commission =$formRaw?->product_commission ?? 0; $x = (int)$data->price; $y = $x * $commission/100; $z =(int)$x + (int)$y; @endphp
{{ __('common.orignal_price') }}
Customer Cost: {{ $z ?? 0}} :Admin Fee: {{ $y ?? 0 }}
{{--
{{ __('common.orignal_price') }}
--}}
{{--
{{ __('common.product_offer_price') }}
--}}
{{-- @if ($loop_count_num == 2) --}} {{--
--}} {{-- Add
--}} {{-- @else --}}
Remove
{{-- @endif --}}
{{-- @endforeach --}}
@php $i++ @endphp @endforeach @endempty
@push('head.start') @include('includes.plugins', ['name' => 'quilleditor-css']) @endpush @push('body.end') {{-- --}} @include('includes.plugins', ['name' => 'quilleditor-js', 'field_name' => 'long_desc', 'library' => true]) @include('includes.plugins', ['name' => 'quilleditor-js', 'field_name' => 'long_desc_hi', 'library' => false]) @include('includes.plugins', ['name' => 'quilleditor-js', 'field_name' => 'long_desc_kan', 'library' => false]) @include('includes.plugins', ['name' => 'quilleditor-js', 'field_name' => 'long_desc_tam', 'library' => false]) @include('includes.plugins', ['name' => 'quilleditor-js', 'field_name' => 'long_desc_tel', 'library' => false]) @endpush