@extends('frontend.layouts.app') @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'; $stock_info_main_product =$stock_info = \App\Models\Product::printStockInformation($data['product']); @endphp @section('title', $title) @section('meta_url', URL::Current()) @section('page_title', $title) @section('product_description',$data['product']->meta_description) @section('image',URL::to('/').'/up_data/products/images/large/'.$data['product']->image) @section('image:width', "300") @section('image:height', "200") @php $invalid_price = $data['product']->price_discounted == null || $data['product']->price_discounted == ''; @endphp @push('schema') @component('frontend.layouts.schema') { "@context": "https://schema.org/", "@type": "Product", "name": "{{ $data['product']->name }}", "image": "https://www.germedusa.com/up_data/products/images/large/{{ $data['product']->image }}", "description": "{{ $data['product']->short_description }} {!! strip_tags($data['product']->full_description) !!}", {{-- "keywords": "{{ $data['product']->meta_keywords }}", --}} "brand": { "@type": "Brand", "name": "GerMedUSA" }, "sku": "{{ $data['product']->sku }}", "offers": { @if($invalid_price && $data['product']->type != 'variation') "@type": "Offer", @else "@type": "AggregateOffer", @endif "url": "https://www.germedusa.com/{{ $data['product']->slug }}", "priceCurrency": "USD", @if($data['product']->type == 'variation') @php $subProductsCount = $data['product']->childProducts()->orderBy('position','asc')->orderBy('name','asc')->count(); @endphp "lowPrice": "{{ $data['product']->min }}", "highPrice": "{{ $data['product']->max }}", "offerCount": "{{ $subProductsCount }}" @else @if(!$invalid_price) "lowPrice": "{{ $data['product']->price_discounted }}", "highPrice": "{{ $data['product']->price_catalog }}" @else "price": "{{ $data['product']->price_catalog }}" @endif @endif , "availability": "https://schema.org/InStock", "itemCondition": "https://schema.org/NewCondition" } {{-- , "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.5", "bestRating": "5" } --}} } @endcomponent @endpush @if(trim($data['product']->meta_description) != null && $data['product']->meta_description != 'NULL') @section('meta_description', $data['product']->meta_description) @section('meta_keywords', $data['product']->meta_keywords) @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 @section('content')
@include('includes.partials.bread-crumbs')

{{ $data['product']->name }}

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

{{ $sub_product->name }}

@endforeach
SKU: {{ $data['product']->sku }}
{!! $stock_info['message'] !!} @if(trim($data['product']->short_description) != null && $data['product']->short_description != 'NULL')

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

@endif {!! \App\Models\Product::printSetProducts($data['product']) !!}
@foreach($data['sub_products'] as $sub_product) @php $stock_info = \App\Models\Product::printStockInformation($sub_product); @endphp
SKU: {{ $sub_product->sku }}
{!! $stock_info['message'] !!} @if(trim($sub_product->short_description) != null && $sub_product->short_description != 'NULL')

{!! nl2br(strip_tags($sub_product->short_description)) !!}

@endif {!! \App\Models\Product::printSetProducts($sub_product) !!}
@endforeach
@if(isset($data['banner']))
{!! $data['banner'] !!}
@endif
@csrf @if($data['product']->type == 'variation')

Please select the size you want to order

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

@foreach($data['sub_products'] as $sub_product)
@php $price_info = \App\Models\Product::getPriceText($sub_product, 'detail', $data['show_special_price']); echo $price_info['price_text']; @endphp
@endforeach
@else
@php $price_info = \App\Models\Product::getPriceText($data['product'], 'detail', $data['show_special_price']); echo $price_info['price_text']; @endphp
@endif {{--@if(request()->session()->get('ses_show_prices') != 'yes' && !$data['show_special_price']) @endif--}} @if($stock_info_main_product['in_stock'] == 'Y') {{--
--}}
@if($data['product']->status == 'Y' && $data['product']->in_stock == 'Y')
@else
Sorry,This product is not available at this time.
@endif
@endif
Categories: @foreach($data['product_categories'] as $cats) {{ $cats->name }} @if (!$loop->last) , @endif @endforeach
@if(trim($data['product']->full_description) != null) {!! $data['product']->full_description !!} @endif {!! \App\Models\Product::printAddtionalInformation($data['product']) !!}
@foreach($data['sub_products'] as $sub_product)
@if(trim($sub_product->full_description) != null) {!! $sub_product->full_description !!} @endif {!! \App\Models\Product::printAddtionalInformation($sub_product) !!}
@endforeach
{{-- @if(count($data['videos']) > 0) --}}
{{-- @foreach($data['videos'] as $video) @php $img_path = 'up_data/products/videos/thumbnails/'.$video->video_thumbnail; if($video->video_thumbnail == '' || !file_exists($img_path)) $img_path = 'up_data/na.jpg'; @endphp
{{ $video->title }}
@endforeach --}}
{{-- @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
@foreach($data['files'] as $file) @php $file_path = 'up_data/products/files/'.$file->name; if($file->name == '' || !file_exists($file_path)) { continue; } $ext = strrchr($file->name,'.'); @endphp @endforeach
@endif
@if(count($data['reviews']) > 0)
REVIEWS FOR {{ strtoupper($data['product']->name) }} ( {{ count($data['reviews']) }} )
@foreach($data['reviews'] as $review)
@php if(env('APP_ENV') == 'local'){ $basePath = '/storage'; }else{ $basePath = '/storage/app/public'; } @endphp
@if(auth()->user() && auth()->user()->avatar_location != null ) @else @endif
@for($i = 1 ; $i <= 5 ; $i++) @endfor

{{ $review->name }} - {{ date('M d, Y', strtotime($review->created_at)) }}

{{ $review->comments }}

@endforeach @endif {!! Form::open(array('route' => ['frontend.review.store'], 'method' => 'POST', 'id' => 'review_form')) !!} @csrf {!! Form::hidden('product_id', $data['product']->id) !!}

ADD A REVIEW

Thank you! we have received your review and if required we will respond within 48 hours.

Your Rating

       
{!! Form::close() !!}
@if(isset($data['related_products']) && count($data['related_products']) > 0)

Related Products

@foreach($data['related_products'] as $product) {!! \App\Models\Product::productBlock($product, 'home-new') !!} @endforeach
@endif @if(isset($data['recommended_products']) && count($data['recommended_products']) > 0)

You May Also Like

@foreach($data['recommended_products'] as $product) {!! \App\Models\Product::productBlock($product, 'home-new') !!} @endforeach
@endif
@push('after-scripts') @if($data['product']->type == 'variation' && $data['sid'] != '') @endif @endpush @push('head-area') @endpush @push('before-scripts') @endpush @endsection