@extends('frontend.layouts.amp') @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'; if($data['category']->is_canonical == 'Y') { if($data['category']->canonical_url != '') $url = $data['category']->canonical_url; else $url = URL::to( '/' . $data['category']->slug); } } 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']))
@php $iframe = str_replace("iframe","amp-iframe",$data['category']->description); $layout = str_replace("description !!} --}}
@endif
@if($data['products'])
Showing {{ $data['products']->firstItem() }} to {{ $data['products']->lastItem() }} of total {{ $data['products']->total() }} results
@endif
@if(isset($data['products'])) @foreach($data['products'] as $product) {{-- @php $path = 'up_data/products/images/thumbnails/' . $product->image; if ($product->image != '' && file_exists($path)) { } else { $path = 'up_data/na.jpg'; } @endphp @push('head-area') @endpush --}} {!! \App\Models\Product::productBlock($product, 'list-amp', true) !!} @endforeach @else

Sorry!, no products found.

@endif
@if($data['products'])
{!! $data['products']->appends( request()->except('page') )->links() !!}
@endif
{{-- @push('head-area') @endpush @push('after-scripts') @endpush --}} @endsection