@extends('frontend.layouts.app') @php if(isset($data['category'])) { if(isset($data['category']->meta_title)) $title = $data['category']->meta_title; else $title = $data['category']->name . ' - ' . app_name(); if($data['category']->do_index == 'N' || $data['category']->status == 'N') $no_index = 'NOINDEX'; } else { $title = ''; } @endphp @if(isset($no_index)) @push('head-area') @endpush @endif @if($data['listing_type'] == 'products_search') @section('title', 'Search Results for '.request()->input('s')) @elseif(isset($data['category'])) @php if(isset($data['category']->meta_title)) $title = $data['category']->meta_title; else $title = $data['category']->name . ' - ' . app_name(); @endphp @section('title', $title) @if(isset($data['category']->meta_keywords) && trim($data['category']->meta_keywords) != null) @section('meta_keywords', $data['category']->meta_keywords) @endif @if(isset($data['category']->meta_description) && trim($data['category']->meta_description) != null) @section('meta_description', $data['category']->meta_description) @endif @endif @if((isset($data['category']) && $data['category']->is_canonical == 'Y')) @php if($data['category']->canonical_url != '') $url = $data['category']->canonical_url; else $url = URL::to( '/' . $data['category']->slug); @endphp @push('head-area') @endpush @endif @section('content')

@if($data['listing_type'] == 'products_search') Search Results for "{{ request()->input('s') }}" @elseif(isset($data['category'])) {{ $data['category']->name }} @endif

@if(isset($data['category']))
{!! $data['category']->description !!}
@endif
{!! Form::open(array('route' => 'frontend.set-listing-limit', 'method' => 'POST')) !!} {!! Form::select('listing_limit', ['15' => '15', '30' => '30', '45' => '45', '60' => '60', '999' => 'All'] ,$data['listing_limit'] ,['class'=>'listing-limit', 'onchange' => 'this.form.submit();']) !!} {!! Form::close() !!}

Showing {{ $data['products']->firstItem() }} to {{ $data['products']->lastItem() }} of total {{ $data['products']->total() }} results

@if(isset($data['products'])) @foreach($data['products'] as $product) {!! \App\Models\Product::productBlock($product, 'product-list', true) !!} @endforeach @else

Sorry!, no products found.

@endif
@if($data['products'])
@endif
@push('after-scripts') @endpush @endsection