@php $isAdmin = request()->is('admin*'); $isEn = app()->getLocale() === 'en'; $statusCode = 404; if ($isEn) { $statusTitle = 'Page Not Found'; $statusMessage = 'The page you are looking for may have been moved, deleted, or never existed.'; $actionLabel = $isAdmin ? 'Admin Dashboard' : 'Back to Home'; $secondaryLabel = null; } else { $statusTitle = 'Halaman Tidak Ditemukan'; $statusMessage = 'Sepertinya halaman yang Anda cari sudah dipindahkan, dihapus, atau tidak pernah ada.'; $actionLabel = $isAdmin ? 'Dashboard Admin' : 'Kembali ke Beranda'; $secondaryLabel = null; } $actionUrl = $isAdmin ? url('/admin/dashboard') : url('/'); $actionIconSvg = ''; $secondaryActionUrl = $secondaryLabel ? url($isAdmin ? '/admin/dashboard' : '/') : null; $secondaryActionLabel = $secondaryLabel; $secondaryActionIconSvg = ''; $iconSvg = ''; @endphp @extends('errors.layout')