@extends('layouts.front') @section('content')
@lang('Product categories')
{{-- --}}
@lang('Price Range')
@lang('Clear Filter')
@if ( (!empty($cat) && !empty(json_decode($cat->attributes, true))) || (!empty($subcat) && !empty(json_decode($subcat->attributes, true))) || (!empty($childcat) && !empty(json_decode($childcat->attributes, true)))) @if (!empty($cat) && !empty(json_decode($cat->attributes, true))) @foreach ($cat->attributes as $key => $attr)
{{ $attr->name }}
@if (!empty($attr->attribute_options))
    @foreach ($attr->attribute_options as $key => $option)
  • input_name]) && in_array($option->name, $_GET[$attr->input_name]) ? 'checked' : '' }} id="{{ $attr->input_name }}{{ $option->id }}" value="{{ $option->name }}">
  • @endforeach
@endif
@endforeach @endif @if (!empty($subcat) && !empty(json_decode($subcat->attributes, true))) @foreach ($subcat->attributes as $key => $attr)
{{ $attr->name }}
@if (!empty($attr->attribute_options))
    @foreach ($attr->attribute_options as $key => $option)
  • @endforeach
@endif
@endforeach @endif @if (!empty($childcat) && !empty(json_decode($childcat->attributes, true))) @foreach ($childcat->attributes as $key => $attr)
{{ $attr->name }}
@if (!empty($attr->attribute_options))
    @foreach ($attr->attribute_options as $key => $option)
  • @endforeach
@endif
@endforeach @endif @endif {{-- Clear Filter --}}
@php if (request()->input('view_check') == null || request()->input('view_check') == 'grid-view') { $view = 'grid-view'; } else { $view = 'list-view'; } @endphp
@lang('Total Products Found:') {{ $prods->count() }}
@lang('Sort by:')
@if ($prods->count() == 0)
@lang('No Product Found')
@else
@foreach ($prods as $product) @include('includes.frontend.list_view_product') @endforeach
@foreach ($prods as $product) @include('includes.frontend.home_product', [ 'class' => 'col-sm-6 col-md-6 col-xl-4', ]) @endforeach
{{ $prods->links('includes.frontend.pagination') }} @endif
@endsection @section('script') @endsection