@extends('layouts.app') @section('title', 'Tenant 360 - ' . $tenant->company_name) @section('content')
{{ substr($tenant->company_name, 0, 2) }}

{{ $tenant->company_name }}

Health: {{ $health['status'] }} ({{ $health['score'] }}/100)

Tenant ID: #TEN-{{ str_pad($tenant->id, 5, '0', STR_PAD_LEFT) }} • Legal: {{ $tenant->legal_name }} • TRN: {{ $tenant->trn ?? 'N/A' }}

@csrf @if($tenant->status === 'suspended') @else @endif

Company Information

Emirate: {{ $tenant->emirate }}
Company Email: {{ $tenant->email }}
Mobile Phone: {{ $tenant->mobile ?? 'N/A' }}
Trade License: {{ $tenant->trade_license_number ?? 'N/A' }}

Subscription & Limits Overview

Active Plan: {{ $tenant->subscription->plan->name ?? 'Professional' }}
AI Credits Balance: {{ number_format($aiBalance) }} Tokens
WhatsApp Messages: {{ number_format($whatsappBalance) }} Credits

Tenant Custom Feature Overrides

Force Enable or Force Disable features for this specific tenant regardless of plan defaults.

@csrf
@foreach($features as $feature) @php $override = $tenantOverrides->get($feature->id); @endphp
{{ $feature->name }}
@endforeach

Internal Platform Staff Notes (Private)

@csrf
@foreach($notes as $note)

{{ $note->note }}

{{ $note->created_at->diffForHumans() }}
@endforeach

Confirm Tenant Impersonation

You are initiating session access as a tenant user. Every action performed will remain attributed to your admin account in the security audit logs.

@csrf

Manual Credit Adjustment

@csrf
@endsection