@php use App\Enums\StatusEnum; use App\Helpers\BengaliDateHelper; @endphp @extends('layout.admin') @section('content')

Content All Content

Content Info Table

Reset
Uneditable Content List
{{--
--}}
@if (count($bnContents) > 0) @foreach ($bnContents as $key => $bnContent) @endforeach
# Category Content Heading Word Count Total Hit Status Action
{{ $key + 1 }} Category: {{ $bnContent->category->name }}
@if(!empty($bnContent->secondary_categories)) Secondary Categories: @foreach($bnContent->secondary_categories as $sec) {{ $sec['name'] }}@if(!$loop->last), @endif @endforeach
@endif Sub Category: {{ optional($bnContent->subCategory)->name ?? 'N/A' }}
Writer ID: {{ $bnContent->writer_id }}, Name by ID: {{ optional($bnContent->writer)->name ?? 'N/A' }}
Writer: {{ $bnContent->writers }}
Content ID: {{ $bnContent->id }}
{{ $bnContent->heading }} @if ($bnContent->tags)
@foreach ($bnContent->tags as $tag) {{ $tag->name ?? 'No Name' }} @endforeach
@endif
{{ $bnContent->content_details_word_count }} {{ optional($bnContent->totalHits)->total_hits ?? 0 }} আপডেট: {{ $bnContent->updated_at ? BengaliDateHelper::formatBengaliDateTime($bnContent->updated_at) : '' }}
প্রকাশিত: {{ $bnContent->created_at ? BengaliDateHelper::formatBengaliDateTime($bnContent->created_at) : '' }}
সন্নিবেশিত:  {{-- {{ $bnContent->created_by_old ?? 'N/A' }} --}} {{ optional($bnContent->creator)->name ?? $bnContent->created_by }}  |  আপডেট:  {{ optional($bnContent->updater)->name ?? $bnContent->updated_by }}
@if ($bnContent->editable == 2)
Editing by {{ optional($bnContent->editingBy)->name ?? 'Editor ' . $bnContent->editing_by_id }}
{{-- Admin can cancel editing. Also loggoed-in user can cancel only his/her editing content --}} @if (auth()->user()->role_id == 1 || auth()->user()->id == optional($bnContent->editingBy)->id)
@csrf
@endif @else Edit {{-- Only for Admin --}} @if (auth()->user()->role_id == 1) @endif @endif
@else @include('admin.partial.data-not-found') @endif
@endsection @section('js') {{-- Content Publish/Unpublish --}} {{-- Editing Summary Modal Logic --}} @endsection