@extends('frontend.layouts.app') @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'; $left_banner_id = null; if(isset($data['category']->left_banner_id) && $data['category']->left_banner_id > 0) { $left_banner_id = $data['category']->left_banner_id; } @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 $url = URL::current(); @endif @push('head-area') @endpush @if(isset($no_index)) @push('head-area') @endpush @endif @section('content')

{{ $data['category']->name }}

{!! $data['category']->description !!}
@foreach($data['categories'] as $category) {!! \App\Models\Category::categoryBlock($category) !!} @endforeach
{!! \App\Models\Banner::showBanner(9, 'promo-image overflow-image', $left_banner_id) !!}
@endsection