@extends('layouts.app') @section('content')
User roles, app usage, reading activity, and notification publishing.
| User | Type | Device | Last Seen | Status |
|---|---|---|---|---|
|
{{ $device->user->name ?? 'Unknown user' }}
{{ $device->user->email ?? '—' }}
|
{{ $device->user?->typeLabel() ?? 'Unknown' }} |
{{ $device->device_name ?: 'Unnamed device' }}
{{ strtoupper($device->platform ?: 'unknown') }} @if($device->app_version) / {{ $device->app_version }} @endif
|
{{ optional($device->last_seen_at)->format('Y-m-d H:i') ?? '—' }}
Login: {{ optional($device->last_login_at)->format('Y-m-d H:i') ?? '—' }}
|
@if($device->isOnline()) Online @else Offline @endif |
| No app usage recorded yet. | ||||
| Read At | User | Topic | Resource |
|---|---|---|---|
|
{{ optional($read->read_at)->format('Y-m-d H:i') ?? '—' }}
{{ $read->source ?: 'mobile' }}
|
{{ $read->user->name ?? 'Unknown user' }}
{{ $read->user?->typeLabel() ?? 'Unknown' }}
|
{{ $read->category_title ?: $read->category_id }} |
{{ $read->document_title ?: 'Topic opened' }}
{{ strtoupper($read->document_type ?: 'unknown') }}
|
| No reading activity recorded yet. | |||
| Title | Audience | Created By | Published | Reads | Channel |
|---|---|---|---|---|---|
|
{{ $notification->title }}
{{ \Illuminate\Support\Str::limit($notification->message, 100) }}
|
{{ $notification->target_type ? ($typeLabels[$notification->target_type] ?? ('Type '.$notification->target_type)) : 'All guide users' }} |
{{ $notification->creator->name ?? 'Unknown' }}
{{ $notification->creator?->typeLabel() ?? 'Unknown' }}
|
{{ optional($notification->published_at)->format('Y-m-d H:i') ?? 'Draft' }} | {{ number_format($notification->reads_count ?? 0) }} |
in_app
@if($notification->opensDocument())
Open resource
@elseif($notification->opensCategory())
Open topic
@else
Feed only
@endif
|
| No notifications published yet. | |||||