Feature Management

Turn public and admin modules on or off. Required dependencies are enforced automatically.

@php $featureLabels = [ 'waters' => 'Waters', 'rules' => 'Rules', 'pricing' => 'Pricing', 'site_map' => 'Site Map', 'news_blog' => 'News / Blog', 'matches' => 'Matches', 'contact_us' => 'Contact Us', 'client_login' => 'Client Login', ]; $featureDescriptions = [ 'waters' => 'Waters listings, water detail pages, and the core water admin area.', 'rules' => 'The public Rules page and any admin controls tied to it.', 'pricing' => 'The public Pricing page and pricing management in admin.', 'site_map' => 'The public site map page and site map admin editor.', 'news_blog' => 'Blog listing, blog posts, and blog management in admin.', 'matches' => 'Public matches pages plus match and league management in admin.', 'contact_us' => 'The Contact Us page and its admin content editor.', 'client_login' => 'Client login, registration, password reset, and client auth entry points.', ]; @endphp
@csrf @method('PUT') @foreach ($features as $feature => $enabled) @php $dependencies = $featureDependencies[$feature] ?? []; $dependencyText = collect($dependencies) ->map(fn (string $dependency): string => strtolower($featureLabels[$dependency] ?? $dependency)) ->implode(', '); @endphp

{{ $featureLabels[$feature] ?? $feature }}

{{ $featureDescriptions[$feature] ?? '' }}

@if ($dependencyText !== '')
If enabled, this will also keep {{ $dependencyText }} enabled.
@endif
@endforeach
@push('scripts') @endpush