@extends('frontend.layouts.master') @section('title', ($page?->title ?: ___('frontend.blog_page_title')) . ' - ' . (settings('name') ?: 'Travelio')) @section('meta', $page?->meta_description ?: ___('frontend.blog_meta_description')) @section('page', 'blog') @section('content') @include('frontend.components.page-hero', [ 'title' => $page?->title ?: ___('frontend.blog_page_title'), 'subtitle' => $page?->hero_subtitle ?: ___('frontend.blog_hero_subtitle'), 'crumbs' => [($page?->breadcrumb_label ?: ___('frontend.blog_crumb')) => null], ])
@if(request('category'))@endif
@if($categories->count())
{{ $page?->all_label ?: ___('frontend.all') }} @foreach($categories as $cat) {{ $cat }} @endforeach
@endif
@forelse($posts as $post) @php $cover = media_url($post->image, placeholder_image('card')); @endphp
@empty

{{ request('q') || request('category') ? ($page?->filtered_empty_text ?: ___('frontend.no_articles_matched')) : ($page?->empty_text ?: ___('frontend.no_articles_published')) }}

@endforelse
@if($posts->hasPages())
{{ $posts->links() }}
@endif
@endsection