@extends('customer.app') @section('content')
Filters

{{__('general.filters')}}

@if(isset($data['filters']['categories']) && count($data['filters']['categories']) > 0) @endif @if(count($data['filters']['brands']))
@foreach($data['filters']['brands'] as $brand) @endforeach
@endif @foreach($data['filters']['filter_value_id'] as $filter_values)
@foreach($filter_values['values'] as $values) @endforeach
@endforeach @if(count($data['products']) > 2)
₺ –
@endif
@if(isset($data['meta_info']['description_top']) && $data['meta_info']['description_top'])
{!! $data['meta_info']['description_top'] !!}
@endif
@foreach($data['products'] as $product)
@if(checkDiscount($product))
{{checkDiscount($product)}}
@endif
@if(isset($rw)) @for($i = 0;$i<$rw->stars;$i++)
@endfor @for($i;$i<5;$i++)
@endfor @else @for($i=0;$i<5;$i++)
@endfor @endif
{{count($product->reviews)}} {{__('general.reviews')}}
@if($product->filters)
  • {{__('general.brand')}} : {{isset($product->brands->brand_name) ? $product->brands->brand_name : ''}}
  • @foreach($product->filters as $filter)
  • {{$filter->filter_name}}: {{$filter->value_name}}
  • @endforeach
@endif
{{__('general.status')}}: {{$product->stock > 0 ? __('general.in-stock') : __('general.out-stock')}}
@if(checkDiscount($product)) {{pricemio($product,checkDiscount($product))['discountedPrice']}} {{pricemio($product)['price']}} @else {{pricemio($product)['price']}} @endif
@if($product->stock > 0)
@else @endif
@endforeach
{{$data['products']->appends(request()->query())->render()}}
@endsection @section('js') @endsection