@extends('frontend.layouts.mobile') @php $banner = null; 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'; if(isset($data['category']->is_canonical) && $data['category']->is_canonical == 'Y') { if($data['category']->canonical_url != '') $url = $data['category']->canonical_url; else $url = URL::to( '/' . $data['category']->slug); } if(isset($data['category']->banner_id) && $data['category']->banner_id > 0) { $banner = \App\Models\Banner::getBanner($data['category']->banner_id); } } else { $title = ''; } if(!isset($url)) { $url = URL::current(); } @endphp @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 @push('head-area') @if(isset($no_index)) @endif @endpush @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 @if($data['products'])
Showing {{ $data['products']->firstItem() }} to {{ $data['products']->lastItem() }} of total {{ $data['products']->total() }} results
@endif
@foreach($data['products'] as $product) @php $path = 'up_data/products/images/thumbnails/' . $product->image; @endphp @push('head-area') @endpush {!! \App\Models\Product::productBlock($product, 'mobile') !!} @endforeach
@if($data['products'])
{!! $data['products']->appends( request()->except('page') )->links() !!}
@endif
@endsection