@extends('layouts.app') @section('title','Super Admin') @section('content') @php $tenants=\App\Models\Tenant::withCount(['users','invoices','customers'])->latest()->paginate(30); @endphp

Super Admin

{{ \App\Models\Tenant::count() }}
Konton totalt
{{ \App\Models\Tenant::where('is_active',true)->count() }}
Aktiva konton
{{ \App\Models\User::count() }}
Användare totalt
@foreach($tenants as $t) @endforeach
FöretagE-postPlanKunderFakturorStatus
{{ $t->name }}
{{ $t->created_at->format('d.m.Y') }}
{{ $t->email }}{{ ucfirst($t->getCurrentPlan()) }}{{ $t->customers_count }}{{ $t->invoices_count }}{{ $t->is_active?'Aktiv':'Inaktiv' }}
@csrf @method('PATCH')
{{ $tenants->links() }}
@endsection