added countries support expanded for ISO 3166 standard
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Countries\Rules;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
|
||||
class ValidCountryCode implements ValidationRule
|
||||
{
|
||||
public function __construct(private readonly bool $activeOnly = true)
|
||||
{
|
||||
}
|
||||
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
(new ValidIso3166CountryCode($this->activeOnly, 'alpha2'))->validate($attribute, $value, $fail);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,12 @@
|
||||
versions:
|
||||
- version: 1.3.0
|
||||
date: 2026-06-15
|
||||
changes:
|
||||
- Exposed all ISO 3166 country parameters in create and edit CRUD forms.
|
||||
- Added create, store and destroy actions for platform country administration.
|
||||
- Added professional WMS-styled form layout with red required-field indicators.
|
||||
- Added editable metadata JSON, source tracking, sync timestamp and operational support flags.
|
||||
- Updated country index and show views to display full ISO and operational metadata.
|
||||
- version: 1.2.0
|
||||
date: 2026-06-15
|
||||
changes:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Countries",
|
||||
"alias": "countries",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"description": "ISO 3166 country reference module with active-country support for WMS and SaaS workflows.",
|
||||
"keywords": [
|
||||
"countries",
|
||||
|
||||
@@ -11,15 +11,6 @@
|
||||
]"
|
||||
/>
|
||||
|
||||
<section class="grid gap-4 sm:grid-cols-2 xl:grid-cols-5">
|
||||
@foreach ([['Companies', $companiesCount], ['Active', $activeCompaniesCount], ['Warehouses', $warehousesCount], ['Prices', $pricesCount], ['Licences', $licensesCount]] as [$label, $value])
|
||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<p class="text-sm text-zinc-500 dark:text-zinc-400">{{ $label }}</p>
|
||||
<p class="mt-2 text-3xl font-bold text-zinc-900 dark:text-white">{{ $value }}</p>
|
||||
</article>
|
||||
@endforeach
|
||||
</section>
|
||||
|
||||
<section class="grid gap-5 xl:grid-cols-3">
|
||||
<article class="rounded-3xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="mb-5 flex items-start justify-between gap-4">
|
||||
@@ -88,81 +79,6 @@
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="rounded-3xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="mb-5 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||
<div>
|
||||
<p class="text-xs font-bold uppercase tracking-[0.28em] text-cyan-500">Pricing</p>
|
||||
|
||||
<h2 class="mt-2 text-xl font-bold text-zinc-900 dark:text-white">
|
||||
Pricing plans
|
||||
</h2>
|
||||
|
||||
<p class="text-sm text-zinc-500 dark:text-zinc-400">
|
||||
Current platform pricing tiers and administration shortcuts.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<a
|
||||
href="{{ route('platform.pricing.index') }}"
|
||||
wire:navigate
|
||||
class="inline-flex h-10 items-center justify-center gap-2 rounded-xl border border-zinc-200 px-4 text-sm font-bold text-zinc-700 hover:border-cyan-400 hover:text-cyan-700 dark:border-zinc-700 dark:text-zinc-200"
|
||||
>
|
||||
<i class="fa-solid fa-credit-card" aria-hidden="true"></i>
|
||||
View pricing
|
||||
</a>
|
||||
|
||||
<a
|
||||
href="{{ route('platform.prices.index') }}"
|
||||
wire:navigate
|
||||
class="inline-flex h-10 items-center justify-center gap-2 rounded-xl bg-cyan-600 px-4 text-sm font-bold text-white shadow-sm shadow-cyan-600/20 ring-1 ring-cyan-500/30 transition hover:bg-cyan-500"
|
||||
>
|
||||
<i class="fa-solid fa-tags" aria-hidden="true"></i>
|
||||
Manage prices
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-4 md:grid-cols-3">
|
||||
@foreach ($prices as $price)
|
||||
<article class="rounded-2xl border border-zinc-200 p-5 dark:border-zinc-800">
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<h3 class="text-lg font-bold text-zinc-900 dark:text-white">
|
||||
{{ $price->name }}
|
||||
</h3>
|
||||
|
||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{{ $price->strapline }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@if ($price->badge_label)
|
||||
<span class="rounded-full bg-cyan-500/10 px-3 py-1 text-xs font-bold uppercase tracking-wide text-cyan-600 dark:text-cyan-400">
|
||||
{{ $price->badge_label }}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<p class="mt-4 text-2xl font-black text-zinc-900 dark:text-white">
|
||||
£{{ number_format($price->monthly_amount / 100, 0) }}
|
||||
<span class="text-sm font-semibold text-zinc-500">/ month</span>
|
||||
</p>
|
||||
|
||||
@if (! empty($price->features))
|
||||
<ul class="mt-4 space-y-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
@foreach (array_slice($price->features, 0, 3) as $feature)
|
||||
<li class="flex gap-2">
|
||||
<i class="fa-solid fa-check mt-1 text-cyan-500" aria-hidden="true"></i>
|
||||
<span>{{ $feature }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</article>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="grid gap-5 xl:grid-cols-[360px_minmax(0,1fr)]">
|
||||
<article class="rounded-3xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
|
||||
Reference in New Issue
Block a user