@extends('layouts.app') @section('content')
Publish in-app notices for admins, creators, readers, or all guide users.
| Title | Audience | Destination | Reads | Published | Actions |
|---|---|---|---|---|---|
|
{{ $notification->title }}
{{ \Illuminate\Support\Str::limit($notification->message, 120) }}
By {{ $notification->creator->name ?? 'Unknown' }}
@if($notification->creator)
{{ $notification->creator->typeLabel() }}
@endif
|
{{ $notification->target_type ? ($targetOptions[$notification->target_type] ?? ('Type '.$notification->target_type)) : 'All guide users' }} |
@if($notification->opensDocument())
Open resource
{{ $notification->action_document_title ?: basename((string) $notification->action_document_url) }}
{{ $categoryLabelMap[$notification->action_category_id] ?? $notification->action_category_id }}
@elseif($notification->opensCategory())
Open topic
{{ $categoryLabelMap[$notification->action_category_id] ?? $notification->action_category_id }}
@else
Feed only
@endif
|
{{ number_format($notification->reads_count ?? 0) }} |
{{ optional($notification->published_at)->format('Y-m-d H:i') ?? 'Draft' }}
{{ $notification->delivery_channel }}
|
|
| No notifications published yet. | |||||