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

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

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

{{ __("Category") }}*

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

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

{{ __("Select Upload Type") }}*

{{ __("Select File") }}*

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

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

@if($data->user_id > 0) {{-- Vedndor Cross selling products --}}

Cross Selling Products*

(Added by Vendor)

{{-- Vedndor Cross selling products --}} @endif {{-- Admin Cross selling products --}}

Cross Selling Products*

(Added by Admin)

{{-- Admin Cross selling products --}}

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

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

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

{{ __("(Optional)") }}

{{ __("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') @php $vcsprods = $data->cross_selling_products()->where('type', 'vendor')->get(); $vselectedCsprods = []; foreach ($vcsprods as $key => $vcsprod) { $vselectedCsprods[] = $vcsprod->cross_selling_product_id; } $json = json_encode($vselectedCsprods); // dd($json); @endphp @php $acsprods = $data->cross_selling_products()->where('type', 'admin')->get(); $aselectedCsprods = []; foreach ($acsprods as $key => $acsprod) { $aselectedCsprods[] = $acsprod->cross_selling_product_id; } $json = json_encode($aselectedCsprods); // dd($json); @endphp @endsection