@props([ 'catalog', 'builtIn' => false, 'creditExamples' => [], ]) @php use App\Entitlement\GrantKind; use App\Entitlement\UsageWindow; @endphp

{{ __('dashboard.Identity') }}

@error('title') {{ $message }} @enderror @error('slug') {{ $message }} @enderror @error('summary') {{ $message }} @enderror @error('rank') {{ $message }} @enderror

{{ __('dashboard.New accounts receive this pack.') }}

@error('isDefault') {{ $message }} @enderror

{{ __('dashboard.Locked packs stay on current holders.') }}

@error('isActive') {{ $message }} @enderror

{{ __('dashboard.Pricing') }}

{{ __('dashboard.List prices for monthly and yearly billing. Leave blank if unset.') }}

{{ $this->packCurrencySymbol() }} {{ $this->packCurrency() }} {{ __('dashboard.Billed each month. 0 is free.') }} @error('priceMonthly') {{ $message }} @enderror {{ $this->packCurrencySymbol() }} {{ $this->packCurrency() }} {{ __('dashboard.Billed once a year. Usually a discount vs 12 months.') }} @error('priceYearly') {{ $message }} @enderror

{{ __('dashboard.Grants') }}

@foreach ($catalog as $definition) @php $code = $definition['code']; $title = __('dashboard.'.$definition['title']); @endphp

{{ $title }}

@if ($definition['kind'] === GrantKind::Feature) @error("grants.$code.allowed") {{ $message }} @enderror @if ($code === 'custom_subdomain')

{{ __('dashboard.Choose a readable slug. Without this, Lab assigns a random 12-character address.') }}

@elseif ($code === 'custom_domain')

{{ __('dashboard.Point a domain at a published Lab site.') }}

@endif @else @unless ($grants[$code]['unlimited'] ?? false) @error("grants.$code.ceiling") {{ $message }} @enderror @endunless

@if ($definition['window'] === UsageWindow::Monthly) {{ __('dashboard.Charged from real Lab usage, not per message. Resets each month.') }} @elseif ($definition['code'] === 'projects') {{ __('dashboard.Counts every project you keep.') }} @else {{ __('dashboard.Lifetime quota.') }} @endif

@endif
@endforeach
@if ($creditExamples !== [])

{{ __('dashboard.Example Lab credit charges') }}

{{ __('dashboard.Sample charges from real usage. Use these when setting a monthly ceiling.') }}

{{ __('dashboard.Scenario') }} {{ __('dashboard.Model') }} {{ __('dashboard.In') }} {{ __('dashboard.Out') }} {{ __('dashboard.Credits') }} @foreach ($creditExamples as $example) {{ $example['scenario'] }} {{ $example['model'] }} {{ $example['input'] }} {{ $example['output'] }} {{ number_format((int) $example['credits']) }} @endforeach
@endif