This commit is contained in:
Mark Gregory
2026-06-11 10:58:34 +01:00
parent 6d081cab5b
commit 0e83986850
13 changed files with 725 additions and 426 deletions
+25 -9
View File
@@ -232,6 +232,9 @@
$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.'),
@@ -240,6 +243,17 @@
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],
],
};
@endphp
<main class="wms-content">
@@ -255,15 +269,17 @@
<i class="fa-solid fa-bars" aria-hidden="true"></i>
</button>
<div class="wms-page-hero-stat">
<span>{{ __('System status') }}</span>
<strong><i class="fa-solid fa-heart-pulse" aria-hidden="true"></i> {{ __('OK') }}</strong>
</div>
<div class="wms-page-hero-stat">
<span>{{ __('Paid £') }}</span>
<strong>0.00</strong>
</div>
@foreach ($pageStats as $stat)
<div class="wms-page-hero-stat">
<span>{{ $stat['label'] }}</span>
<strong>
@if (! empty($stat['icon']))
<i class="fa-solid {{ $stat['icon'] }}" aria-hidden="true"></i>
@endif
{{ $stat['value'] }}
</strong>
</div>
@endforeach
</div>
</section>