@endif
@if( $make_slug )
@include('webshop.breadcrumb', [$make_slug, $make, $model_slug, $models, $category, $category_slug, $sub_category_slug, $sub_category, $part_slug, $part])
@if( $model_slug )
@if( !$category_slug )
@foreach ( $categories as $item )
@php
$count = $item->real_parts()->whereIn('car_model_id', $models->pluck('id') )->where('state', 'Eladható')->where('price', '>', 0)->count();
@endphp
@if( $count )
@endif
@endforeach
@else
@if( !$sub_category_slug )
@foreach ( $sub_categories as $item )
@php
$count = $item->real_parts()->whereIn('car_model_id', $models->pluck('id') )->where('state', 'Eladható')->where('price', '>', 0)->count();
@endphp
@if( $count )
@endif
@endforeach
@else
@if( !$part_slug )
@foreach ( $parts as $item )
@php
$count = $item->products()->whereIn('car_model_id', $models->pluck('id') )->where('state', 'Eladható')->where('price', '>', 0)->count();
@endphp
@if ( $count )
@endif
@endforeach
@else
{{ $make->name }} {{ $models->first()->short_name }} {{ $part->name}}
{{ $products->count()}} Találat
@foreach ( $products as $product )
@include('webshop.list_card', ['product' => $product, 'url' => [$make_slug, $model_slug, $category_slug, $sub_category_slug, $part_slug]])
@endforeach
@endif
@endif
@endif