@extends('layouts.main') @section('title', $product['product_name']) @section('navbar') @include('layouts.navbar') @endsection @section('style') @endsection @section('content')
@if (isset($microsite_subdomain) && $microsite_subdomain != '') @if (isset($product['image_mapping']) && !empty($product['image_mapping'])) @foreach ($product['image_mapping'] as $i => $map_img)
@php $map_img['x'] = json_decode($map_img['x'], true); $map_img['y'] = json_decode($map_img['y'], true); $map_img['height'] = json_decode($map_img['height'], true); $map_img['width'] = json_decode($map_img['width'], true); $map_img['angle'] = json_decode($map_img['angle'], true); @endphp @foreach ($map_img['x'] as $j => $x)
@endforeach
@endforeach @else @include('components.product_image_view') @endif @else @include('components.product_image_view') @endif
@if (!empty($map_imgs) && $microsite_subdomain == '')
Upload Image {{--
@csrf
--}}
Note Image size: 1000X1000. Only .png, .pdf, and .jpg files are supported.
@if (isset($preview_product['cdr_pdf']) && $preview_product['cdr_pdf'] != '') @foreach ($preview_product['cdr_pdf'] as $item) @if ($item != '') @endif @endforeach @endif
@endif
@include('components.product_info')
@if (count($productBanners) > 0)
Product Details
@foreach ($productBanners as $v)
@if ($v['image_site'] == 'left')
Banner Image
{{ $v['title'] }}

{{ $v['description'] }}

@elseif ($v['image_site'] == 'right')
{{ $v['title'] }}

{{ $v['description'] }}

Banner Image
@endif
@endforeach
@endif @include('components.recommended_products') @include('components.review_list')
{{--
--}} @endsection @section('script') @endsection