diff --git a/themes/lucentui/js/app.js b/themes/lucentui/js/app.js index 9d85ad868..b148989a8 100644 --- a/themes/lucentui/js/app.js +++ b/themes/lucentui/js/app.js @@ -24,7 +24,9 @@ Alpine.store('notifications', { }, addNotification(notification) { - notification = notification[0]; + // Livewire dispatches pass args as an array; unwrap if needed. + if (Array.isArray(notification)) notification = notification[0]; + if (!notification || typeof notification !== 'object') return; notification.show = false; notification.id = Date.now() + Math.floor(Math.random() * 1000); notification.type = notification.type || 'success'; diff --git a/themes/lucentui/views/auth/login.blade.php b/themes/lucentui/views/auth/login.blade.php index 75c408ac3..f8c702900 100644 --- a/themes/lucentui/views/auth/login.blade.php +++ b/themes/lucentui/views/auth/login.blade.php @@ -1,6 +1,6 @@ -
© {{ date('Y') }} {{ config('app.name') }} | All rights reserved.
+© {{ date('Y') }} {{ config('app.name') }} | All rights reserved.
{{ $session->ip_address }}
{{ $session->formatted_device }} - {{ $session->last_activity->diffForHumans() }}
@@ -65,7 +65,7 @@{{ __('account.two_factor_authentication_enable_description') }}
{{ __('account.two_factor_authentication_secret') }}
{{ $twoFactorData['secret'] }}
diff --git a/themes/lucentui/views/components/card/stat.blade.php b/themes/lucentui/views/components/card/stat.blade.php
index a79221bba..3bd93a10a 100644
--- a/themes/lucentui/views/components/card/stat.blade.php
+++ b/themes/lucentui/views/components/card/stat.blade.php
@@ -6,6 +6,7 @@
'trend' => null,
'icon' => null,
'href' => null,
+ 'tone' => 'primary', // primary | success | warning | info | error | secondary
])
@php
$trendClass = match($trend) {
@@ -19,10 +20,26 @@
'down' => 'ri-arrow-down-line',
default => null,
};
+ $toneBg = match($tone) {
+ 'success' => 'bg-success/10 group-hover:bg-success/20',
+ 'warning' => 'bg-warning/10 group-hover:bg-warning/20',
+ 'info' => 'bg-info/10 group-hover:bg-info/20',
+ 'error' => 'bg-error/10 group-hover:bg-error/20',
+ 'secondary' => 'bg-secondary/10 group-hover:bg-secondary/20',
+ default => 'bg-primary/10 group-hover:bg-primary/20',
+ };
+ $toneText = match($tone) {
+ 'success' => 'text-success',
+ 'warning' => 'text-warning',
+ 'info' => 'text-info',
+ 'error' => 'text-error',
+ 'secondary' => 'text-secondary',
+ default => 'text-primary',
+ };
$tag = $href ? 'a' : 'div';
@endphp
<{{ $tag }} @if($href) href="{{ $href }}" wire:navigate @endif
- {{ $attributes->merge(['class' => 'card-glass card-glass-hover block p-5 group']) }}>
+ {{ $attributes->merge(['class' => 'card-glass card-glass-hover hover-lift block p-5 group']) }}>
{{ $label }}
@@ -38,7 +55,7 @@ @endif{{ Auth::user()->services()->where('status', - 'active')->count() }}
-{{ Auth::user()->invoices()->where('status', - 'pending')->count() }}
-{{ Auth::user()->tickets()->where('status', '!=', - 'closed')->count() }}
-- {{ __('Total') }}: {{ $invoice->formattedTotal }} + {{ __('Total') }}: {{ $invoice->formattedTotal }} • {{ __('invoices.invoice_date') }}: {{ $invoice->created_at->format('d M Y') }}
@@ -86,8 +86,8 @@ @emptyYour invoices will appear here once you make a purchase. Browse our products to get started.
diff --git a/themes/lucentui/views/invoices/widget.blade.php b/themes/lucentui/views/invoices/widget.blade.php index 7b83a162b..dddf698ee 100644 --- a/themes/lucentui/views/invoices/widget.blade.php +++ b/themes/lucentui/views/invoices/widget.blade.php @@ -1,7 +1,7 @@+
You must enable two-factor authentication to order this product.
+
You must be logged in to order this product and enable two-factor authentication.
+
This product is currently out of stock or not available for purchase.
{{ __('Active') }}
{{ __('Pending') }}
{{ __('Suspended') }}
+{{ __('Suspended') }}
{{ __('Cancelled') }}