@extends('backend.app') @section('title') {{ env('APP_NAME') }} || Announcement Details @endsection @section('content')
Comprehensive details of the announcement.
| Title | {{ $announcement->title ?? 'N/A' }} |
|---|---|
| Category | {{ $announcement->category->name ?? 'N/A' }} |
| Status | @php $badgeClass = match ($announcement->status) { 'published', 'active' => 'bg-success', 'draft' => 'bg-warning', 'inactive', 'cancelled' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ ucfirst($announcement->status) }} |
| Created At | @if (is_string($announcement->created_at)) {{ \Carbon\Carbon::parse($announcement->created_at)->format('M d, Y h:i A') }} @else {{ $announcement->created_at->format('M d, Y h:i A') }} @endif |
| Publish Date | {{ $announcement->publish_date ? \Carbon\Carbon::parse($announcement->publish_date)->format('M d, Y') : 'N/A' }} |
User ID: {{ $announcement->user->id ?? 'N/A' }}
Email: {{ $announcement->user->email ?? 'N/A' }}
Phone: {{ $announcement->user->phone ?? 'N/A' }}
{{ $announcement->property->property_address }}
Owner: {{ $announcement->property->user->name ?? 'N/A' }}
@elseNo property information linked.
@endif