{{ __('Edit tenant') }}

{{ __('Edit tenant profile') }}
@if ($errors->any()) @endif
@csrf @method('PUT')
getSetting('allow_fixed_voucher', true) ? '1' : '0') == '1' ? 'checked' : '' }}>
getSetting('allow_partial_activation', false) ? '1' : '0') == '1' ? 'checked' : '' }}>
getSetting('use_prorated_validity', true) ? '1' : '0') == '1' ? 'checked' : '' }}>
getSetting('pay_discounted_upfront', false) ? '1' : '0') == '1' ? 'checked' : '' }}>
{{ __('Assign Admin Packages') }}
@forelse($packages as $package)
id, $assignedPackageIds) ? 'checked' : '' }}>
@empty
{{ __('No packages available to assign.') }}
@endforelse
{{ __('Tenant permissions') }}

{{ __('Grant or revoke which features this tenant can access from their portal.') }}

@foreach($resellerPermissions as $groupName => $permissions)
@if($groupName === 'Customer Management') @elseif($groupName === 'Customer Status Control') @elseif($groupName === 'Billing & Payments') @elseif($groupName === 'Reports & Lists') @elseif($groupName === 'Setup & Access') @else @endif {{ $groupName }}
@foreach($permissions as $permName => $permLabel)
@endforeach
@endforeach
{{ __('Cancel') }}
{{ __('Wallet Status') }}

Ksh {{ number_format($reseller->balance, 2) }}

{{ __('Tenant ID:') }} #{{ $reseller->id }}

{{ __('Total Comm. Redeemed') }}
Ksh {{ number_format($totalCommissionEarned, 2) }}
{{ __('Total Comm. Upfront') }}
Ksh {{ number_format($totalUpfrontCommission, 2) }}
{{ __('Total Comm. Paid Out') }}
Ksh {{ number_format($totalCommissionPaid, 2) }}
{{ __('Remaining Balance') }}
Ksh {{ number_format($reseller->balance, 2) }}
{{ __('Recent Activity Logs') }}
@forelse($logs as $log)
{{ $log->description }}
By: {{ $log->causer->name ?? 'System' }} {{ $log->created_at->diffForHumans() }}
@empty
{{ __('No activity logs recorded.') }}
@endforelse
{{ __('Wallet Transaction Ledger (Last 50 Transactions)') }}
@forelse($walletTransactions as $trx) @empty @endforelse
{{ __('Date') }} {{ __('Description') }} {{ __('Reference Type') }} {{ __('Amount') }} {{ __('Type') }}
{{ $trx->created_at->format('Y-m-d H:i:s') }} {{ $trx->description }} @if($trx->reference_type) {{ $trx->reference_type }} (#{{ $trx->reference_id }}) @else - @endif Ksh {{ number_format($trx->amount, 2) }} {{ $trx->type }}
{{ __('No wallet transactions found for this tenant.') }}