@extends('front.tendra.master') @section('body') {{-- HERO SECTION --}}
@if(config('app.top_cover'))
@endif
{{ __('Story Categories') }}

{{ __('Browse our collection of audio stories by category') }}

{{-- NAVIGATION --}}
{{-- ERROR MESSAGE --}} @if(session('error') || isset($error))
{{ session('error') ?? $error ?? __('An error occurred') }}
@endif {{-- CATEGORIES GRID --}}
@if($categories && $categories->count() > 0)
@foreach($categories as $category) @if($category && isset($category->name) && isset($category->slug))

{{ $category->name ?? __('Unnamed Category') }}

{{ $category->description ?? $category->safe_description ?? __('No description available for this category.') }}

{{ isset($category->stories_count) ? trans_choice(':count story|:count stories', $category->stories_count, ['count' => $category->stories_count]) : __('Stories available') }} {{ __('View Stories') }}
@endif @endforeach
@else
📚

{{ __('No Categories Available') }}

{{ __('There are currently no story categories available. Please check back later or contact us if you believe this is an error.') }}

{{ __('View All Stories') }}
@endif
@endsection