File: D:/HostingSpaces/SBogers10/topswtwmobile.komma.pro/app/views/pages/productDetail.blade.php
@extends('layouts.master')
@section('background')
<div class="bg-50"></div>
@stop
@section('sidebar')
@include('partials.sidebar')
@stop
@section('brandNavigationBar')
@include('partials.brandNavigationBar')
@stop
@section('content')
@include('google/product-snipped')
<div class="content-container column fluid-100">
{{--Breadcrumb--}}
@include('partials.breadcrumb')
{{--Title--}}
<h1 class="page-title">
{{ (strtolower($product->brand_name) != 'toebehoren'?$product->brand_name.' ': '') }}
{{ $product->name }}
@if( ! empty($product->product_group) || ! empty($product->filter_class))
-
@endif
@if($product->product_group !== null)
@if($product->pollen_filter && Lang::has('pages/products.pollen_' . $product->product_group))
{{ Lang::get('pages/products.pollen_' . $product->product_group) }}
@elseif(Lang::has('pages/products.' . $product->product_group))
{{ Lang::get('pages/products.' . $product->product_group) }}
@else
{{$product->product_group}}
@endif
@endif
{{ $product->filter_class }}
</h1>
{{--Filter bar--}}
<div class="top-bar content-block column fluid-100">
<div class="product-filter column fluid-66">
<a href="{{$shop->getPageService()->getBackRoute('/'.$brand->route)}}"
class="back-btn">{{ Lang::get('pages/products.back_to_overview') }}</a>
</div>
<div class="payment-options column fluid-33">
<div class="payment-method-bar {{ $shop->getShop()->slug}}"></div>
</div>
</div>
{{--Article--}}
<article class="product-detail product-block content-block column fluid-100">
<div class="product-detail-top">
{{--Pictures--}}
<figure class="komma-image-changer image-holder product-detail-image column fluid-50">
@if( $product->images && is_file($_SERVER['DOCUMENT_ROOT'] . $product->images[0]->medium_image_url ))
<img src="{{ $product->images[0]->medium_image_url }}"
alt="{{ $product->brand_name }} {{ $product->name }}" class="main-image fit"/>
@else
<img src="/images/structure/noImageLarge.jpg" alt="No image found" class="main-image fit"/>
@endif
@if( count($product->images) > 1 )
<div class="clear"></div>
<ul class="thumbs">
@foreach($product->images as $image)
<li>
<a href="{{ $image->medium_image_url }}">
<img src="{{ $image->thumb_image_url }}"
alt="{{ $product->brand_name }} {{ $product->name }}"/>
</a>
</li>
@endforeach
</ul>
@endif
</figure>
<div class="product-information column fluid-50 last" ng-controller="productOverviewItemController">
<div class="inner-padding">
{{--The Json of the product Discounts--}}
<script type="application/json" json-data ng-model="discountData">
{{ $product->discounts }}
</script>
<h2 class="product-title">
@include('partials.products.title')
</h2>
</div>
{{--Special in warning box--}}
@if($product->special_2)
@include('partials.products.warning')
@endif
<div class="inner-padding">
<div class="price-and-stock-holder">
{{--Price--}}
@include('partials.products.pricesBlock')
{{--In Stock--}}
<span class="in-stock">{{ Lang::get('pages/products.shippable_from_stock')}}</span>
</div>
{{--Order Form--}}
<form class="row order-row"
action="/{{ $shop->getPageService()->page('cart')->route }}/addProductById/{{ $product->id }}"
method="get">
<div class="quantity-holder">
<input type="tel" name="quantity" ng-value="1" ng-model="quantity"/>
<div class="quantity-btns">
<div class="quantity-btn add" ng-click="addToQuantity(1)"></div>
<div class="quantity-btn remove" ng-click="addToQuantity(-1)"></div>
</div>
</div>
<div class="btn-holder">
@include('partials.buttons.input',[
'input' => Form::submit(''),
'text' => Lang::get('pages/products.add_to_cart'),
'class' => 'green-btn'
])
</div>
</form>
</div>
@include('partials/products/discountBar')
<div class="usp-container">
@include('partials/products/benefits')
</div>
</div>
<div class="clear"></div>
</div>
<div class="column fluid-50 specs-holder">
<h3>{{ Lang::get('pages/products.description') }}</h3>
<p>
@if($product->article_number and $product->article_number != '-')
{{ Lang::get('pages/products.article_number') }} {{ $product->supplier_name }}:
{{ $product->article_number }}<br/>
@endif
{{ Lang::get('pages/products.article_number') }} TOPS: {{ $product->internal_article_number }}
</p>
<p>
{{ $product->description }}
</p>
</div>
<div class="column fluid-50 last specs-holder">
@if(is_array($product->composition) && count($product->composition))
<h3>{{ Lang::get('pages/products.you_will_receive') }}</h3>
@include('partials.composition',['composition' => $product->composition])
@endif
</div>
</article>
</div>
@stop
@section('askHelpPopUp')
@include('partials.askHelpPopUp')
@stop