@extends('layouts.admin') @section('styles') @endsection @section('content')
{{ csrf_field() }} @include('alerts.admin.form-both')

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

{{ __('(In Any Language)') }}

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

{{ __('Category') }}*

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

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

@php $selectedAttrs = json_decode($data->attributes, true); @endphp {{-- Attributes of category starts --}}
@php $catAttributes = !empty($data->category->attributes) ? $data->category->attributes : ''; @endphp @if (!empty($catAttributes)) @foreach ($catAttributes as $catAttribute)

{{ $catAttribute->name }} *

@php $i = 0; @endphp @foreach ($catAttribute->attribute_options as $optionKey => $option) @php $inName = $catAttribute->input_name; $checked = 0; @endphp
input_name, $selectedAttrs)) @if (is_array($selectedAttrs["$inName"]['values']) && in_array($option->name, $selectedAttrs["$inName"]['values'])) checked @php $checked = 1; @endphp @endif @endif >
+
{{ $sign->sign }} value, 2) : '' }}">
@php if ($checked == 1) { $i++; } @endphp @endforeach
@endforeach @endif
{{-- Attributes of category ends --}} {{-- Attributes of subcategory starts --}}
@php $subAttributes = !empty($data->subcategory->attributes) ? $data->subcategory->attributes : ''; @endphp @if (!empty($subAttributes)) @foreach ($subAttributes as $subAttribute)

{{ $subAttribute->name }} *

@php $i = 0; @endphp @foreach ($subAttribute->attribute_options as $option) @php $inName = $subAttribute->input_name; $checked = 0; @endphp
input_name, $selectedAttrs)) @php $inName = $subAttribute->input_name; @endphp @if (is_array($selectedAttrs["$inName"]['values']) && in_array($option->name, $selectedAttrs["$inName"]['values'])) checked @php $checked = 1; @endphp @endif @endif >
+
{{ $sign->sign }} value, 2) : '' }}">
@php if ($checked == 1) { $i++; } @endphp @endforeach
@endforeach @endif
{{-- Attributes of subcategory ends --}} {{-- Attributes of child category starts --}}
@php $childAttributes = !empty($data->childcategory->attributes) ? $data->childcategory->attributes : ''; @endphp @if (!empty($childAttributes)) @foreach ($childAttributes as $childAttribute)

{{ $childAttribute->name }} *

@php $i = 0; @endphp @foreach ($childAttribute->attribute_options as $optionKey => $option) @php $inName = $childAttribute->input_name; $checked = 0; @endphp
input_name, $selectedAttrs)) @php $inName = $childAttribute->input_name; @endphp @if (is_array($selectedAttrs["$inName"]['values']) && in_array($option->name, $selectedAttrs["$inName"]['values'])) checked @php $checked = 1; @endphp @endif @endif >
+
{{ $sign->sign }} value, 2) : '' }}">
@php if ($checked == 1) { $i++; } @endphp @endforeach
@endforeach @endif
{{-- Attributes of child category ends --}}
measure == null ? '' : 'checked' }}>
  • product_condition != 0 ? 'checked' : '' }}>

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

  • preordered != 0 ? 'checked' : '' }}>

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

  • minimum_qty != null ? 'checked' : '' }}>

{{ __('Product Minimum Order Qty') }}*

  • ship != null ? 'checked' : '' }}>

{{ __('Product Estimated Shipping Time') }}*

  • color_all) ? 'checked' : '' }}>
@php @endphp
@if (is_array($data->color_all)) @foreach ($data->color_all as $key => $color)
@endforeach @endif
{{ __('Add More Color') }}

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

{{--
--}}
  • size) ? 'checked' : '' }}>

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

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

@php if(is_array($data->size)){ $sizes = $data->size; }else{ $sizes = array_filter(explode(',', $data->size)); } @endphp
@foreach ($sizes as $key => $size)
@endforeach
{{ __('Add More') }}
  • whole_sell_qty) ? 'checked' : '' }}>

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

{{ __('Product Buy/Return Policy') }}*

meta_tag != null || strip_tags($data->meta_description) != null ? 'checked' : '' }}>

{{ __('Meta Tags') }} *

    @if (!empty($data->meta_tag)) @foreach ($data->meta_tag as $element)
  • {{ $element }}
  • @endforeach @endif

{{ __('Meta Description') }} *

{{ __('Feature Image') }} *

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

{{ __('Product Current Price') }}*

({{ __('In') }} {{ $sign->name }})

{{ __('Product Discount Price') }}*

{{ __('(Optional)') }}

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

{{ __('(Optional)') }}

{{ __('Tags') }} *

    @if (!empty($data->tags)) @foreach ($data->tags as $element)
  • {{ $element }}
  • @endforeach @endif
@endsection @section('scripts') @include('partials.admin.product.product-scripts') @endsection