@extends('website_builder.admin.layout') @section('title', 'Website Builder Limits | Super Admin') @section('content')

Website Builder Feature Limits

Configure platform-wide default limits and customize limits for specific white-label agencies.

@if(session('success')) @endif @if($errors->any()) @endif {{-- CARD 1: GLOBAL PLATFORM DEFAULTS (APPLIES TO ALL WHITE-LABELS) --}}
Platform Default Limits (All White-labels)
These default limits automatically apply to every white-label using Website Builder
Global Active
@csrf
Standard default: 100 Services (Max allowed: 100)
Standard default: 100 Projects (Max allowed: 100)
Standard default: 300 Articles (Max allowed: 300)
{{-- CARD 2: SPECIFIC WHITE-LABEL CUSTOM LIMIT OVERRIDES --}}
Custom Limits for Specific White-label
Select a white-label from the dropdown to assign extra / dedicated limits
@if($selectedWhitelabel) @php $extraServ = (int)($selectedWhitelabel->extra_services_limit ?? 0); $extraPort = (int)($selectedWhitelabel->extra_portfolio_limit ?? 0); $extraBlog = (int)($selectedWhitelabel->extra_blog_limit ?? 0); $totServ = $selectedWhitelabel->services_limit; $totPort = $selectedWhitelabel->portfolio_limit; $totBlog = $selectedWhitelabel->blog_limit; @endphp
Selected: {{ $selectedWhitelabel->company_name ?: $selectedWhitelabel->name }}
Subdomain: {{ $selectedWhitelabel->subdomain }} • Email: {{ $selectedWhitelabel->email }}
Total Services: {{ $totServ }} Total Portfolio: {{ $totPort }} Total Blogs: {{ $totBlog }}
@csrf
+
Base default ({{ $defaultServices }}) + Extra = Total (Max extra: 100)
+
Base default ({{ $defaultPortfolio }}) + Extra = Total (Max extra: 100)
+
Base default ({{ $defaultBlogs }}) + Extra = Total (Max extra: 300)
@endif {{-- DIRECTORY TABLE OF ALL WHITE-LABELS AND CURRENT LIMITS --}}
White-labels Overview & Limits Directory
@forelse($whitelabels as $item) @empty @endforelse
White-label Agency Subdomain Services Limit Portfolio Limit Blog Limit Action
{{ $item->company_name ?: ($item->name ?: 'Agency #' . $item->id) }}
{{ $item->email }}
{{ $item->subdomain ?? 'N/A' }} {{ $item->services_limit }} @if(!empty($item->extra_services_limit)) (+{{ $item->extra_services_limit }} extra) @endif {{ $item->portfolio_limit }} @if(!empty($item->extra_portfolio_limit)) (+{{ $item->extra_portfolio_limit }} extra) @endif {{ $item->blog_limit }} @if(!empty($item->extra_blog_limit)) (+{{ $item->extra_blog_limit }} extra) @endif Edit Limit
No white-label agencies found.
@endsection @section('scripts') @endsection