@extends('front.'.config('app.template', 'tendra').'.master') @section('body') {{-- HERO SECTION --}}
@if(config('app.top_cover'))
@endif
{{ __('Audio Stories') }}
{{-- ERROR MESSAGE --}} @if(session('error') || isset($error))
{{ session('error') ?? $error ?? __('An error occurred') }}
@endif {{-- FILTERS --}}
{{-- Categories --}} @if($categories && $categories->count() > 0)
@foreach($categories as $category) @if($category && isset($category->slug) && isset($category->name)) {{ $category->name }} @endif @endforeach
@endif
{{-- STORIES GRID --}}
@if($stories && $stories->count() > 0)
@foreach($stories as $story) @if($story && isset($story->title) && isset($story->slug))
@if(isset($story->cover_image) && $story->cover_image) {{ $story->title }} @else
🎧
@endif @if(isset($story->is_free) && $story->is_free) {{ __('Free') }} @elseif(isset($story->price)) {{ config('payments.currency_symbol', '$') }}{{ $story->price ?? '0.00' }} @endif @if(isset($story->duration) && $story->duration) {{ $story->duration }} @endif

{{ $story->title ?? __('Untitled Story') }}

{{ isset($story->description) ? Str::limit($story->description, 120) : __('No description available') }}

{{ (isset($story->category) && $story->category && isset($story->category->name)) ? $story->category->name : __('Uncategorized') }} {{ __('Listen') }}
@endif @endforeach
{{-- Pagination --}} @if($stories && $stories->hasPages())
{{ $stories->appends(request()->input())->links() }}
@endif @else
🎧

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

{{ __('Try adjusting your search or browse all stories') }}

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