Files
WMS/Modules/Platform/resources/views/prices/public.blade.php
T
2026-06-11 10:58:34 +01:00

86 lines
5.1 KiB
PHP

<x-layouts::app :title="__('Pricing')">
<div class="space-y-6">
<section class="overflow-hidden rounded-3xl bg-gradient-to-br from-slate-950 via-slate-900 to-cyan-950 p-6 text-white shadow-xl sm:p-8">
<div class="flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between">
<div>
<p class="text-sm font-semibold uppercase tracking-[0.3em] text-cyan-300">Platform</p>
<h1 class="mt-3 text-3xl font-bold tracking-tight sm:text-5xl">Platform pricing</h1>
<p class="mt-3 max-w-2xl text-slate-300">Choose the right WMS plan for warehouse visibility, operational control and enterprise-grade administration.</p>
</div>
<div class="grid gap-3 sm:min-w-80 sm:grid-cols-2">
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur">
<p class="text-sm text-slate-300">Plans</p>
<p class="mt-2 flex items-center gap-2 text-2xl font-bold text-emerald-300">
<i class="fa-solid fa-layer-group" aria-hidden="true"></i>
{{ $prices->count() }}
</p>
</div>
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur">
<p class="text-sm text-slate-300">Billing</p>
<p class="mt-2 text-2xl font-bold">Monthly</p>
</div>
</div>
</div>
</section>
<section class="grid gap-5 lg:grid-cols-3">
@forelse ($prices as $price)
@php
$isBasic = $price->code === 'basic';
$isAdvanced = $price->code === 'advanced';
$headerClass = $isAdvanced
? 'from-cyan-500 to-blue-600'
: ($isBasic ? 'from-slate-700 to-slate-950' : 'from-indigo-600 to-violet-700');
@endphp
<article class="relative overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-xl dark:border-zinc-800 dark:bg-zinc-900">
@if ($price->is_featured)
<div class="absolute right-4 top-4 z-10 rounded-full bg-white px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-cyan-700 shadow">{{ $price->badge_label ?: 'Popular' }}</div>
@endif
<div class="bg-gradient-to-br {{ $headerClass }} p-6 text-white">
<div class="flex items-start justify-between gap-4">
<div>
<p class="text-xs font-bold uppercase tracking-[0.24em] text-white/70">{{ $price->badge_label ?: 'Plan' }}</p>
<h2 class="mt-2 text-3xl font-black tracking-tight">{{ $price->name }}</h2>
</div>
<span class="grid h-12 w-12 place-items-center rounded-2xl bg-white/15 text-xl backdrop-blur">
<i class="fa-solid {{ $isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown') }}" aria-hidden="true"></i>
</span>
</div>
<p class="mt-4 text-sm leading-6 text-white/80">{{ $price->strapline }}</p>
</div>
<div class="p-6">
<div class="flex items-end gap-2">
<span class="text-4xl font-black tracking-tight text-zinc-950 dark:text-white">{{ $price->formatAmount($price->monthly_amount) }}</span>
<span class="pb-1 text-sm font-semibold text-zinc-500">/ month</span>
</div>
@if ($price->annual_amount)
<p class="mt-2 text-sm text-zinc-500">Annual: <span class="font-semibold text-zinc-700 dark:text-zinc-200">{{ $price->formatAmount($price->annual_amount) }}</span></p>
@endif
<p class="mt-4 min-h-12 text-sm leading-6 text-zinc-600 dark:text-zinc-300">{{ $price->description }}</p>
<ul class="mt-5 space-y-3 text-sm text-zinc-700 dark:text-zinc-200">
@foreach ($price->featureRows() as $feature)
<li class="flex gap-3">
<i class="fa-solid fa-check mt-1 text-cyan-500" aria-hidden="true"></i>
<span>{{ $feature }}</span>
</li>
@endforeach
</ul>
</div>
</article>
@empty
<article class="rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
<h2 class="text-xl font-bold">No active prices</h2>
<p class="mt-2 text-sm text-zinc-500">Add active pricing records from Administration to populate this page.</p>
</article>
@endforelse
</section>
</div>
</x-layouts::app>