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

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

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

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

product_condition != 0 ? "checked":"" }}>

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

{{ __('Category') }}*

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

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

@php $selectedAttrs = json_decode($data->attributes, true); // dd($selectedAttrs); @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 }}
@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 }}
@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 }}
@php if ($checked == 1) { $i++; } @endphp @endforeach
@endforeach @endif
{{-- Attributes of child category ends --}}

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


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

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

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

ship }}">
  • size) ? "checked":"" }}>
@if(!empty($data->size)) @foreach($data->size as $key => $data1)
@endforeach @else
@endif
{{ __('Add More Size') }}
  • color) ? "checked":"" }}>
@if(!empty($data->color))

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

{{ __('(Choose Your Favorite Colors)') }}

@foreach($data->color as $key => $data1)
@endforeach
{{ __('Add More Color') }}
@else

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

{{ __('(Choose Your Favorite Colors)') }}

@endif
  • whole_sell_qty) ? "checked":"" }}>

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

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

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

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

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

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

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

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

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

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

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

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

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') }} *

{{ __('Tags') }} *

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