@extends('layouts.layout') @section('title', 'Shop Products') @section('content')
@csrf

Edit @if (!empty($product->product_name)) {{ $product->product_name }} @else Product @endif

About

type) && $product->type == 'simple') checked @endif name="product_type" value="simple" /> type) && $product->type == 'configurable') checked @endif name="product_type" value="configurable" />
show_on_home_page) && $product->show_on_home_page == '1') checked @endif name="product_show_on_home_page" value="1" /> show_on_home_page == '0') checked @endif name="product_show_on_home_page" value="0" />

Availability & Price

stock_statues) && $product->stock_statues == '1') checked @endif name="stock_status" value="1" /> stock_statues == '0') checked @endif name="stock_status" value="0" />
£
type) && $product->type == 'configurable') readonly @else value="{{ !empty($product->customer_price) ? number_format($product->customer_price, 2, '.', '') : null }}" name="customer_price" @endif >
£
type == 'configurable') readonly @else value="{{ $product->is_offer == '1' ? number_format($product->customer_offer_price, 2, '.', '') : '' }}" name="customer_offer_price" @endif >
£
type == 'configurable') readonly @else value="{{ !empty($product->trade_price) ? number_format($product->trade_price, 2, '.', '') : null }}" name="trade_price" @endif >
vat == '1') checked @endif name="vat_status" value="1" /> vat == '0') checked @endif name="vat_status" value="0" />

Personalisation

personalisation == '1') checked @endif onchange="displayadditionalprice('yes')" name="personalised_product" value="1"> personalisation == '0') checked @endif onchange="displayadditionalprice('no')" class="checkbox" name="personalised_product" value="0" />

SEO

@if ($product->type == 'configurable')

Configurable Product - Variants

{{-- --}}
@foreach ($product->ParentProduct as $pkey => $parent_product_item) @endforeach
Image SKU Code* Variant* Sort* Stock*
@if ( !empty( $parent_product_item['product']['productattributeDataSingle']['ProductDataAttributeConfigurableValues'][ 'main_attribute_id' ] )) @endif @foreach ($parent_product_item['product']['additionalChildImages'] as $additional_child_images_item) @endforeach
£
£
£
@if (!empty($datas))
@endif
{{--
--}}
@else @endif @php $attribute_collection = []; $attribute_a = ''; for ($i = 0; $i < count($product->productattributeData); $i++) { $attribute_a .= $product->productattributeData[$i]->attribute_value . ','; } $attribute_collection = explode(',', $attribute_a); //echo "
";print_r($attributeArrData);exit;

        @endphp

        

Attributes

Name

Details(Optional)

@if ($attribute) @foreach ($attribute as $key => $attributeItem) @if (!in_array($attributeItem->id, $attributeArrData))
@endif @endforeach @endif

Image

@if (!empty($product->additionalImages) && !empty($product->additionalImages[0]['id'])) @else @endif
@if (!empty($product->additionalImages) && !empty($product->additionalImages[0]['id']))
@else
@endif
@if ($product->additionalImages && count($product->additionalImages) > 0) @foreach ($product->additionalImages as $key => $additionalimg) @if ($additionalimg->image_type == 'additional' && empty($additionalimg->child_product_id))
Image
@endif @endforeach @endif

Upsell

@if (count($product->productUpsell) > 0) @foreach ($product->productUpsell as $keyup => $upsell)
@if (count($product->productUpsell) - 1 == $keyup) @else @endif
@endforeach @else
@endif
{!! JsValidator::formRequest('App\Http\Requests\ProductRequestUpdateRequest', '#add_product') !!} @endsection