updated dashboard
This commit is contained in:
@@ -33,54 +33,6 @@
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold text-slate-950 dark:text-white">Pricing plans</h2>
|
||||
<p class="mt-1 text-sm text-slate-500 dark:text-slate-400">Public pricing cards remain visible from the Platform dashboard, while CRUD stays under Administration.</p>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<a href="{{ route('platform.pricing.index') }}" class="rounded-lg border border-blue-200 px-3 py-2 text-sm font-semibold text-blue-700 hover:bg-blue-50 dark:border-blue-800 dark:text-blue-300 dark:hover:bg-blue-950/40">Public pricing</a>
|
||||
<a href="{{ route('platform.prices.index') }}" class="rounded-lg bg-blue-600 px-3 py-2 text-sm font-semibold text-white hover:bg-blue-700">Manage prices</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 grid gap-4 md:grid-cols-3">
|
||||
@forelse (($prices ?? collect())->take(3) as $price)
|
||||
<article class="rounded-xl border border-slate-200 p-4 dark:border-slate-800">
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<h3 class="font-semibold text-slate-950 dark:text-white">{{ $price->name }}</h3>
|
||||
<p class="mt-1 text-sm text-slate-500 dark:text-slate-400">{{ $price->strapline ?? 'WMS platform plan' }}</p>
|
||||
</div>
|
||||
|
||||
@if (! empty($price->badge_label))
|
||||
<span class="rounded-full bg-emerald-100 px-2.5 py-1 text-xs font-semibold text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300">{{ $price->badge_label }}</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<p class="mt-4 text-2xl font-bold text-slate-950 dark:text-white">
|
||||
{{ strtoupper($price->currency ?? 'GBP') }} {{ number_format(((int) ($price->monthly_amount ?? 0)) / 100, 2) }}
|
||||
</p>
|
||||
<p class="text-sm text-slate-500 dark:text-slate-400">per month</p>
|
||||
|
||||
@php($features = is_array($price->features ?? null) ? $price->features : [])
|
||||
@if ($features !== [])
|
||||
<ul class="mt-4 space-y-2 text-sm text-slate-600 dark:text-slate-300">
|
||||
@foreach (array_slice($features, 0, 3) as $feature)
|
||||
<li>✓ {{ $feature }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</article>
|
||||
@empty
|
||||
<article class="rounded-xl border border-dashed border-slate-300 p-4 text-sm text-slate-500 dark:border-slate-700 dark:text-slate-400 md:col-span-3">
|
||||
No active pricing plans have been configured yet.
|
||||
</article>
|
||||
@endforelse
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="grid gap-6 xl:grid-cols-3">
|
||||
<article class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950 xl:col-span-1">
|
||||
|
||||
Reference in New Issue
Block a user