added countries support
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Modules\Countries\Http\Controllers\CountriesController;
|
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('/', [CountriesController::class, 'index'])->name('index');
|
||||||
Route::get('/{country:alpha2}', [CountriesController::class, 'show'])->name('show');
|
Route::get('/{country:alpha2}', [CountriesController::class, 'show'])->name('show');
|
||||||
Route::get('/{country:alpha2}/edit', [CountriesController::class, 'edit'])->name('edit');
|
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
|
module: Countries
|
||||||
current_version: 1.1.0
|
current_version: 1.2.0
|
||||||
entries:
|
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
|
- version: 1.1.0
|
||||||
date: 2026-06-15
|
date: 2026-06-15
|
||||||
type: feature
|
type: feature
|
||||||
@@ -9,3 +17,6 @@ entries:
|
|||||||
date: 2026-06-15
|
date: 2026-06-15
|
||||||
type: initial
|
type: initial
|
||||||
summary: "Initial module skeleton."
|
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",
|
"name": "Countries",
|
||||||
"alias": "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.",
|
"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,
|
"priority": 0,
|
||||||
"providers": ["Modules\\Countries\\Providers\\CountriesServiceProvider"],
|
"providers": [
|
||||||
|
"Modules\\Countries\\Providers\\CountriesServiceProvider"
|
||||||
|
],
|
||||||
"aliases": {},
|
"aliases": {},
|
||||||
"files": [],
|
"files": [],
|
||||||
"requires": []
|
"requires": []
|
||||||
|
|||||||
@@ -232,6 +232,12 @@
|
|||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@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>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -259,6 +259,12 @@
|
|||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@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>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user