{{-- Group menu — same structure as /admin/settings. Only the owner's groups a reseller can decide on show up here: the ones that belong to the WHOLE SYSTEM (Maintenance, Email SMTP) aren't theirs, and the identity ones that DO have their own screen (Landing, Domains) get linked at the bottom instead of duplicated here. Branding is NO LONGER on that list — it lives here as a group, same as in /admin/settings. --}}
{{-- What gets configured on another screen. Saying so avoids the wild goose chase of looking here for the logo and not finding it. --}}

{{ __('Configured elsewhere') }}

{{-- Active group --}}
{{-- ══════════════════════════ GENERAL ══════════════════════════ --}} @if ($tab === 'website')

{{ __('General') }}

{{ __('The contact details your storefront footer prints, and the timezone every date on your panel is shown in.') }}

@error('name')

{{ $message }}

@enderror
@error('tagline')

{{ $message }}

@enderror
@error('support_email')

{{ $message }}

@enderror

{{ __('Shown in your storefront footer. Leave blank to hide it.') }}

@error('support_phone')

{{ $message }}

@enderror
@error('working_hours')

{{ $message }}

@enderror
{{-- ══════════════════════════ BRANDING ══════════════════════════ --}} {{-- Visual replica of the admin's Branding group (/admin/settings): same colour section (swatch+hex+live samples+"Save colour") and the same 4 Logos & favicon cards, independent per panel. --}} @elseif ($tab === 'branding')

{{ __('Branding') }}

{{ __('Make the panel yours — logo, colour and name applied to your domain.') }}

@unless ($whiteLabelAllowed)
{{ __('White-label branding is not included in your current plan. Upgrade to customise your storefront.') }}
@endunless
{{-- ── Brand colour ── --}}
{{ __('Brand colour') }}
{{ __('Primary button') }} {{ __('Badge') }}
@error('primary_color')

{{ $message }}

@enderror

{{ __('The whole panel re-themes from this one colour, in light and dark mode.') }}

{{-- ── Logos & favicon ── --}}
{{ __('Logos & favicon') }}

{{ __('Upload a favicon and logos for light and dark mode. PNG, SVG or WebP recommended.') }}

{{-- Favicon / collapsed icon --}}
32×32 px

{{ __('Favicon') }}

{{ __('Shown in browser tabs, bookmarks, and as the collapsed sidebar icon.') }} {{ __('ICO, PNG or SVG, 32×32 px, max 256 KB.') }}

@error('favicon')

{{ $message }}

@enderror @if ($panel->branding['favicon'] ?? null) @endif
{{-- Logo Dark (for light mode) --}}
☀️ {{ __('Light mode') }}

{{ __('Logo Dark') }}

{{ __('Dark-colored logo for light/day mode backgrounds (sidebar, login, storefront).') }} {{ __('PNG/SVG/WebP, recommended 300×60 px, max 1 MB.') }}

@error('logo_dark')

{{ $message }}

@enderror @if ($panel->branding['logo_dark'] ?? $panel->branding['logo'] ?? null) @endif
{{-- Logo Light (for dark mode) --}}
🌙 {{ __('Dark mode') }}

{{ __('Logo Light') }}

{{ __('Light-colored logo for dark/night mode backgrounds.') }} {{ __('PNG/SVG/WebP, recommended 300×60 px, max 1 MB.') }}

@error('logo_light')

{{ $message }}

@enderror @if ($panel->branding['logo_light'] ?? null) @endif
{{-- ── Web / landing logo ── --}}

{{ __('Logo on website / landing page') }}

{{ __('The landing page uses a single design — choose which variant looks best against your selected skin.') }}

{{-- ═════════════════════ SOCIAL LOGIN (oauth) ═════════════════════ --}} @elseif ($tab === 'oauth')

{{ __('Social login') }}

{{ __('Let users sign in with Google or Facebook. Create an app in each provider and paste its credentials. Secrets are stored encrypted and never shown again.') }}

{{-- The SAME form the owner uses: the ManagesSocialLogin trait was already wired into this component (load and save), but the screen never rendered it — a whole capability that couldn't be used. --}} @include('partials.social-login-settings')
{{-- ═══════════════════ SECURITY & ACCESS ═══════════════════ --}} @elseif ($tab === 'security')

{{ __('Bot protection (reCAPTCHA)') }}

{{ __('Protect the sign-in and sign-up forms of your own storefront.') }}

@if ($recaptcha_enabled) {{-- The keys HAVE to be theirs: a Google site key is tied to its domains, so the owner's can't validate on this store — and an invalid key paints a red error on the sign-in page. With no keys, no challenge is shown at all. --}}
{{ __('Create your own keys at google.com/recaptcha and register YOUR domain there — keys are tied to the domains you list. The version below must match the key type or Google answers "Invalid key type".') }}

{{ $recaptcha_version === 'v3' ? __('Nothing is shown to your customer; Google scores the visit and anything under 0.5 is refused.') : __('Your customer ticks a checkbox before signing in.') }}

@error('recaptcha_site_key')

{{ $message }}

@enderror
@error('recaptcha_secret_key')

{{ $message }}

@enderror

{{ __('Stored encrypted and never sent back to the browser.') }}

@if ($recaptcha_secret_saved || $recaptcha_site_key !== '') @endif
@else

{{ __('Off — your storefront shows no challenge and sign-in works normally.') }}

@endif {{-- ═══════════════════════ CURRENCY ═══════════════════════ --}} @elseif ($tab === 'currency')

{{ __('Currency') }}

{{ __('Every wallet, order and ledger row on your panel is stated in this currency, and nothing converts them — so it is frozen once money has moved.') }}

@error('base_currency')

{{ $message }}

@enderror

{{ __('The currency your clients are billed in.') }}

{{-- ════════════════════ DEFAULT SETTING ════════════════════ --}} @elseif ($tab === 'defaults')

{{ __('Default setting') }}

{{ __('How your storefront behaves for a visitor who has not signed in yet.') }}

{{ __('Public catalogue') }}
{{ __('Let visitors browse services before signing in.') }}
{{ __('Disable new signups') }}
{{ __('New clients can no longer register on your panel (email or social).') }}
@endif {{-- Social login and Branding save with their own buttons (oauth because of write-only credentials; branding because they're two independent actions — colour and logos), so only the generic save for the rest of the groups goes here. --}} @if ($tab !== 'oauth' && $tab !== 'branding')
@endif