@extends('layouts.vendor') @section('styles') @endsection @section('content')
{{ csrf_field() }} @include('includes.vendor.form-both')
1

{{ __('Mandatory Data') }}

@component('admin.components.input-localized', ['required' => true, 'from' => $data]) @slot('name') name @endslot @slot('placeholder') {{ __('Enter Product Name') }} @endslot @slot('value') name @endslot {{ __('Product Name') }}* @endcomponent

{{ __('Category') }}*

{{ __('Product Current Price') }}* ({{ __('In') }} {{ $sign->name }})

{{ __('Ref Code') }}*

{{ __('Product Sku') }}*

{{ __('Display in Stores') }}*

@foreach ($storesList as $store)
@endforeach
{{-- Attributes of category starts --}}
@if (!empty($catAttributes)) @foreach ($catAttributes as $catAttribute)

{{ __('Category attribute') }}

{{ $catAttribute->name }}

@foreach ($catAttribute->attribute_options as $catOption) @php $catOptChecked = is_array($selectedAttrs) && array_key_exists($catAttribute->input_name, $selectedAttrs) && is_array($selectedAttrs[$catAttribute->input_name]['values']) && in_array($catOption->id, $selectedAttrs[$catAttribute->input_name]['values']); $catOptPrice = !empty($selectedAttrs[$catAttribute->input_name]['prices'][$loop->index]) && $catOptChecked ? $selectedAttrs[$catAttribute->input_name]['prices'][$loop->index] : ''; @endphp
+
{{ $sign->sign }}
@endforeach
@endforeach @endif
{{-- Attributes of category ends --}} {{-- Attributes of subcategory starts --}}
@if (!empty($subAttributes)) @foreach ($subAttributes as $subcatAttribute)

{{ __('Subcategory attribute') }}

{{ $subcatAttribute->name }}

@foreach ($subcatAttribute->attribute_options as $subcatOption) @php $subcatOptChecked = is_array($selectedAttrs) && array_key_exists($subcatAttribute->input_name, $selectedAttrs) && is_array($selectedAttrs[$subcatAttribute->input_name]['values']) && in_array($subcatOption->id, $selectedAttrs[$subcatAttribute->input_name]['values']); $subcatOptPrice = !empty($selectedAttrs[$subcatAttribute->input_name]['prices'][$loop->index]) && $subcatOptChecked ? $selectedAttrs[$subcatAttribute->input_name]['prices'][$loop->index] : ''; @endphp
+
{{ $sign->sign }}
@endforeach
@endforeach @endif
{{-- Attributes of subcategory ends --}} {{-- Attributes of child category starts --}}
@if (!empty($childAttributes)) @foreach ($childAttributes as $childcatAttribute)

{{ __('Child category attribute') }}

{{ $childcatAttribute->name }}

@foreach ($childcatAttribute->attribute_options as $childcatOption) @php $childcatOptChecked = is_array($selectedAttrs) && array_key_exists($childcatAttribute->input_name, $selectedAttrs) && is_array($selectedAttrs[$childcatAttribute->input_name]['values']) && in_array($childcatOption->id, $selectedAttrs[$childcatAttribute->input_name]['values']); $childcatOptPrice = !empty($selectedAttrs[$childcatAttribute->input_name]['prices'][$loop->index]) && $childcatOptChecked ? $selectedAttrs[$childcatAttribute->input_name]['prices'][$loop->index] : ''; @endphp
+
{{ $sign->sign }}
@endforeach
@endforeach @endif
{{-- Attributes of child category ends --}}
2

{{ __('Important Data') }}

{{ __('Brand') }}

{{ __('Model Number') }}

{{ __('Sub Category') }}*

{{ __('Child Category') }}*

{{ __('Feature Image') }}

@if (strpos($data->photo, 'images/noimage.png') == false)
@endif
{{ __('Upload Image Here') }}

{{ __('Product Gallery Images') }}

{{ __('Set Gallery') }}
product_condition != 0 ? 'checked' : '' }}>

{{ __('Product Condition') }}*

@component('admin.components.input-localized', ['from' => $data, 'type' => 'richtext']) @slot('name') details @endslot @slot('value') details @endslot {{ __('Product Description') }} @endcomponent
@component('admin.components.input-localized', ['from' => $data, 'type' => 'richtext']) @slot('name') policy @endslot @slot('value') policy @endslot {{ __('Product Buy/Return Policy') }} @endcomponent
3

{{ __('Extra Data') }}

    ship != null ? 'checked' : '' }}>
@component('admin.components.input-localized', ['from' => $data]) @slot('name') ship @endslot @slot('placeholder') {{ __('Estimated Shipping Time') }} @endslot @slot('value') ship @endslot {{ __('Product Estimated Shipping Time') }} @endcomponent
  • size) ? 'checked' : '' }}>
@if (!empty($data->size)) @foreach ($data->size as $key => $data1)
@endforeach @else
@endif
{{ __('Add More Size') }}
  • color) ? '' : 'checked' }}>
@foreach ((array) $data->color as $key => $data1)
@endforeach
{{ __('Add More Color') }}
  • whole_sell_qty) ? 'checked' : '' }}>

{{ __('Maximum Quantity per Sale') }} (Un.)

{{ __('Product Weight') }} (Kg.)

{{ __('Product Width') }} (Cm.)

{{ __('Product Height') }} (Cm.)

{{ __('Product Length') }} (Cm.)

{{ __('Product Previous Price') }}* {{ __('(Optional)') }}

{{ __('Product Stock') }}* {{ __('(Leave Empty will Show Always Available)') }}

measure == null ? '' : 'checked' }}>

{{ __('Product Measurement') }}*

{{ __('Youtube Video URL') }}* {{ __('(Optional)') }}

meta_tag != null || strip_tags($data->meta_description) != null ? 'checked' : '' }}>
@component('admin.components.input-localized', ['from' => $data, 'type' => 'tags']) @slot('name') meta_tag @endslot @slot('value') meta_tag @endslot {{ __('Meta Tags') }} @endcomponent @component('admin.components.input-localized', ['from' => $data, 'type' => 'textarea']) @slot('name') meta_description @endslot @slot('placeholder') {{ __('Details') }} @endslot @slot('value') meta_description @endslot {{ __('Meta Description') }} @endcomponent
@endsection @section('scripts') @endsection