150 lines
12 KiB
PHP
Executable File
150 lines
12 KiB
PHP
Executable File
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('Platform Prices')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('layouts::app'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Platform Prices'))]); ?>
|
|
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
|
|
|
<div class="space-y-6">
|
|
<?php if (isset($component)) { $__componentOriginal9c6e3f23e2ced4034a039852a77e1e96 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal9c6e3f23e2ced4034a039852a77e1e96 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.wms.page-hero','data' => ['eyebrow' => 'Administration','title' => 'Pricing Administration','description' => 'Create, edit and publish the platform pricing cards shown under Platform.','icon' => 'fa-solid fa-tags']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('wms.page-hero'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['eyebrow' => 'Administration','title' => 'Pricing Administration','description' => 'Create, edit and publish the platform pricing cards shown under Platform.','icon' => 'fa-solid fa-tags']); ?>
|
|
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
|
|
|
<a href="<?php echo e(route('platform.prices.create')); ?>" wire:navigate class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
|
Add price
|
|
</a>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal9c6e3f23e2ced4034a039852a77e1e96)): ?>
|
|
<?php $attributes = $__attributesOriginal9c6e3f23e2ced4034a039852a77e1e96; ?>
|
|
<?php unset($__attributesOriginal9c6e3f23e2ced4034a039852a77e1e96); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal9c6e3f23e2ced4034a039852a77e1e96)): ?>
|
|
<?php $component = $__componentOriginal9c6e3f23e2ced4034a039852a77e1e96; ?>
|
|
<?php unset($__componentOriginal9c6e3f23e2ced4034a039852a77e1e96); ?>
|
|
<?php endif; ?>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('status')): ?>
|
|
<div class="rounded-2xl border border-emerald-200 bg-emerald-50 px-5 py-4 text-sm font-semibold text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200">
|
|
<?php echo e(session('status')); ?>
|
|
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<section class="grid gap-5 lg:grid-cols-3">
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $prices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $price): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
|
<?php
|
|
$isBasic = $price->code === 'basic';
|
|
$isAdvanced = $price->code === 'advanced';
|
|
$headerClass = $isAdvanced
|
|
? 'from-cyan-500 to-blue-600'
|
|
: ($isBasic ? 'from-slate-700 to-slate-900' : 'from-indigo-600 to-violet-700');
|
|
?>
|
|
|
|
<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">
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php 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">
|
|
Featured
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<div class="bg-gradient-to-br <?php echo e($headerClass); ?> p-5 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">
|
|
<?php echo e($price->badge_label ?: 'Plan'); ?>
|
|
|
|
</p>
|
|
<h2 class="mt-2 text-2xl font-black tracking-tight"><?php echo e($price->name); ?></h2>
|
|
</div>
|
|
|
|
<span class="grid h-11 w-11 place-items-center rounded-2xl bg-white/15 text-lg backdrop-blur">
|
|
<i class="fa-solid <?php echo e($isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown')); ?>" aria-hidden="true"></i>
|
|
</span>
|
|
</div>
|
|
|
|
<p class="mt-3 text-sm leading-6 text-white/80"><?php echo e($price->strapline); ?></p>
|
|
</div>
|
|
|
|
<div class="p-5">
|
|
<div class="flex items-end gap-2">
|
|
<span class="text-4xl font-black tracking-tight text-zinc-950 dark:text-white">
|
|
<?php echo e($price->formatAmount($price->monthly_amount)); ?>
|
|
|
|
</span>
|
|
<span class="pb-1 text-sm font-semibold text-zinc-500">/ month</span>
|
|
</div>
|
|
|
|
<p class="mt-2 text-sm text-zinc-500">
|
|
Annual:
|
|
<span class="font-semibold text-zinc-700 dark:text-zinc-200">
|
|
<?php echo e($price->formatAmount($price->annual_amount)); ?>
|
|
|
|
</span>
|
|
</p>
|
|
|
|
<p class="mt-4 min-h-12 text-sm leading-6 text-zinc-600 dark:text-zinc-300">
|
|
<?php echo e($price->description); ?>
|
|
|
|
</p>
|
|
|
|
<ul class="mt-5 space-y-3 text-sm text-zinc-700 dark:text-zinc-200">
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $price->featureRows(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
|
<li class="flex gap-3">
|
|
<i class="fa-solid fa-check mt-1 text-cyan-500" aria-hidden="true"></i>
|
|
<span><?php echo e($feature); ?></span>
|
|
</li>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
|
</ul>
|
|
|
|
<div class="mt-6 flex items-center justify-between gap-3 border-t border-zinc-100 pt-4 dark:border-zinc-800">
|
|
<span class="rounded-full px-3 py-1 text-xs font-bold <?php echo e($price->is_active ? 'bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-200' : 'bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-300'); ?>">
|
|
<?php echo e($price->is_active ? 'Active' : 'Hidden'); ?>
|
|
|
|
</span>
|
|
|
|
<div class="flex items-center gap-2">
|
|
<a href="<?php echo e(route('platform.prices.edit', $price)); ?>" wire:navigate class="rounded-lg border border-zinc-200 px-3 py-2 text-sm font-semibold text-zinc-700 hover:border-cyan-400 hover:text-cyan-700 dark:border-zinc-700 dark:text-zinc-200">
|
|
Edit
|
|
</a>
|
|
<form method="POST" action="<?php echo e(route('platform.prices.destroy', $price)); ?>" onsubmit="return confirm('Delete this price?');">
|
|
<?php echo csrf_field(); ?>
|
|
<?php echo method_field('DELETE'); ?>
|
|
<button type="submit" class="rounded-lg border border-red-200 px-3 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 dark:border-red-900/70 dark:hover:bg-red-950/40">
|
|
Delete
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
|
<article class="rounded-3xl border border-dashed border-zinc-300 bg-white p-6 text-sm text-zinc-500 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-3">
|
|
No pricing plans have been created yet.
|
|
</article>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</section>
|
|
</div>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
|
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
|
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
|
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
|
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
|
<?php endif; ?>
|
|
<?php /**PATH /Users/mag/Sites/WMS/Core/Modules/Platform/Providers/../resources/views/prices/index.blade.php ENDPATH**/ ?>
|