@php // Determine theme color: prefer gallery's photo box setting, fallback to global setting $themeColor = null; try { $themeColor = $gallery->photoBox->settings['theme_color'] ?? null; } catch (\Throwable $e) { $themeColor = null; } if (empty($themeColor)) { $themeColor = \App\Models\Settings::getSettings('theme_color', '#000000'); } if (empty($themeColor)) { $themeColor = '#000000'; } // Compute readable text color (black or white) based on luminance $hex = ltrim($themeColor, '#'); if (strlen($hex) === 3) { $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; } $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); $luminance = (0.2126 * $r + 0.7152 * $g + 0.0722 * $b) / 255; $textColor = $luminance > 0.6 ? '#000000' : '#ffffff'; @endphp {{ $title }} @vite(['resources/css/app.css', 'resources/js/app.js']) @foreach ($backgroundImages as $image) @if (strpos($image->mime_type ?? '', 'video/') === 0) @else {{ $image->name }} @endif @endforeach

{{ $gallery->template->name }}

Silakan simpan foto-foto kenanganmu di bawah ini.

{{ $gallery->name }} • {{ $gallery->created_at->format('d M Y, H:i') }}
@if ($mediaCount > 0) Download Semua @endif
@if ($templateImage)
Template Foto
Template Foto
Image
Simpan
@endif @if ($templateVideo)
Template Video
Video
Simpan
@endif @if ($gifVideo)
GIF Slideshow
Video
Simpan
@endif @foreach ($photos as $photo)
Foto Original
Foto Original #{{ $loop->iteration }}
Image
Simpan
@endforeach @foreach ($videos as $video)
Video Original #{{ $loop->iteration }}
Video
Simpan
@endforeach @if (!$templateImage && !$templateVideo && !$gifVideo && $photos->isEmpty() && $videos->isEmpty())
😢

Yah, belum ada foto nih.

Sepertinya belum ada media yang diupload ke galeri ini.

@endif
@php $autoCleanup = \App\Models\Settings::getSettings('auto_cleanup', false); $cleanupDays = (int) \App\Models\Settings::getSettings('cleanup_days', 30); $expiresAt = null; if ($autoCleanup) { $expiresAt = $gallery->created_at->copy()->addDays($cleanupDays); } @endphp @if ($autoCleanup && $expiresAt)
Akan otomatis dihapus dalam
@endif

Terima kasih sudah berfoto di

{{ config('app.name') }} ! 📸
@stack('scripts') @stack('scripts')