new gui layout for pricing

This commit is contained in:
Mark Gregory
2026-06-11 11:06:10 +01:00
parent 0e83986850
commit af25555ca4
175 changed files with 4616 additions and 9311 deletions
@@ -56,6 +56,8 @@
<span data-wms-sidebar-label><?php echo e(__('Dashboard')); ?></span>
</a>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<div class="wms-sidebar-group">
@@ -325,62 +327,7 @@
</aside>
<div class="wms-main-panel">
<?php
$pageTitle = $title ?? __('Warehouse Management System');
$pageDescription = match (true) {
request()->routeIs('platform.dashboard') => __('Manage tenant companies, licences, payments, warehouses and internal API operations from one resilient control plane.'),
request()->routeIs('platform.prices.index') => __('Choose, publish and maintain Basic, Advanced and Pro WMS pricing from one controlled platform screen.'),
request()->routeIs('platform.prices.create') => __('Create a professional customer-facing pricing card with billing values, features and visibility controls.'),
request()->routeIs('platform.prices.edit') => __('Update pricing, plan features and card visibility while preserving the live platform layout.'),
request()->routeIs('platform.companies.*') => __('Manage tenant companies, ownership, users and the warehouse records attached to each organisation.'),
request()->routeIs('platform.licenses.*') => __('Review licence allocation, account status and platform access across MPBA tenants.'),
request()->routeIs('platform.payments.*') => __('Track payment activity, paid totals and tenant billing status from one administration screen.'),
request()->routeIs('warehouses.*') => __('Maintain warehouse locations, operational details and company ownership records.'),
request()->routeIs('inventory-management.*') => __('Monitor inventory activity, stock positions and warehouse item control.'),
request()->routeIs('analytics.*') => __('Review operational insight, warehouse trends and management reporting.'),
default => __('Manage tenant companies, licences, payments, warehouses and internal API operations from one resilient control plane.'),
};
$pageStats = match (true) {
request()->routeIs('platform.prices.*') => [
['label' => __('Plans'), 'value' => '3', 'icon' => 'fa-layer-group'],
['label' => __('Billing'), 'value' => __('Monthly'), 'icon' => null],
],
default => [
['label' => __('System status'), 'value' => __('OK'), 'icon' => 'fa-heart-pulse'],
['label' => __('Paid £'), 'value' => '0.00', 'icon' => null],
],
};
?>
<main class="wms-content">
<section class="wms-page-hero" aria-labelledby="wms-page-title">
<div class="wms-page-hero-copy">
<div class="wms-page-hero-kicker"><?php echo e(__('MPBA WMS')); ?></div>
<h1 id="wms-page-title" class="wms-page-hero-title"><?php echo e($pageTitle); ?></h1>
<p class="wms-page-hero-description"><?php echo e($pageDescription); ?></p>
</div>
<div class="wms-page-hero-actions">
<button type="button" class="wms-hero-mobile-menu" data-wms-mobile-open aria-label="<?php echo e(__('Open navigation')); ?>">
<i class="fa-solid fa-bars" aria-hidden="true"></i>
</button>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $pageStats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
<div class="wms-page-hero-stat">
<span><?php echo e($stat['label']); ?></span>
<strong>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(! empty($stat['icon'])): ?>
<i class="fa-solid <?php echo e($stat['icon']); ?>" aria-hidden="true"></i>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php echo e($stat['value']); ?>
</strong>
</div>
<?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; ?>
</div>
</section>
<?php echo e($slot); ?>
</main>