added countries support
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Countries\Http\Controllers\CountriesController;
|
||||
|
||||
Route::prefix('countries')->name('countries.')->group(function (): void {
|
||||
Route::prefix('countries')->name('countries.')->middleware(['web', 'auth'])->group(function (): void {
|
||||
Route::get('/', [CountriesController::class, 'index'])->name('index');
|
||||
Route::get('/{country:alpha2}', [CountriesController::class, 'show'])->name('show');
|
||||
Route::get('/{country:alpha2}/edit', [CountriesController::class, 'edit'])->name('edit');
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
1.2.1:
|
||||
date: 2026-06-15
|
||||
summary: "Restored Countries module route names to countries.* to match the registered application route and prevent RouteNotFoundException."
|
||||
|
||||
module: Countries
|
||||
current_version: 1.1.0
|
||||
current_version: 1.2.0
|
||||
entries:
|
||||
- version: 1.2.0
|
||||
date: 2026-06-15
|
||||
type: change
|
||||
summary: "Added Countries to the WMS Platform Administration sidebar for MPBA platform administrators using the existing route guard, active-state class, and sidebar styling."
|
||||
- version: 1.1.0
|
||||
date: 2026-06-15
|
||||
type: feature
|
||||
@@ -9,3 +17,6 @@ entries:
|
||||
date: 2026-06-15
|
||||
type: initial
|
||||
summary: "Initial module skeleton."
|
||||
- version: 1.1.0
|
||||
date: 2026-06-15
|
||||
summary: "Moved Countries to Platform Administration using platform.countries.* route names under /platform/countries."
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
{
|
||||
"name": "Countries",
|
||||
"alias": "countries",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.1",
|
||||
"description": "ISO 3166 country reference module with active-country support for WMS and SaaS workflows.",
|
||||
"keywords": ["countries", "iso-3166", "reference-data", "localisation"],
|
||||
"keywords": [
|
||||
"countries",
|
||||
"iso-3166",
|
||||
"reference-data",
|
||||
"localisation"
|
||||
],
|
||||
"priority": 0,
|
||||
"providers": ["Modules\\Countries\\Providers\\CountriesServiceProvider"],
|
||||
"providers": [
|
||||
"Modules\\Countries\\Providers\\CountriesServiceProvider"
|
||||
],
|
||||
"aliases": {},
|
||||
"files": [],
|
||||
"requires": []
|
||||
|
||||
@@ -232,6 +232,12 @@
|
||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
@if(Route::has('countries.index'))
|
||||
<a href="{{ route('countries.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('countries.*')) is-active @endif" title="{{ __('Countries') }}">
|
||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</nav>
|
||||
|
||||
@@ -259,6 +259,12 @@
|
||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
@if(Route::has('countries.index'))
|
||||
<a href="{{ route('countries.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('countries.*')) is-active @endif" title="{{ __('Countries') }}">
|
||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user