@extends('dashboard.app') @section('page_title', 'Emoji Catalog') @section('page_subtitle', 'Manage emojis in database, then publish one frozen JSON snapshot when ready.') @section('dashboard_content') @if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
Catalog rows
{{ number_format($totalRows ?? $items->total()) }}
Read from `emojis` table
@if (($filters['q'] ?? '') !== '')
Filtered result: {{ number_format($items->total()) }}
@endif
Active snapshot
{{ $activeVersion ?: 'None' }}
{{ $activeVersion ? 'Published' : 'Not published yet' }}
Active file path
{{ $activePath ?: config('dewemoji.data_path') }}
Public search/API uses this dataset.
Reset
Add Emoji
@csrf
@csrf
@forelse ($items as $item) @empty @endforelse
ID Emoji Slug Name Category Updated Actions
#{{ $item->emoji_id }} {{ $item->emoji ?: '⬚' }} {{ $item->slug }} {{ $item->name }} {{ $item->category }} {{ $item->updated_at ? \Illuminate\Support\Carbon::parse($item->updated_at)->format('Y-m-d H:i') : '—' }}
Edit
@csrf @method('DELETE')
@if (($filters['q'] ?? '') !== '') No rows match "{{ $filters['q'] }}". @else No catalog rows in database. @endif
{{ $items->links('vendor.pagination.dashboard') }}
Snapshot Versions
Use this for quick rollback if latest publish is broken.
@forelse (($snapshots ?? []) as $snapshot) @empty @endforelse
Version File Updated Status Action
{{ $snapshot['version'] }} {{ $snapshot['name'] }} {{ $snapshot['modified_at'] > 0 ? \Illuminate\Support\Carbon::createFromTimestamp($snapshot['modified_at'])->format('Y-m-d H:i') : '—' }} @if ($snapshot['is_active']) Active @else Inactive @endif @if (!$snapshot['is_active'])
@csrf
@endif
No snapshot files found yet. Publish once to create versioned snapshots.
@endsection