{{-- Flash Messages --}} @if (session()->has('message')) @endif {{-- Add More Button --}}
@if(!$formMode && !$viewMode) @endif
{{-- Form Section (toggle with Add More) --}} @if($formMode)
{{ $updateMode ? 'Edit News' : 'Add News' }}
@include('livewire.admin.partials.crypto-news-form')
@endif {{-- View Section --}} @if($viewMode && $cryptoToView)
Crypto News Details
@include('livewire.admin.partials.crypto-news-view')
@endif {{-- Table Section --}}
All News
{{-- Filters --}}
{{-- Table --}}
@forelse ($cryptos as $index => $crypto) @empty @endforelse
SR No. Image Title Author Uploaded At Published At News Type SEO Check Actions
{{ $cryptos->firstItem() + $index }} @if($crypto->image) {{ $crypto->img_alt_title }} @else No Image @endif
{{ $crypto->title }}
{{ $crypto->author_name ?? 'N/A' }} {{ $crypto->created_at ? $crypto->created_at->format('d M Y h:i A') : 'N/A' }} {{ $crypto->publishedAt ? date('d M Y h:i A', $crypto->publishedAt) : 'N/A' }} @switch($crypto->is_gabbar) @case(1) News @break @case(2) Press Release @break @case(3) Sponsored @break @case(4) Guest News @break @case(5) Blog @break @case(6) Crypto News @break @default Draft @endswitch @if($crypto->is_seo_check) Yes @else No @endif

No records found

{{-- Pagination --}}
{{ $cryptos->links() }}