Wire admin studio SSR and search infrastructure
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
@extends('layouts.nova')
|
||||
|
||||
@php
|
||||
$displayDate = \Carbon\Carbon::parse($display_date ?? now()->toDateString());
|
||||
$isFallbackWindow = (bool) ($is_fallback_window ?? false);
|
||||
$displayDateIso = $displayDate->toDateString();
|
||||
$displayDateText = $displayDate->format('d F Y');
|
||||
$page_title = $page_title ?? 'Most Downloaded Today';
|
||||
$page_meta_description = 'Browse the artworks downloaded the most today on Skinbase.';
|
||||
$page_meta_description = $isFallbackWindow
|
||||
? 'Browse the artworks downloaded the most from the latest 1000 downloads on Skinbase.'
|
||||
: 'Browse the artworks downloaded the most today on Skinbase.';
|
||||
$page_canonical = route('downloads.today', request()->query());
|
||||
$gallery_type = 'today-downloads';
|
||||
$useUnifiedSeo = true;
|
||||
@@ -43,13 +49,15 @@
|
||||
:title="$page_title ?? 'Most Downloaded Today'"
|
||||
icon="fa-download"
|
||||
:breadcrumbs="$headerBreadcrumbs"
|
||||
:description="'Artworks downloaded the most on <time datetime="' . e(now()->toDateString()) . '">' . e(now()->format('d F Y')) . '</time>.'"
|
||||
:description="$isFallbackWindow
|
||||
? 'Showing rankings calculated from the latest 1000 download events because no downloads have been recorded today yet.'
|
||||
: 'Artworks downloaded the most on <time datetime="' . e($displayDateIso) . '">' . e($displayDateText) . '</time>.'"
|
||||
headerClass="pb-6"
|
||||
>
|
||||
<x-slot name="actions">
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium bg-emerald-500/10 text-emerald-300 ring-1 ring-emerald-500/25">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"></span>
|
||||
Live today
|
||||
{{ $isFallbackWindow ? 'Latest 1000 downloads' : 'Live today' }}
|
||||
</span>
|
||||
</x-slot>
|
||||
</x-nova-page-header>
|
||||
@@ -70,8 +78,8 @@
|
||||
<svg class="mx-auto mb-3 w-10 h-10 text-white/20" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
|
||||
</svg>
|
||||
<p class="text-white/40 text-sm">No downloads recorded today yet.</p>
|
||||
<p class="text-white/25 text-xs mt-1">Check back later as the day progresses.</p>
|
||||
<p class="text-white/40 text-sm">No download activity is available yet.</p>
|
||||
<p class="text-white/25 text-xs mt-1">Check back later after new downloads are recorded.</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user