@extends('frontend.layouts.app') @if (isset($category_id)) @php $meta_title = get_single_category($category_id)->meta_title; $meta_description = get_single_category($category_id)->meta_description; @endphp @elseif (isset($brand_id)) @php $meta_title = get_single_brand($brand_id)->meta_title; $meta_description = get_single_brand($brand_id)->meta_description; @endphp @else @php $meta_title = get_setting('meta_title'); $meta_description = get_setting('meta_description'); @endphp @endif @section('meta_title'){{ $meta_title }}@stop @section('meta_description'){{ $meta_description }}@stop @section('meta') @endsection @section('content') {{ translate('Filters') }} {{ translate('Categories')}} @if (!isset($category_id)) @foreach (get_level_zero_categories() as $category) {{ $category->getTranslation('name') }} @endforeach @else {{ translate('All Categories')}} @if (get_single_category($category_id)->parent_id != 0) {{ get_single_category(get_single_category($category_id)->parent_id)->getTranslation('name') }} @endif {{get_single_category($category_id)->getTranslation('name') }} @foreach (\App\Utility\CategoryUtility::get_immediate_children_ids($category_id) as $key => $id) {{get_single_category($id)->getTranslation('name') }} @endforeach @endif {{ translate('Home')}} @if(!isset($category_id)) "{{ translate('All Categories')}}" @else {{ translate('All Categories')}} @endif @if(isset($category_id)) "{{ get_single_category($category_id)->getTranslation('name') }}" @endif @isset($category_id) @endisset {{ translate('Sort by')}} {{ translate('Newest')}} {{ translate('Oldest')}} {{ translate('Price low to high')}} {{ translate('Price high to low')}} {{ translate('Type')}} {{ translate('New')}} {{ translate('Used')}} {{ translate('Brands')}} @foreach (get_all_brands() as $brand) id) selected @endif @endisset>{{ $brand->getTranslation('name') }} @endforeach @foreach ($customer_products as $key => $product) @if($product->conditon == 'new') {{translate('New')}} @elseif($product->conditon == 'used') {{translate('Used')}} @endif {{ $product->getTranslation('name') }} {{ single_price($product->unit_price) }} @endforeach {{ $customer_products->links() }} @endsection @section('script') @endsection