{{ __('WiFi sellers') }} @if (session('tenant-saved'))
{{ session('tenant-saved') }}
@endif
{{-- ============================ FORM ============================ --}} @if ($showForm)
{{ $editingId ? __('Edit seller') : __('New seller') }}
.{{ parse_url(config('app.url'), PHP_URL_HOST) }}
{{ __('This becomes their portal address. Changing it later breaks every router already pointed at the old one.') }}

{{ __('Their login') }}

{{ __('Their M-Pesa till') }}

{{ __('Leave blank and their customers pay into the platform till. Fill these in once Safaricom has approved their own shortcode, and money goes straight to them.') }}

@endif {{-- ============================ LIST ============================ --}}
{{ __('Sellers') }}
@forelse ($tenants as $tenant) @empty @endforelse
{{ __('Seller') }} {{ __('Portal') }} {{ __('Till') }} {{ __('Routers') }} {{ __('Plans') }} {{ __('This month') }} {{ __('Status') }} {{ __('Actions') }}
{{ $tenant->displayName() }} {{ $tenant->user?->email ?: __('No login') }} {{ $tenant->portalHost() }} @if ($tenant->mpesaOverrides()) {{ __('Own till') }} @else {{ __('Platform') }} @endif {{ $tenant->routers_count }} {{ $tenant->custom_packages_count }} {{ money($revenue[$tenant->id] ?? 0, 0) }} @php $tone = match ($tenant->status) { 'active' => 'badge-subtle-success', 'pending' => 'badge-subtle-warning', default => 'badge-subtle-danger', }; @endphp {{ ucfirst($tenant->status) }}
{{ __('No WiFi sellers yet. Add one to give them their own branded portal.') }}
@if ($tenants->hasPages())
{{ $tenants->links() }}
@endif
@if ($unassignedPlans > 0)
{{ trans_choice( ':count plan is not assigned to a seller, so it only appears on the platform\'s own portal.|:count plans are not assigned to a seller, so they only appear on the platform\'s own portal.', $unassignedPlans, ['count' => $unassignedPlans]) }}
@endif