@extends('frontend.layouts.amp')
@php
$title = trim($data['category']->meta_title);
if($title != null && $title != 'NULL')
$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';
@endphp
@section('title', $title)
@if(trim($data['category']->meta_keywords) != null)
@section('meta_keywords', $data['category']->meta_keywords)
@endif
@if(trim($data['category']->meta_description) != null)
@section('meta_description', $data['category']->meta_description)
@endif
@if($data['category']->is_canonical == 'Y')
@php
if($data['category']->canonical_url != '')
$url = $data['category']->canonical_url;
else
$url = URL::to( '/' . $data['category']->slug);
@endphp
@else
@php
$url = URL::current();
@endphp
@endif
@push('head-area')
{{----}}
@if(isset($no_index))
@endif
@endpush
@section('content')
@endsection