@extends('layouts.demo10.base') @section('content') @can('view.tenant')

Tenants

Home / Tenants
{{-- ✅ STEP 1: BANNER goes HERE — above the card/table @if(false && $activeProjectId) @php $activeTenant = $projects->firstWhere('id', $activeProjectId); @endphp @if($activeTenant)
Active Tenant Connected {{ $activeTenant->name }}  ·  DB: {{ $activeTenant->dynamic_database ?? 'N/A' }}  ·  User: {{ $activeTenant->user->name ?? 'N/A' }}
@endif @else @endif --}}
@endcan
{{-- --}} @canany(['edit.projects', 'delete.projects']) @endcanany @foreach($organizations as $organization) @endforeach
Id Organization Name Domain Progress Link Industry Type Time Zone Created AtUpdated At
{{ $organization->id }} {{ $organization->name ?? 'N/A' }} @php $tenantHomeMeta = app(\App\Services\TenantDomainService::class) ->tenantHomeMetaForOrganization($organization); $domainProgressUrl = $tenantHomeMeta['url']; $themeLabel = $tenantHomeMeta['theme_label']; @endphp @if($domainProgressUrl)
{{ $domainProgressUrl }} @if($themeLabel)
{{ $themeLabel }} Theme
@endif
@else No domain assigned @endif
{{ $organization->industry_type ?? 'N/A' }} {{ $organization->timezone ?? 'N/A' }} {{ optional($organization->created_at)->format('M d, Y') ?? 'N/A' }}

Add New Tenant

@csrf

Edit Organization

@csrf

Edit Organization

@endsection @section('scripts') @vite('resources/js/pages/projects.js') @endsection