@extends('front.'.config('app.template', '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)
📚

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

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

{{ ($category->stories_count ?? 0) }} {{ __('Stories') }}
@endforeach
@else
📚

{{ __('No categories found') }}

{{ __('Story categories are not available at the moment') }}

{{ __('Browse All Stories') }}
@endif
{{-- HELPFUL LINKS --}}
@endsection