@extends('admin.layout') @section('title', $tenant->name) @section('content')

{{ $tenant->name }} {!! status_badge($tenant->status) !!}

{{ __('Subdomain') }}: {{ $tenant->slug }} · {{ __('Database') }}: {{ $tenant->db_name }} · {{ __('Inaisha') }}: {{ optional($tenant->expires_at)->format('d/m/Y') ?? '—' }}

@csrf
@if ($usage)
{{ __('Watumiaji') }}
{{ $usage['users'] }}
{{ __('Mauzo yote') }}
{{ number_format($usage['sales']) }}
{{ __('Wateja') }}
{{ number_format($usage['customers']) }}
{{ __('Mauzo ya mwisho') }}
{{ $usage['last_sale'] ?? '—' }}
@endif
@csrf @method('PUT')

{{ __('Taarifa & WhatsApp') }}

@if ($tenant->logoUrl())@else
{{ $tenant->initials() }}
@endif
{{ __('Link ya kuingia') }}: {{ $tenant->domain ? __('https://') . $tenant->domain : __('https://') . $tenant->slug . '.' . config('tenancy.central_domain') }}
{{ __('Webhook URL') }}: {{ url('webhook/whatsapp/' . $tenant->slug) }}
{{ __('Verify token') }}: {{ $tenant->wa_verify_token }}
@csrf

{{ __('Ongeza usajili (malipo') }})

@foreach ($tenant->payments as $p)
{{ $p->paid_on->format('d/m/Y') }} · {{ __('miezi') }} {{ $p->months }} · {{ $p->reference }}{{ money($p->amount) }}
@endforeach
@csrf

{{ __('Badilisha nenosiri la mmiliki') }}

@if ($tenant->status === 'failed')
@csrf

{{ __('Kuandaa database kulishindwa') }}

{{ $tenant->provision_log }}
@endif
@endsection