{{ __('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 or paybill') }}

{{ __('Leave blank and their customers pay into the platform till. Enter their own till or paybill once Safaricom has approved it, and money goes straight to them. No Daraja keys needed — the platform’s app carries the request and their number rides along as the destination.') }}

@if ($mpesa_payment_type === 'paybill')
{{ __('What the customer quotes when paying the paybill.') }}
@endif
@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) }} {{-- A plain form rather than a Livewire action: signing in as somebody else replaces the authenticated user and then leaves for another host, and neither of those survives a Livewire round trip. --}} @if ($tenant->user_id)
@csrf
@endif
{{ __('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