{{-- Welcome + base commission — the first thing a reseller sees on a panel that has stock and has never been priced. Rendered from the shell (panel.layouts.app), so it finds the reseller wherever they land: dashboard, My Services or Margins & Pricing. The whole component collapses to an empty root when it does not apply, which is the normal case for every reseller that already sells at a margin — and for the Business panel that has not connected a supplier yet, because a commission is a percentage over the cost of SOMETHING. The example recomputes in Alpine on every keystroke — no round-trip per key — with the SAME arithmetic the server applies (cost × (1 + pct/100)): on the platform catalogue that is PriceResolver::applyResellerMargin at checkout, on their own supply it is the sale price ResellerDefaultMargin::applyToOwnSupply writes when this modal is saved. Either way the number in the modal is the number the client will be charged. --}}
@if ($eligible)
{{-- 1. The welcome: thanks for getting the panel. Two starting points, two copies, and both describe a store that ALREADY has something to sell — without that this modal never renders. With the platform catalogue on, the store is born full. A Business panel fills it themselves: they connect their provider, sync, and that's when the welcome appears, talking about THEIR supply and not a catalogue they chose not to carry. --}}

@if ($usesOwnerCatalog) {{ __('Thank you for getting your own panel. Your storefront is ready and the whole catalogue is already inside it, at your cost.') }} @else {{ __('Thank you for getting your own panel. Your own providers are connected and their services are already in your storefront — right now they sell at exactly what your provider charges you.') }} @endif

{{-- 2. The missing step, explained in two lines. --}}

{{ __('One last step: set your base commission') }}

{{ __('It is the percentage added on top of your cost across the whole catalogue, and that difference is what you earn. Without it every service sells at cost and you make nothing. You can fine-tune single services later in Margins & Pricing.') }}

{{-- 3. The percentage. --}}
{{-- The max isn't cosmetic: without it, the field announces itself as "spinbutton, minimum 0, maximum 0" to a screen reader. It's the SAME ceiling the server validates on save. --}} %
@error('percent')

{{ $message }}

@enderror
{{-- 4. The same percentage, said in money over a real service from the supply the copy above is talking about. --}} @if ($sample)
{{ __('Live example — :service', ['service' => \Illuminate\Support\Str::limit($sample['name'], 44)]) }} @if ($sample['per_1000']) · {{ __('per 1000') }} @endif
{{ __('Your cost') }}
{{ __('You sell at') }}
{{ __('You earn') }}
@endif
@endif