File: D:/HostingSpaces/SBogers10/douven.komma.pro/resources/views/shop/pages/subcategories/show.blade.php
@extends('site.master')
@section('title', $category->translation->meta_title)
@section('meta_description', $category->translation->meta_description)
@section('content')
<section class="content">
<div class="grid-row breadcrumb">
<div class="grid-col">
<a href="/aanbod">Aanbod</a>
<span>›</span>
<a href="/aanbod/{{$parent->translations[0]->slug}}">{{$parent->translation->name}}</a>
<span>›</span> <b>{{$category->translation->name}}</b>
</div>
</div>
<div class="grid-row subcategory-header">
<div class="grid-col">
<div class="grid-row subcategory-header-content">
<div class="grid-col titleHolder">
<span class="{{$parent->code_name}}"></span>
<h1>{{$category->translation->name}}</h1>
</div>
<div class="grid-col left">
<ul>
@if(!empty($parent->translation))
<li class="back">
<a class="button stroked yellow left-arrow"
href="/aanbod/{{$parent->translation->slug}}">Terug
naar {{$parent->translation->name}}</a>
</li>
@endif
@foreach($subcategorySiblings as $key=>$subcategorySibling)
<li @if($category->code_name == $subcategorySibling->code_name) class="active" @endif>
<a href="/aanbod/{{$parent->translation->slug}}/{{$subcategorySibling->translation->slug}}">
<h4>{{$subcategorySibling->translation->name}}</h4>
</a>
</li>
@endforeach
</ul>
</div>
<div class="grid-col right">
<p>{!! $category->translation->description !!}</p>
<a class="button stroked yellow arrow pull-right" href="/contact">Vragen?
neem contact op</a>
</div>
</div>
</div>
</div>
<div class="grid-row subcategory-products">
<div class="grid-col">
<div class="grid-row subcategory-products-content">
@if(count($categoryItems) == 0)
<div class="grid-col">
Er zijn (nog) geen producten in deze categorie
</div>
@else
@foreach($categoryItems as $key=>$categoryItem)
<div class="grid-col product">
<a href="/producten/{{ $categoryItem->item->translation->slug }}">
<div class="imgHolder" style="
@if(count($categoryItem->item->images) > 0)
background-image: url('{{$categoryItem->item->images[0]->medium_image_url}}');
@endif
">
<span class="yellow-block-overlay"></span>
</div>
<div class="grid-row titleHolder">
@if(!empty($categoryItem->item->min_temp) && !empty($categoryItem->item->max_temp))
<div class="grid-col temp-icon-holder {{intval($categoryItem->item->min_temp) < 0 ? 'freeze' : 'cool' }}"
title="{{intval($categoryItem->item->min_temp) < 0 ? 'Vriezen' : 'Koelen' }}">
<span class="min-temp">{{$categoryItem->item->min_temp}}°</span>
<span class="temp-icon"> </span>
<span class="max-temp">{{$categoryItem->item->max_temp}}°</span>
</div>
@endif
<div class="grid-col product-title">
<h4>{{ $categoryItem->item->translation->title }}</h4>
{!! $categoryItem->item->translation['short_description'] !!}
</div>
</div>
</a>
</div>
@endforeach
@endif
</div>
</div>
</div>
{{$categoryItems->links('shop.pages.subcategories.pagination7')}}
{{--{{$categoryItems->links('shop.pages.subcategories.pagination')}}--}}
</section>
@endsection