@extends('layouts.admin') @section('content') @php $statusLabel = str($record->status ?? 'draft')->replace('_', ' ')->title()->toString(); $statusTone = $record->status === 'published' ? 'is-resolved' : ($record->status === 'archived' ? 'is-spam' : 'is-new'); $typeLabel = str($record->type ?? 'news')->replace('_', ' ')->title()->toString(); $mediaUrl = static function ($asset): ?string { if (! $asset?->file_path) return null; $path = $asset->file_path; if (str($path)->startsWith(['http://', 'https://', '/'])) return $path; if (str($path)->startsWith(['storage/', 'images/'])) return asset($path); return ($asset->disk ?: 'public') === 'public' ? asset('storage/'.$path) : \Illuminate\Support\Facades\Storage::disk($asset->disk)->url($path); }; $imageUrl = $mediaUrl($record->image); $documentUrl = $mediaUrl($record->document); @endphp @include('admin.partials.submission-detail-styles')
All news & announcements

{{ $typeLabel }} details

{{ $record->title_en ?: 'News/Announcement #'.$record->id }}

Record #{{ $record->id }} {{ $record->slug ?: 'No slug assigned' }}

{{ $statusLabel }} Edit record

Event information

{{ $record->event_date?->format('d M Y') ?? 'News & announcement details' }}

{{ $typeLabel }}
Event date
{{ $record->event_date?->format('l, d F Y') ?? 'Not specified' }}
Event time
{{ $record->event_time ?: 'Not specified' }}
Venue
{{ $record->venue_en ?: 'Not specified' }}
Assamese venue
{{ $record->venue_as ?: 'Not specified' }}
Published at
{{ $record->published_at?->format('d M Y, h:i A') ?? 'Not scheduled' }}
Featured
{{ $record->is_featured ? 'Yes' : 'No' }}{{ $record->is_featured && $record->featured_order !== null ? ' · Order '.$record->featured_order : '' }}

English

{{ $record->title_en ?: 'English content' }}

English
@if ($record->description_en)

{{ $record->description_en }}

@endif
{{ $record->content_en ?: 'No English content provided.' }}

Assamese

{{ $record->title_as ?: 'অসমীয়া বিষয়বস্তু' }}

অসমীয়া
@if ($record->description_as)

{{ $record->description_as }}

@endif
{{ $record->content_as ?: 'অসমীয়াত কোনো বিষয়বস্তু দিয়া হোৱা নাই।' }}
@endsection