@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')
{{-- @push('head-area')
@endpush
@push('after-scripts')
@endpush --}}
@endsection