@extends('front.layouts.front') @php $pagination = str_replace('/?', '?', $posts->links()); @endphp @section('content') {{-- Manual inclusion of components for Taxonomy Categories pages --}} @include('componentpagehero::front', ['sub' => (object) ['image' => (object) ['secure_url' => config('env.CLOUDINARY_STATIC_URL').'/white-bg.png'], 'mode' => 2]]) @include('componentbanner::front') @include('componentnavbar::front')
{{--

{{ $taxonomy->title }}

--}}
@include('componentheading::front', ['sub' => (object) ['content' => $taxonomy->title, 'tag' => 'h1', 'display' => 'h1', 'align' => 'text-center'], 'item' => (object) ['classes' => 'special-heading']])
{!! $taxonomy->description !!}
@foreach($stripped_posts as $stripped_post) {{-- @php $article_categories = $stripped_post->post->taxonomies->where('hierarchical', 0)->map(function($item) { return ['slug' => $item->slug, 'title' => $item->title]; }); $categories_map = $article_categories->map(function($item) { return $item['title']; }); @endphp --}} @if ($taxonomy->slug === 'testimonials')

{{ $stripped_post->post->title }}

{!! $stripped_post->post->description !!}
@elseif ($taxonomy->slug === 'news')
@if (!empty($stripped_post->post->gallery->images[0]->image))
{{ $stripped_post->post->gallery->images[0]->image->alt }}
@endif

{{ $stripped_post->post->title }}

{!! getPostExcerpt($stripped_post) !!}

Read More
@endif @endforeach @if ($pagination)
{!! $pagination !!}
@endif
@include("template::partials.front.main")
@endsection