@extends('admin.master') @section('title', __('Stories')) @section('content')
@if(session('user_message'))
{{ session('user_message') }}
@endif
@if(isset($stories) && $stories && $stories->count() > 0) @foreach($stories as $story) @if($story && isset($story->id)) @endif @endforeach @else @endif {{ config('payments.currency_symbol') }}{{ $story->price }} @endif @endforeach
{{ __('Title') }} {{ __('Cover') }} {{ __('Category') }} {{ __('Price') }} {{ __('Duration') }} {{ __('Active') }} {{ __('Created at') }} {{ __('Actions') }}
{{ isset($story->title) ? Str::limit($story->title, 50) : __('Untitled Story') }} @if(isset($story->cover_image) && $story->cover_image) @else @endif {{ $story->category_name ?? __('Uncategorized') }} @if(isset($story->is_free) && $story->is_free) {{ __('Free') }} @else {{ config('payments.currency_symbol', '$') }}{{ $story->price ?? '0.00' }} @endif {{ $story->duration ?? __('N/A') }}
active) && $story->active) checked @endif @change="updateActiveStatus('{{ $story->id }}')">
{{ isset($story->created_at) ? $story->created_at->format('Y-m-d H:i') : __('N/A') }}
{{ __('No stories found') }}
{{ $story->duration ?? '-' }}
active) checked @endif @change="updateActiveStatus('{{ $story->id }}')">
{{ $story->created_at->format('Y-m-d H:i') }}
@if($stories->hasPages())
{{ $stories->appends(request()->input())->onEachSide(1)->links() }} @endif
@endsection