{{-- Simple Icons sprite: used by the network icons on the chips tab. --}} @include('partials.social-icons') @if ($tab === 'categories') @endif {{-- Options for the searchable selectors (rfSS) on the chips tab. Emitted on every load so the variable exists before Alpine initialises the components when the tab opens. --}} @once @endonce {{-- Tab selector --}}
{{-- ══════════════════════════════════════════════════════════════ TAB: CATEGORIES ══════════════════════════════════════════════════════════════ --}} @if ($tab === 'categories')

{{ __('Categories') }}

{{ trans_choice(':count category|:count categories', $categories->total(), ['count' => number_format($categories->total())]) }}
@forelse ($categories as $category) @php $isHidden = in_array($category->id, $hidden, true); $isFeatured = in_array($category->id, $featured, true); $isOwn = (int) $category->panel_id === (int) $ownPanelId; @endphp @empty @endforelse
{{ __('Category') }} {{ __('Network') }} {{ __('Services') }} {{ __('Featured') }} {{ __('On storefront') }} {{ __('Order') }} {{ __('Action') }}
{{ \Illuminate\Support\Str::limit($category->name, 60) }} @if ($isOwn) {{ __('Yours') }} @else {{ __('Shared') }} @endif
@if ($category->description)
{{ \Illuminate\Support\Str::limit($category->description, 80) }}
@endif
{{ $category->platform?->name ?? '—' }} {{ number_format($category->active_services_count) }}
@if ($isOwn) @else {{-- A shared category belongs to the master catalogue: it's curated, not edited. --}} — @endif
@if ($categories->hasPages())
{{ $categories->links() }}
@endif
@endif {{-- ══════════════════════════════════════════════════════════════ TAB: DEFAULT CATEGORY FOR EACH NETWORK Which category opens when a client clicks a social network chip in the store. Same screen and same control the owner has in /admin/categories, scoped to this panel. ══════════════════════════════════════════════════════════════ --}} @if ($tab === 'network_defaults')

{{ __('Network Chip Defaults') }}

{{ __('Choose which category loads when a client clicks each social network chip. This works even when all services are grouped under a single platform (e.g. "Other").') }}

@if ($chipCategories->isEmpty()) @else
@foreach ($networkRegistry as $slug => $meta) @php $currentVal = (int) ($slugDefaults[$slug] ?? 0); // That network's list when it exists; otherwise the full catalogue. $hasPlatformOpts = array_key_exists($slug, $chipCatsBySlug); $chipLimit = $hasPlatformOpts ? 9999 : 20; @endphp
{{-- Network header --}}
@if ($meta['sprite']) @elseif (! empty($meta['lucide'])) @else {{ $meta['mono'] }} @endif {{ $meta['label'] }} @if ($currentVal > 0) @endif
{{-- rfSS searchable selector — the same one the admin uses. --}}
{{-- Trigger --}} {{-- Dropdown --}}
{{-- /rfSS --}}
@endforeach
@endif
@endif {{-- Create / edit own category --}}
@error('name')

{{ $message }}

@enderror

{{ __('Groups the category under a social network in your storefront.') }}