@extends('layouts.superadmin') @section('title', $tenant->name) @section('page-title', $tenant->profile->business_name ?? $tenant->name) @section('content')
← Back @if($tenant->status !== 'suspended')
@csrf
@else
@csrf
@endif
@csrf @method('DELETE')
{{-- Tenant info --}}

Business Info

Business{{ $tenant->profile->business_name ?? '—' }}
GSTIN{{ $tenant->profile->gstin ?? '—' }}
Email{{ $tenant->email }}
Phone{{ $tenant->phone ?? '—' }}
Status {{ ucfirst($tenant->status) }}
Joined{{ $tenant->created_at->format('d M Y') }}
Trial Ends{{ $tenant->trial_ends_at?->format('d M Y') ?? '—' }}
{{-- Stats --}}

Usage Stats

{{ $stats['invoices'] }}

Invoices

{{ $stats['customers'] }}

Customers

{{ $stats['products'] }}

Products

{{-- Change plan --}}

Change Plan

@csrf
{{-- Users --}}

Users ({{ $tenant->users->count() }})

@foreach($tenant->users as $u) @endforeach
Name Email Role Status
{{ $u->name }} {{ $u->email }} {{ $u->role }} {{ $u->is_active ? 'Active':'Inactive' }}
{{-- Modules --}}

Enabled Modules

@foreach($tenant->modules->where('is_enabled',true) as $mod) {{ $mod->module_key }} @endforeach @foreach($tenant->modules->where('is_enabled',false) as $mod) {{ $mod->module_key }} @endforeach
@endsection