@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'; $video_tag = ''; if(trim($data['category']->video_link) != null) { if($data['category']->video_site == 'YouTube') { $video_tag = '
'; } else { $video_tag = '
'; } } @endphp @section('title', $title) @if(trim($data['category']->meta_description) != null && $data['category']->meta_description != 'NULL') @section('meta_description', $data['category']->meta_description) @section('meta_keywords', $data['category']->meta_keywords) @section('meta_url', URL::Current()) @section('page_title', $title) @section('product_description',$data['category']->meta_description) @section('image',URL::to('/').'/up_data/categories/large/'.$data['category']->image) @section('image:width', "300") @section('image:height', "200") @endif @push('schema') @component('frontend.layouts.schema') {{-- --}} { "@context": "https://schema.org/", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.germedusa.com/" } @if(count($data['category']->subcategories) > 0),@endif @php $counter = 2; @endphp @foreach ($data['schema_breadcrumbs'] as $key => $schema_breadcrumbs) { "@type": "ListItem", "position": {{ $counter }}, "name": "{{ @$schema_breadcrumbs[0]['name'] }}", "item": "{{ @$schema_breadcrumbs[0]['url'] }}" } @if($key < count($data['schema_breadcrumbs']) -1) , @endif @php $counter++; @endphp @endforeach ] } @endcomponent @endpush @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 @push('head-area') @endpush @endif @if(isset($no_index)) @push('head-area') @endpush @endif @section('content')
@include('includes.partials.bread-crumbs')
{{--

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

--}}
{!! $data['category']->short_description ? $data['category']->short_description : $data['category']->description !!}
{!! $video_tag !!}
@foreach($data['categories'] as $category) {!! \App\Models\Category::categoryBlockFlex($category) !!} @endforeach
@if(isset($data['category']) && $data['category']->short_description !== null) @if (strlen($data['category']->description) > 1200)
{!! implode(' ', array_slice(explode(' ', $data['category']->description), 0, 170)) !!}
@else
{!! $data['category']->description !!}
@endif @endif
@push('before-scripts') @endpush @push('after-scripts') @endpush @endsection