@extends('frontend.layouts.amp') @php $title = trim($data['product']->meta_title); if($title == null || $title == 'NULL') $title = $data['product']->name . ' - ' . app_name(); if($data['product']->do_index == 'N' || $data['product']->status == 'N') $no_index = 'NOINDEX'; @endphp @section('title', $title) @if(trim($data['product']->meta_keywords) != null || trim($data['product']->competitor_skus) != null) @section('meta_keywords', $data['product']->meta_keywords . ', ' . $data['product']->competitor_skus) @endif @if(trim($data['product']->meta_description) != null) @section('meta_description', $data['product']->meta_description) @endif @if($data['product']->is_canonical == 'Y') @php if($data['product']->canonical_url != '') $url = $data['product']->canonical_url; else $url = URL::to( '/' . $data['product']->slug); @endphp @else @php $url = URL::current(); @endphp @endif @push('head-area') {{-- --}} @if(isset($no_index)) @endif @endpush @php $videos = []; if($data['product']->video_id > 0) { $videos[$data['product']->video_id] = $data['product']->video; } $has_youtube = $has_vimeo = false; @endphp @section('content')
@if(trim($data['product']->image) != '') @if($data['product']->type == 'variation') @if($data['images']->count() > 1 || $data['sub_products']->count() > 0) @foreach($data['images'] as $image) @if($image->name != '') @push('head-area') @endpush @endif @endforeach @endif @foreach($data['sub_products'] as $sub_product) @if($sub_product->image != '') @push('head-area') @endpush @endif @endforeach @if($data['images']->count() > 1 || $data['sub_products']->count() > 0) @foreach($data['images'] as $image) @if($image->name != '') {{-- @push('head-area') @endpush --}} @endif @endforeach @endif @foreach($data['sub_products'] as $sub_product) @if($sub_product->image != '') {{-- @push('head-area') @endpush --}} @endif @php if($sub_product->video_id > 0) { $videos[$sub_product->video_id] = $sub_product->video; } @endphp @endforeach {{-- --}} @else @push('head-area') @endpush @endif @else @endif {{-- --}}
type == 'variation') style="margin-top:80px;" @endif >

type == 'variation') [hidden]="sid != '0'" @endif>{{ $data['product']->name }}

@foreach($data['sub_products'] as $sub_product)

{{ $sub_product->name }}

@endforeach
type == 'variation') [hidden]="sid != '0'" @endif >
SKU: {{ $data['product']->sku }}
{{-- {!! \App\Models\Product::printStockInformation($data['product']) !!} --}} @php $stock_info = \App\Models\Product::printStockInformation($data['product']); @endphp {!! $stock_info['message'] !!} @if(trim($data['product']->short_description) != null)

{!! nl2br(strip_tags($data['product']->short_description)) !!}

@endif {!! \App\Models\Product::printAddtionalInformation($data['product']->additional_information) !!}
@foreach($data['sub_products'] as $sub_product) @endforeach
@csrf @if($data['product']->type != 'simple')

Please select the variation you want to order

@foreach($data['sub_products'] as $sub_product) @endforeach {{-- --}}

{{--clear--}} @foreach($data['sub_products'] as $sub_product) @endforeach
@else
@php $price_info = \App\Models\Product::getPriceText($data['product'], 'detail'); echo $price_info['price_text']; @endphp


@endif
type == 'variation') hidden [hidden]="sid == '0'" @endif>
{{----}}

Categories: @foreach($data['product']->categories as $cats) {{ $cats->name }} @if (!$loop->last) , @endif @endforeach

{{-- @if(trim($data['product']->tags) != null) @php $tags = explode(',', $data['product']->tags) @endphp

Tags: @foreach($tags as $tag) {{ $tag }} @if (!$loop->last) , @endif @endforeach

@endif --}}
{{-- --}}
@if($data['faqs'] != null)
FAQs about {{ $data['product']->name }}
@foreach($data['faqs'] as $faq)
{{ $faq->question }}

{{ $faq->answer }}

@endforeach
@endif

Product Review

@if(count($data['videos']) > 0 || count($videos) > 0) @endif @if(count($data['files']) > 0) @endif
type == 'variation') [hidden]="sid != '0'" @endif > @if(trim($data['product']->full_description) != null) {!! nl2br(strip_tags($data['product']->full_description)) !!} @endif
@foreach($data['sub_products'] as $sub_product) @endforeach
@if(count($data['videos']) > 0 || count($videos) > 0) @endif @if(count($data['files']) > 0) @php $fa_exts = ['.pdf' => 'fa-file-pdf', '.docx' => 'fa-file-word', '.doc' => 'fa-file-word', '.xlsx' => 'fa-file-excel', '.xls' => 'fa-file-excel']; @endphp @endif

@if(isset($data['related_products']) && count($data['related_products']) > 0)

RELATED PRODUCTS

@foreach($data['related_products'] as $product) @php $path = 'up_data/products/images/thumbnails/' . $product->image; if ($product->image != '' && file_exists($path)) { } else { $path = 'up_data/na.jpg'; } @endphp @push('head-area') @endpush {!! \App\Models\Product::productBlock($product, 'small-amp') !!} @endforeach
@endif @if(isset($data['recommended_products']) && count($data['recommended_products']) > 0)

YOU MAY ALSO LIKE

@foreach($data['recommended_products'] as $product) @php $path = 'up_data/products/images/thumbnails/' . $product->image; if ($product->image != '' && file_exists($path)) { } else { $path = 'up_data/na.jpg'; } @endphp @push('head-area') @endpush {!! \App\Models\Product::productBlock($product, 'small-amp') !!} @endforeach
@endif
@push('head-area') @if($has_youtube) @endif @if($has_vimeo) @endif @endpush @push('amp-custom') .lightbox { background: rgba(0,0,0,0.8);width: 100%;height: 100%;position: absolute;display: flex;align-items: center;justify-content: center; } .lightbox h2 { color: white; } @endpush @endsection