Unify SSO and surface legacy ResellerClub hosting orders on the dashboard.
Deploy Ladill Hosting / deploy (push) Successful in 26s

Add silent OAuth and session keepalive, and show imported RC orders alongside
native hosting accounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 06:33:16 +00:00
co-authored by Cursor
parent c91d25eb3b
commit e3fd235139
11 changed files with 196 additions and 31 deletions
+23 -2
View File
@@ -29,11 +29,11 @@
<div class="mt-6 rounded-2xl border border-slate-200 bg-white">
<div class="flex items-center justify-between border-b border-slate-100 px-5 py-3.5">
<h2 class="text-sm font-semibold text-slate-900">Hosting accounts</h2>
@if ($accounts->count() > 5)
@if ($accounts->count() + ($recentLegacyOrders ?? collect())->count() > 5)
<a href="{{ route('hosting.accounts.index') }}" class="text-xs font-medium text-indigo-600 hover:underline">View all</a>
@endif
</div>
@if ($recent->isEmpty())
@if ($recent->isEmpty() && ($recentLegacyOrders ?? collect())->isEmpty())
<div class="px-5 py-12 text-center">
<p class="text-sm font-semibold text-slate-700">No hosting accounts yet</p>
<p class="mx-auto mt-1 max-w-sm text-xs text-slate-400">Choose a plan to get started single domain, multi domain, or WordPress hosting.</p>
@@ -75,6 +75,27 @@
])>{{ $account->status }}</span>
</a>
@endforeach
@foreach ($recentLegacyOrders ?? [] as $order)
<a href="{{ route('hosting.legacy.show', $order) }}" class="flex items-center justify-between px-5 py-3.5 transition hover:bg-slate-50">
<div class="min-w-0">
<p class="truncate text-sm font-medium text-slate-900">{{ $order->domain_name ?: 'Legacy hosting' }}</p>
<p class="mt-0.5 text-xs text-slate-400">
{{ $order->cpanel_username ?: 'Legacy account' }}
· {{ $order->plan_name ?? 'Legacy hosting' }}
· Legacy
@if ($order->expires_at)
· Expires {{ $order->expires_at->format('d M Y') }}
@endif
</p>
</div>
<span @class([
'shrink-0 rounded-full px-2.5 py-1 text-[11px] font-medium capitalize',
'bg-emerald-50 text-emerald-700' => $order->status === 'active',
'bg-red-50 text-red-700' => $order->status === 'suspended',
'bg-slate-100 text-slate-600' => ! in_array($order->status, ['active', 'suspended'], true),
])>{{ $order->status }}</span>
</a>
@endforeach
</div>
@endif
</div>