import React, { ReactElement, useEffect } from 'react';
import Head from 'next/head'
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import dayjs from "dayjs";
import {useAppDispatch, useAppSelector} from "../../stores/hooks";
import {useRouter} from "next/router";
import { fetch } from '../../stores/organizations/organizationsSlice'
import {saveFile} from "../../helpers/fileSaver";
import dataFormatter from '../../helpers/dataFormatter';
import ImageField from "../../components/ImageField";
import LayoutAuthenticated from "../../layouts/Authenticated";
import {getPageTitle} from "../../config";
import SectionTitleLineWithButton from "../../components/SectionTitleLineWithButton";
import SectionMain from "../../components/SectionMain";
import CardBox from "../../components/CardBox";
import BaseButton from "../../components/BaseButton";
import BaseDivider from "../../components/BaseDivider";
import {mdiChartTimelineVariant} from "@mdi/js";
import {SwitchField} from "../../components/SwitchField";
import FormField from "../../components/FormField";

import {hasPermission} from "../../helpers/userPermissions";


const OrganizationsView = () => {
    const router = useRouter()
    const dispatch = useAppDispatch()
    const { organizations } = useAppSelector((state) => state.organizations)
    
    const { currentUser } = useAppSelector((state) => state.auth);
    

    const { id } = router.query;
    
    function removeLastCharacter(str) {
      console.log(str,`str`)
      return str.slice(0, -1);
    }

    useEffect(() => {
        dispatch(fetch({ id }));
    }, [dispatch, id]);


    return (
      <>
          <Head>
              <title>{getPageTitle('View organizations')}</title>
          </Head>
          <SectionMain>
            <SectionTitleLineWithButton icon={mdiChartTimelineVariant} title={removeLastCharacter('View organizations')} main>
                <BaseButton
                  color='info'
                  label='Edit'
                  href={`/organizations/organizations-edit/?id=${id}`}
                />
            </SectionTitleLineWithButton>
            <CardBox>
            

              
                <div className={'mb-4'}>
                    <p className={'block font-bold mb-2'}>Name</p>
                    <p>{organizations?.name}</p>
                </div>
              

              

              

              

              

              

              

              

              

              

              

              

              
              

                
                <>
                    <p className={'block font-bold mb-2'}>Users Organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                <th>First Name</th>
                                
                                
                                
                                <th>Last Name</th>
                                
                                
                                
                                <th>Phone Number</th>
                                
                                
                                
                                <th>E-Mail</th>
                                
                                
                                
                                <th>Disabled</th>
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.users_organizations && Array.isArray(organizations.users_organizations) &&
                              organizations.users_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/users/users-view/?id=${item.id}`)}>
                                    
                                    
                                    <td data-label="firstName">
                                        { item.firstName }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="lastName">
                                        { item.lastName }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="phoneNumber">
                                        { item.phoneNumber }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="email">
                                        { item.email }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="disabled">
                                        { dataFormatter.booleanFormatter(item.disabled) }
                                    </td>
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.users_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                
                
                
                <>
                    <p className={'block font-bold mb-2'}>Tenants organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                <th>TenantName</th>
                                
                                
                                
                                <th>Slug</th>
                                
                                
                                
                                <th>PlanTier</th>
                                
                                
                                
                                <th>TenantStatus</th>
                                
                                
                                
                                <th>ActivatedAt</th>
                                
                                
                                
                                <th>SuspendedAt</th>
                                
                                
                                
                                <th>DefaultRegion</th>
                                
                                
                                
                                <th>E2EEDefaultEnabled</th>
                                
                                
                                
                                <th>EducationModuleEnabled</th>
                                
                                
                                
                                <th>MarketplaceEnabled</th>
                                
                                
                                
                                <th>DataRetentionPolicy</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.tenants_organizations && Array.isArray(organizations.tenants_organizations) &&
                              organizations.tenants_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/tenants/tenants-view/?id=${item.id}`)}>
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="slug">
                                        { item.slug }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="plan_tier">
                                        { item.plan_tier }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="tenant_status">
                                        { item.tenant_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="activated_at">
                                        { dataFormatter.dateTimeFormatter(item.activated_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="suspended_at">
                                        { dataFormatter.dateTimeFormatter(item.suspended_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="default_region">
                                        { item.default_region }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="e2ee_default_enabled">
                                        { dataFormatter.booleanFormatter(item.e2ee_default_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="education_module_enabled">
                                        { dataFormatter.booleanFormatter(item.education_module_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="marketplace_enabled">
                                        { dataFormatter.booleanFormatter(item.marketplace_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="data_retention_policy">
                                        { item.data_retention_policy }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.tenants_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Departments Organization</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>DepartmentName</th>
                                
                                
                                
                                <th>PathKey</th>
                                
                                
                                
                                <th>DepartmentStatus</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.departments_organization && Array.isArray(organizations.departments_organization) &&
                              organizations.departments_organization.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/departments/departments-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="path_key">
                                        { item.path_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="department_status">
                                        { item.department_status }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.departments_organization?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Teams Organization</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>TeamName</th>
                                
                                
                                
                                <th>Slug</th>
                                
                                
                                
                                <th>TeamStatus</th>
                                
                                
                                
                                <th>AlwaysOnRoomEnabled</th>
                                
                                
                                
                                <th>AlwaysOnStateRetentionDays</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.teams_organization && Array.isArray(organizations.teams_organization) &&
                              organizations.teams_organization.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/teams/teams-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="slug">
                                        { item.slug }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="team_status">
                                        { item.team_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="always_on_room_enabled">
                                        { dataFormatter.booleanFormatter(item.always_on_room_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="always_on_state_retention_days">
                                        { item.always_on_state_retention_days }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.teams_organization?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Memberships organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>Role</th>
                                
                                
                                
                                <th>MembershipStatus</th>
                                
                                
                                
                                <th>JoinedAt</th>
                                
                                
                                
                                <th>InvitedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.memberships_organizations && Array.isArray(organizations.memberships_organizations) &&
                              organizations.memberships_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/memberships/memberships-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="role">
                                        { item.role }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="membership_status">
                                        { item.membership_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="joined_at">
                                        { dataFormatter.dateTimeFormatter(item.joined_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="invited_at">
                                        { dataFormatter.dateTimeFormatter(item.invited_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.memberships_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Identity_providers organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>ProviderType</th>
                                
                                
                                
                                <th>ProviderName</th>
                                
                                
                                
                                <th>IssuerURL</th>
                                
                                
                                
                                <th>ClientID</th>
                                
                                
                                
                                <th>SSOMetadataURL</th>
                                
                                
                                
                                <th>JITProvisioningEnabled</th>
                                
                                
                                
                                <th>SCIMEnabled</th>
                                
                                
                                
                                <th>IdPStatus</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.identity_providers_organizations && Array.isArray(organizations.identity_providers_organizations) &&
                              organizations.identity_providers_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/identity_providers/identity_providers-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="provider_type">
                                        { item.provider_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="issuer_url">
                                        { item.issuer_url }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="client_id">
                                        { item.client_id }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="sso_metadata_url">
                                        { item.sso_metadata_url }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="jit_provisioning_enabled">
                                        { dataFormatter.booleanFormatter(item.jit_provisioning_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="scim_enabled">
                                        { dataFormatter.booleanFormatter(item.scim_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="idp_status">
                                        { item.idp_status }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.identity_providers_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>User_identities organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>ExternalSubject</th>
                                
                                
                                
                                <th>ExternalEmail</th>
                                
                                
                                
                                <th>DisplayName</th>
                                
                                
                                
                                <th>LinkedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.user_identities_organizations && Array.isArray(organizations.user_identities_organizations) &&
                              organizations.user_identities_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/user_identities/user_identities-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="external_subject">
                                        { item.external_subject }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="external_email">
                                        { item.external_email }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="display_name">
                                        { item.display_name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="linked_at">
                                        { dataFormatter.dateTimeFormatter(item.linked_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.user_identities_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Policy_rules organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>PolicyName</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                <th>PolicyScope</th>
                                
                                
                                
                                <th>RegoModule</th>
                                
                                
                                
                                <th>PolicyStatus</th>
                                
                                
                                
                                <th>EffectiveFrom</th>
                                
                                
                                
                                <th>EffectiveUntil</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.policy_rules_organizations && Array.isArray(organizations.policy_rules_organizations) &&
                              organizations.policy_rules_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/policy_rules/policy_rules-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="policy_scope">
                                        { item.policy_scope }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rego_module">
                                        { item.rego_module }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="policy_status">
                                        { item.policy_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="effective_from">
                                        { dataFormatter.dateTimeFormatter(item.effective_from) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="effective_until">
                                        { dataFormatter.dateTimeFormatter(item.effective_until) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.policy_rules_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Kms_configs organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>KMSType</th>
                                
                                
                                
                                <th>KMSName</th>
                                
                                
                                
                                <th>KeyURI</th>
                                
                                
                                
                                <th>KMSStatus</th>
                                
                                
                                
                                <th>LastRotatedAt</th>
                                
                                
                                
                                <th>AutoRotateEnabled</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.kms_configs_organizations && Array.isArray(organizations.kms_configs_organizations) &&
                              organizations.kms_configs_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/kms_configs/kms_configs-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="kms_type">
                                        { item.kms_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="key_uri">
                                        { item.key_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="kms_status">
                                        { item.kms_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_rotated_at">
                                        { dataFormatter.dateTimeFormatter(item.last_rotated_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_rotate_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_rotate_enabled) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.kms_configs_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Conference_templates organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>TemplateName</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                <th>E2EEEnabled</th>
                                
                                
                                
                                <th>LobbyEnabled</th>
                                
                                
                                
                                <th>RecordingEnabled</th>
                                
                                
                                
                                <th>TranscriptionEnabled</th>
                                
                                
                                
                                <th>CanvasEnabled</th>
                                
                                
                                
                                <th>DefaultLayoutMode</th>
                                
                                
                                
                                <th>MaxParticipants</th>
                                
                                
                                
                                <th>TemplateStatus</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.conference_templates_organizations && Array.isArray(organizations.conference_templates_organizations) &&
                              organizations.conference_templates_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/conference_templates/conference_templates-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="e2ee_enabled">
                                        { dataFormatter.booleanFormatter(item.e2ee_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="lobby_enabled">
                                        { dataFormatter.booleanFormatter(item.lobby_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="recording_enabled">
                                        { dataFormatter.booleanFormatter(item.recording_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="transcription_enabled">
                                        { dataFormatter.booleanFormatter(item.transcription_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="canvas_enabled">
                                        { dataFormatter.booleanFormatter(item.canvas_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="default_layout_mode">
                                        { item.default_layout_mode }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="max_participants">
                                        { item.max_participants }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="template_status">
                                        { item.template_status }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.conference_templates_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Rooms organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>RoomName</th>
                                
                                
                                
                                <th>RoomKey</th>
                                
                                
                                
                                <th>RoomType</th>
                                
                                
                                
                                <th>AccessLevel</th>
                                
                                
                                
                                <th>E2EEEnabled</th>
                                
                                
                                
                                <th>RecordingEnabled</th>
                                
                                
                                
                                <th>TranscriptionEnabled</th>
                                
                                
                                
                                <th>CanvasEnabled</th>
                                
                                
                                
                                <th>ChatEnabled</th>
                                
                                
                                
                                <th>IsPersistent</th>
                                
                                
                                
                                <th>LastActiveAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.rooms_organizations && Array.isArray(organizations.rooms_organizations) &&
                              organizations.rooms_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/rooms/rooms-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="room_key">
                                        { item.room_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="room_type">
                                        { item.room_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="access_level">
                                        { item.access_level }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="e2ee_enabled">
                                        { dataFormatter.booleanFormatter(item.e2ee_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="recording_enabled">
                                        { dataFormatter.booleanFormatter(item.recording_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="transcription_enabled">
                                        { dataFormatter.booleanFormatter(item.transcription_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="canvas_enabled">
                                        { dataFormatter.booleanFormatter(item.canvas_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="chat_enabled">
                                        { dataFormatter.booleanFormatter(item.chat_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_persistent">
                                        { dataFormatter.booleanFormatter(item.is_persistent) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_active_at">
                                        { dataFormatter.dateTimeFormatter(item.last_active_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.rooms_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Room_invitations organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>InviteeEmail</th>
                                
                                
                                
                                <th>InviteCode</th>
                                
                                
                                
                                <th>InviteRole</th>
                                
                                
                                
                                <th>InvitationStatus</th>
                                
                                
                                
                                <th>ExpiresAt</th>
                                
                                
                                
                                <th>AcceptedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.room_invitations_organizations && Array.isArray(organizations.room_invitations_organizations) &&
                              organizations.room_invitations_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/room_invitations/room_invitations-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="invitee_email">
                                        { item.invitee_email }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="invite_code">
                                        { item.invite_code }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="invite_role">
                                        { item.invite_role }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="invitation_status">
                                        { item.invitation_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="expires_at">
                                        { dataFormatter.dateTimeFormatter(item.expires_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="accepted_at">
                                        { dataFormatter.dateTimeFormatter(item.accepted_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.room_invitations_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Conferences organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>ConferenceKey</th>
                                
                                
                                
                                <th>ConferenceType</th>
                                
                                
                                
                                <th>ConferenceStatus</th>
                                
                                
                                
                                <th>ScheduledStartAt</th>
                                
                                
                                
                                <th>ScheduledEndAt</th>
                                
                                
                                
                                <th>ActualStartAt</th>
                                
                                
                                
                                <th>ActualEndAt</th>
                                
                                
                                
                                <th>E2EEEnabled</th>
                                
                                
                                
                                <th>ParticipantLimit</th>
                                
                                
                                
                                <th>RegionPreference</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.conferences_organizations && Array.isArray(organizations.conferences_organizations) &&
                              organizations.conferences_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/conferences/conferences-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="conference_key">
                                        { item.conference_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="conference_type">
                                        { item.conference_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="conference_status">
                                        { item.conference_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="scheduled_start_at">
                                        { dataFormatter.dateTimeFormatter(item.scheduled_start_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="scheduled_end_at">
                                        { dataFormatter.dateTimeFormatter(item.scheduled_end_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="actual_start_at">
                                        { dataFormatter.dateTimeFormatter(item.actual_start_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="actual_end_at">
                                        { dataFormatter.dateTimeFormatter(item.actual_end_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="e2ee_enabled">
                                        { dataFormatter.booleanFormatter(item.e2ee_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="participant_limit">
                                        { item.participant_limit }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="region_preference">
                                        { item.region_preference }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.conferences_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Participants organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>DisplayName</th>
                                
                                
                                
                                <th>ParticipantRole</th>
                                
                                
                                
                                <th>JoinStatus</th>
                                
                                
                                
                                <th>JoinedAt</th>
                                
                                
                                
                                <th>LeftAt</th>
                                
                                
                                
                                <th>IsMuted</th>
                                
                                
                                
                                <th>IsVideoEnabled</th>
                                
                                
                                
                                <th>IsScreenSharing</th>
                                
                                
                                
                                <th>NetworkScore</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.participants_organizations && Array.isArray(organizations.participants_organizations) &&
                              organizations.participants_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/participants/participants-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="display_name">
                                        { item.display_name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="participant_role">
                                        { item.participant_role }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="join_status">
                                        { item.join_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="joined_at">
                                        { dataFormatter.dateTimeFormatter(item.joined_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="left_at">
                                        { dataFormatter.dateTimeFormatter(item.left_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_muted">
                                        { dataFormatter.booleanFormatter(item.is_muted) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_video_enabled">
                                        { dataFormatter.booleanFormatter(item.is_video_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_screen_sharing">
                                        { dataFormatter.booleanFormatter(item.is_screen_sharing) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="network_score">
                                        { item.network_score }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.participants_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Conference_nodes organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                <th>NodeName</th>
                                
                                
                                
                                <th>NodeType</th>
                                
                                
                                
                                <th>Region</th>
                                
                                
                                
                                <th>Zone</th>
                                
                                
                                
                                <th>Endpoint</th>
                                
                                
                                
                                <th>HealthStatus</th>
                                
                                
                                
                                <th>LastHeartbeatAt</th>
                                
                                
                                
                                <th>CPUUtilization</th>
                                
                                
                                
                                <th>MemoryUtilization</th>
                                
                                
                                
                                <th>CurrentConferences</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.conference_nodes_organizations && Array.isArray(organizations.conference_nodes_organizations) &&
                              organizations.conference_nodes_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/conference_nodes/conference_nodes-view/?id=${item.id}`)}>
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="node_type">
                                        { item.node_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="region">
                                        { item.region }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="zone">
                                        { item.zone }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="endpoint">
                                        { item.endpoint }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="health_status">
                                        { item.health_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_heartbeat_at">
                                        { dataFormatter.dateTimeFormatter(item.last_heartbeat_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="cpu_utilization">
                                        { item.cpu_utilization }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="memory_utilization">
                                        { item.memory_utilization }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="current_conferences">
                                        { item.current_conferences }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.conference_nodes_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Sfu_allocations organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>AllocationRole</th>
                                
                                
                                
                                <th>AllocatedAt</th>
                                
                                
                                
                                <th>ReleasedAt</th>
                                
                                
                                
                                <th>AllocationStatus</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.sfu_allocations_organizations && Array.isArray(organizations.sfu_allocations_organizations) &&
                              organizations.sfu_allocations_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/sfu_allocations/sfu_allocations-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="allocation_role">
                                        { item.allocation_role }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="allocated_at">
                                        { dataFormatter.dateTimeFormatter(item.allocated_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="released_at">
                                        { dataFormatter.dateTimeFormatter(item.released_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="allocation_status">
                                        { item.allocation_status }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.sfu_allocations_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Breakout_rooms organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>BreakoutRoomName</th>
                                
                                
                                
                                <th>BreakoutKey</th>
                                
                                
                                
                                <th>BreakoutStatus</th>
                                
                                
                                
                                <th>TargetParticipants</th>
                                
                                
                                
                                <th>OpenedAt</th>
                                
                                
                                
                                <th>ClosedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.breakout_rooms_organizations && Array.isArray(organizations.breakout_rooms_organizations) &&
                              organizations.breakout_rooms_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/breakout_rooms/breakout_rooms-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="breakout_key">
                                        { item.breakout_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="breakout_status">
                                        { item.breakout_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="target_participants">
                                        { item.target_participants }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="opened_at">
                                        { dataFormatter.dateTimeFormatter(item.opened_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="closed_at">
                                        { dataFormatter.dateTimeFormatter(item.closed_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.breakout_rooms_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Chat_channels organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>ChannelName</th>
                                
                                
                                
                                <th>ChannelType</th>
                                
                                
                                
                                <th>IsModerated</th>
                                
                                
                                
                                <th>LastMessageAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.chat_channels_organizations && Array.isArray(organizations.chat_channels_organizations) &&
                              organizations.chat_channels_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/chat_channels/chat_channels-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="channel_type">
                                        { item.channel_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_moderated">
                                        { dataFormatter.booleanFormatter(item.is_moderated) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_message_at">
                                        { dataFormatter.dateTimeFormatter(item.last_message_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.chat_channels_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Chat_messages organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>MessageType</th>
                                
                                
                                
                                <th>Body</th>
                                
                                
                                
                                <th>SentAt</th>
                                
                                
                                
                                <th>IsDeleted</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.chat_messages_organizations && Array.isArray(organizations.chat_messages_organizations) &&
                              organizations.chat_messages_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/chat_messages/chat_messages-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="message_type">
                                        { item.message_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="body">
                                        { item.body }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="sent_at">
                                        { dataFormatter.dateTimeFormatter(item.sent_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="is_deleted">
                                        { dataFormatter.booleanFormatter(item.is_deleted) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.chat_messages_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Files organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>FileName</th>
                                
                                
                                
                                <th>FileKind</th>
                                
                                
                                
                                <th>Size(MB)</th>
                                
                                
                                
                                <th>MIMEType</th>
                                
                                
                                
                                <th>StorageURI</th>
                                
                                
                                
                                <th>ChecksumSHA256</th>
                                
                                
                                
                                <th>ScanStatus</th>
                                
                                
                                
                                <th>UploadedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.files_organizations && Array.isArray(organizations.files_organizations) &&
                              organizations.files_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/files/files-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="file_name">
                                        { item.file_name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="file_kind">
                                        { item.file_kind }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="size_mb">
                                        { item.size_mb }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="mime_type">
                                        { item.mime_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="storage_uri">
                                        { item.storage_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="checksum_sha256">
                                        { item.checksum_sha256 }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="scan_status">
                                        { item.scan_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="uploaded_at">
                                        { dataFormatter.dateTimeFormatter(item.uploaded_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.files_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Room_files organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                
                                
                                <th>Visibility</th>
                                
                                
                                
                                <th>AddedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.room_files_organizations && Array.isArray(organizations.room_files_organizations) &&
                              organizations.room_files_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/room_files/room_files-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="visibility">
                                        { item.visibility }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="added_at">
                                        { dataFormatter.dateTimeFormatter(item.added_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.room_files_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Recordings organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>RecordingStatus</th>
                                
                                
                                
                                <th>StartedAt</th>
                                
                                
                                
                                <th>EndedAt</th>
                                
                                
                                
                                <th>Duration(Minutes)</th>
                                
                                
                                
                                <th>StorageURI</th>
                                
                                
                                
                                
                                
                                <th>FailureReason</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.recordings_organizations && Array.isArray(organizations.recordings_organizations) &&
                              organizations.recordings_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/recordings/recordings-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="recording_status">
                                        { item.recording_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="started_at">
                                        { dataFormatter.dateTimeFormatter(item.started_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="ended_at">
                                        { dataFormatter.dateTimeFormatter(item.ended_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="duration_minutes">
                                        { item.duration_minutes }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="storage_uri">
                                        { item.storage_uri }
                                    </td>
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="failure_reason">
                                        { item.failure_reason }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.recordings_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Transcripts organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>TranscriptStatus</th>
                                
                                
                                
                                <th>LanguageCode</th>
                                
                                
                                
                                <th>Content</th>
                                
                                
                                
                                <th>GeneratedAt</th>
                                
                                
                                
                                <th>OptIn</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.transcripts_organizations && Array.isArray(organizations.transcripts_organizations) &&
                              organizations.transcripts_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/transcripts/transcripts-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="transcript_status">
                                        { item.transcript_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="language_code">
                                        { item.language_code }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="content">
                                        { item.content }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="generated_at">
                                        { dataFormatter.dateTimeFormatter(item.generated_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="opt_in">
                                        { dataFormatter.booleanFormatter(item.opt_in) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.transcripts_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Canvas_documents organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>CanvasName</th>
                                
                                
                                
                                <th>CanvasStatus</th>
                                
                                
                                
                                <th>LastEditedAt</th>
                                
                                
                                
                                <th>SnapshotURI</th>
                                
                                
                                
                                <th>OfflineEnabled</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.canvas_documents_organizations && Array.isArray(organizations.canvas_documents_organizations) &&
                              organizations.canvas_documents_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/canvas_documents/canvas_documents-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="canvas_status">
                                        { item.canvas_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_edited_at">
                                        { dataFormatter.dateTimeFormatter(item.last_edited_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="snapshot_uri">
                                        { item.snapshot_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="offline_enabled">
                                        { dataFormatter.booleanFormatter(item.offline_enabled) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.canvas_documents_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Canvas_events organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>EventType</th>
                                
                                
                                
                                <th>EventAt</th>
                                
                                
                                
                                <th>Payload</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.canvas_events_organizations && Array.isArray(organizations.canvas_events_organizations) &&
                              organizations.canvas_events_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/canvas_events/canvas_events-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="event_type">
                                        { item.event_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="event_at">
                                        { dataFormatter.dateTimeFormatter(item.event_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="payload">
                                        { item.payload }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.canvas_events_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Layout_models organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>ModelName</th>
                                
                                
                                
                                <th>ModelType</th>
                                
                                
                                
                                <th>DeploymentStage</th>
                                
                                
                                
                                <th>ModelVersion</th>
                                
                                
                                
                                <th>ArtifactURI</th>
                                
                                
                                
                                <th>TrainedAt</th>
                                
                                
                                
                                <th>DeployedAt</th>
                                
                                
                                
                                <th>RollbackTriggerRate</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.layout_models_organizations && Array.isArray(organizations.layout_models_organizations) &&
                              organizations.layout_models_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/layout_models/layout_models-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="model_type">
                                        { item.model_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="deployment_stage">
                                        { item.deployment_stage }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="model_version">
                                        { item.model_version }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="artifact_uri">
                                        { item.artifact_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="trained_at">
                                        { dataFormatter.dateTimeFormatter(item.trained_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="deployed_at">
                                        { dataFormatter.dateTimeFormatter(item.deployed_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rollback_trigger_rate">
                                        { item.rollback_trigger_rate }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.layout_models_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Layout_preferences organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>PreferenceKey</th>
                                
                                
                                
                                <th>Value</th>
                                
                                
                                
                                <th>UpdatedAt(Local)</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.layout_preferences_organizations && Array.isArray(organizations.layout_preferences_organizations) &&
                              organizations.layout_preferences_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/layout_preferences/layout_preferences-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="preference_key">
                                        { item.preference_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="value">
                                        { item.value }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="updated_at_local">
                                        { dataFormatter.dateTimeFormatter(item.updated_at_local) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.layout_preferences_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Federated_learning_updates organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>UpdateStatus</th>
                                
                                
                                
                                <th>ReceivedAt</th>
                                
                                
                                
                                <th>PrivacyBudget</th>
                                
                                
                                
                                <th>GradientBlobURI</th>
                                
                                
                                
                                <th>ValidationNotes</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.federated_learning_updates_organizations && Array.isArray(organizations.federated_learning_updates_organizations) &&
                              organizations.federated_learning_updates_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/federated_learning_updates/federated_learning_updates-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="update_status">
                                        { item.update_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="received_at">
                                        { dataFormatter.dateTimeFormatter(item.received_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="privacy_budget">
                                        { item.privacy_budget }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="gradient_blob_uri">
                                        { item.gradient_blob_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="validation_notes">
                                        { item.validation_notes }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.federated_learning_updates_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Ai_companion_sessions organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>CompanionStatus</th>
                                
                                
                                
                                <th>StartedAt</th>
                                
                                
                                
                                <th>EndedAt</th>
                                
                                
                                
                                <th>AutoActionsEnabled</th>
                                
                                
                                
                                <th>SystemPromptVersion</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.ai_companion_sessions_organizations && Array.isArray(organizations.ai_companion_sessions_organizations) &&
                              organizations.ai_companion_sessions_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/ai_companion_sessions/ai_companion_sessions-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="companion_status">
                                        { item.companion_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="started_at">
                                        { dataFormatter.dateTimeFormatter(item.started_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="ended_at">
                                        { dataFormatter.dateTimeFormatter(item.ended_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_actions_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_actions_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="system_prompt_version">
                                        { item.system_prompt_version }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.ai_companion_sessions_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Knowledge_graph_items organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>ItemType</th>
                                
                                
                                
                                <th>Title</th>
                                
                                
                                
                                <th>Details</th>
                                
                                
                                
                                <th>Importance</th>
                                
                                
                                
                                <th>ItemStatus</th>
                                
                                
                                
                                <th>CapturedAt</th>
                                
                                
                                
                                <th>DueAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.knowledge_graph_items_organizations && Array.isArray(organizations.knowledge_graph_items_organizations) &&
                              organizations.knowledge_graph_items_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/knowledge_graph_items/knowledge_graph_items-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="item_type">
                                        { item.item_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="title">
                                        { item.title }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="details">
                                        { item.details }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="importance">
                                        { item.importance }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="item_status">
                                        { item.item_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="captured_at">
                                        { dataFormatter.dateTimeFormatter(item.captured_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="due_at">
                                        { dataFormatter.dateTimeFormatter(item.due_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.knowledge_graph_items_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>External_integrations organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>IntegrationType</th>
                                
                                
                                
                                <th>IntegrationName</th>
                                
                                
                                
                                <th>IntegrationStatus</th>
                                
                                
                                
                                <th>AuthReference</th>
                                
                                
                                
                                <th>AutoCreateTasksEnabled</th>
                                
                                
                                
                                <th>AutoScheduleFollowupsEnabled</th>
                                
                                
                                
                                <th>LastSyncAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.external_integrations_organizations && Array.isArray(organizations.external_integrations_organizations) &&
                              organizations.external_integrations_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/external_integrations/external_integrations-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="integration_type">
                                        { item.integration_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="integration_status">
                                        { item.integration_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auth_reference">
                                        { item.auth_reference }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_create_tasks_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_create_tasks_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_schedule_followups_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_schedule_followups_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="last_sync_at">
                                        { dataFormatter.dateTimeFormatter(item.last_sync_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.external_integrations_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Tasks organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>ExternalTaskKey</th>
                                
                                
                                
                                <th>Title</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                <th>TaskStatus</th>
                                
                                
                                
                                <th>CreatedAt(Remote)</th>
                                
                                
                                
                                <th>FailureReason</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.tasks_organizations && Array.isArray(organizations.tasks_organizations) &&
                              organizations.tasks_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/tasks/tasks-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="external_task_key">
                                        { item.external_task_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="title">
                                        { item.title }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="task_status">
                                        { item.task_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="created_at_remote">
                                        { dataFormatter.dateTimeFormatter(item.created_at_remote) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="failure_reason">
                                        { item.failure_reason }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.tasks_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Courses Organization</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>CourseName</th>
                                
                                
                                
                                <th>CourseCode</th>
                                
                                
                                
                                <th>CourseStatus</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.courses_organization && Array.isArray(organizations.courses_organization) &&
                              organizations.courses_organization.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/courses/courses-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="course_code">
                                        { item.course_code }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="course_status">
                                        { item.course_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.courses_organization?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Course_enrollments organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>EnrollmentRole</th>
                                
                                
                                
                                <th>EnrollmentStatus</th>
                                
                                
                                
                                <th>EnrolledAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.course_enrollments_organizations && Array.isArray(organizations.course_enrollments_organizations) &&
                              organizations.course_enrollments_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/course_enrollments/course_enrollments-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="enrollment_role">
                                        { item.enrollment_role }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="enrollment_status">
                                        { item.enrollment_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="enrolled_at">
                                        { dataFormatter.dateTimeFormatter(item.enrolled_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.course_enrollments_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Assignments organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>Title</th>
                                
                                
                                
                                <th>Instructions</th>
                                
                                
                                
                                <th>AssignedAt</th>
                                
                                
                                
                                <th>DueAt</th>
                                
                                
                                
                                <th>AssignmentStatus</th>
                                
                                
                                
                                <th>MaxScore</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.assignments_organizations && Array.isArray(organizations.assignments_organizations) &&
                              organizations.assignments_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/assignments/assignments-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="title">
                                        { item.title }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="instructions">
                                        { item.instructions }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="assigned_at">
                                        { dataFormatter.dateTimeFormatter(item.assigned_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="due_at">
                                        { dataFormatter.dateTimeFormatter(item.due_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="assignment_status">
                                        { item.assignment_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="max_score">
                                        { item.max_score }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.assignments_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Submissions organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>SubmissionStatus</th>
                                
                                
                                
                                <th>SubmittedAt</th>
                                
                                
                                
                                
                                
                                <th>StudentNote</th>
                                
                                
                                
                                <th>Score</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.submissions_organizations && Array.isArray(organizations.submissions_organizations) &&
                              organizations.submissions_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/submissions/submissions-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="submission_status">
                                        { item.submission_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="submitted_at">
                                        { dataFormatter.dateTimeFormatter(item.submitted_at) }
                                    </td>
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="student_note">
                                        { item.student_note }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="score">
                                        { item.score }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.submissions_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Quizzes organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>Title</th>
                                
                                
                                
                                <th>QuizType</th>
                                
                                
                                
                                <th>QuizStatus</th>
                                
                                
                                
                                <th>PublishedAt</th>
                                
                                
                                
                                <th>ClosedAt</th>
                                
                                
                                
                                <th>AutoGradeEnabled</th>
                                
                                
                                
                                <th>H5PReference</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.quizzes_organizations && Array.isArray(organizations.quizzes_organizations) &&
                              organizations.quizzes_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/quizzes/quizzes-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="title">
                                        { item.title }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="quiz_type">
                                        { item.quiz_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="quiz_status">
                                        { item.quiz_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="published_at">
                                        { dataFormatter.dateTimeFormatter(item.published_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="closed_at">
                                        { dataFormatter.dateTimeFormatter(item.closed_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_grade_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_grade_enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="h5p_reference">
                                        { item.h5p_reference }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.quizzes_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Quiz_results organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>ResultStatus</th>
                                
                                
                                
                                <th>Score</th>
                                
                                
                                
                                <th>StartedAt</th>
                                
                                
                                
                                <th>SubmittedAt</th>
                                
                                
                                
                                <th>AnswersPayload</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.quiz_results_organizations && Array.isArray(organizations.quiz_results_organizations) &&
                              organizations.quiz_results_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/quiz_results/quiz_results-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="result_status">
                                        { item.result_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="score">
                                        { item.score }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="started_at">
                                        { dataFormatter.dateTimeFormatter(item.started_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="submitted_at">
                                        { dataFormatter.dateTimeFormatter(item.submitted_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="answers_payload">
                                        { item.answers_payload }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.quiz_results_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Marketplace_apps organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>AppName</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                <th>AppCategory</th>
                                
                                
                                
                                <th>Runtime</th>
                                
                                
                                
                                <th>Version</th>
                                
                                
                                
                                <th>WASMArtifactURI</th>
                                
                                
                                
                                <th>ReliabilityScore</th>
                                
                                
                                
                                <th>VettingStatus</th>
                                
                                
                                
                                <th>SubmittedAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.marketplace_apps_organizations && Array.isArray(organizations.marketplace_apps_organizations) &&
                              organizations.marketplace_apps_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/marketplace_apps/marketplace_apps-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="app_category">
                                        { item.app_category }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="runtime">
                                        { item.runtime }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="version">
                                        { item.version }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="wasm_artifact_uri">
                                        { item.wasm_artifact_uri }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="reliability_score">
                                        { item.reliability_score }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="vetting_status">
                                        { item.vetting_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="submitted_at">
                                        { dataFormatter.dateTimeFormatter(item.submitted_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.marketplace_apps_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>App_installations organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>InstallationStatus</th>
                                
                                
                                
                                <th>InstalledAt</th>
                                
                                
                                
                                <th>DisabledAt</th>
                                
                                
                                
                                <th>DisableReason</th>
                                
                                
                                
                                <th>AutoSuggestEnabled</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.app_installations_organizations && Array.isArray(organizations.app_installations_organizations) &&
                              organizations.app_installations_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/app_installations/app_installations-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="installation_status">
                                        { item.installation_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="installed_at">
                                        { dataFormatter.dateTimeFormatter(item.installed_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="disabled_at">
                                        { dataFormatter.dateTimeFormatter(item.disabled_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="disable_reason">
                                        { item.disable_reason }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="auto_suggest_enabled">
                                        { dataFormatter.booleanFormatter(item.auto_suggest_enabled) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.app_installations_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>App_crash_reports organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>Severity</th>
                                
                                
                                
                                <th>ClientPlatform</th>
                                
                                
                                
                                <th>ClientVersion</th>
                                
                                
                                
                                <th>ReportedAt</th>
                                
                                
                                
                                <th>Stacktrace</th>
                                
                                
                                
                                <th>ContextPayload</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.app_crash_reports_organizations && Array.isArray(organizations.app_crash_reports_organizations) &&
                              organizations.app_crash_reports_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/app_crash_reports/app_crash_reports-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="severity">
                                        { item.severity }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="client_platform">
                                        { item.client_platform }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="client_version">
                                        { item.client_version }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="reported_at">
                                        { dataFormatter.dateTimeFormatter(item.reported_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="stacktrace">
                                        { item.stacktrace }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="context_payload">
                                        { item.context_payload }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.app_crash_reports_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Audit_events organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>EventCategory</th>
                                
                                
                                
                                <th>Action</th>
                                
                                
                                
                                <th>TargetType</th>
                                
                                
                                
                                <th>TargetKey</th>
                                
                                
                                
                                <th>EventAt</th>
                                
                                
                                
                                <th>IPAddress</th>
                                
                                
                                
                                <th>UserAgent</th>
                                
                                
                                
                                <th>Details</th>
                                
                                
                                
                                <th>LegalHold</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.audit_events_organizations && Array.isArray(organizations.audit_events_organizations) &&
                              organizations.audit_events_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/audit_events/audit_events-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="event_category">
                                        { item.event_category }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="action">
                                        { item.action }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="target_type">
                                        { item.target_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="target_key">
                                        { item.target_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="event_at">
                                        { dataFormatter.dateTimeFormatter(item.event_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="ip_address">
                                        { item.ip_address }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="user_agent">
                                        { item.user_agent }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="details">
                                        { item.details }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="legal_hold">
                                        { dataFormatter.booleanFormatter(item.legal_hold) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.audit_events_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Data_subject_requests organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>RequestType</th>
                                
                                
                                
                                <th>RequestStatus</th>
                                
                                
                                
                                <th>RequestedAt</th>
                                
                                
                                
                                <th>DueAt</th>
                                
                                
                                
                                <th>CompletedAt</th>
                                
                                
                                
                                <th>Notes</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.data_subject_requests_organizations && Array.isArray(organizations.data_subject_requests_organizations) &&
                              organizations.data_subject_requests_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/data_subject_requests/data_subject_requests-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="request_type">
                                        { item.request_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="request_status">
                                        { item.request_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="requested_at">
                                        { dataFormatter.dateTimeFormatter(item.requested_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="due_at">
                                        { dataFormatter.dateTimeFormatter(item.due_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="completed_at">
                                        { dataFormatter.dateTimeFormatter(item.completed_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="notes">
                                        { item.notes }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.data_subject_requests_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Service_incidents organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                <th>Title</th>
                                
                                
                                
                                <th>Severity</th>
                                
                                
                                
                                <th>IncidentStatus</th>
                                
                                
                                
                                <th>StartedAt</th>
                                
                                
                                
                                <th>EndedAt</th>
                                
                                
                                
                                <th>Summary</th>
                                
                                
                                
                                <th>RCA</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.service_incidents_organizations && Array.isArray(organizations.service_incidents_organizations) &&
                              organizations.service_incidents_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/service_incidents/service_incidents-view/?id=${item.id}`)}>
                                    
                                    
                                    <td data-label="title">
                                        { item.title }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="severity">
                                        { item.severity }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="incident_status">
                                        { item.incident_status }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="started_at">
                                        { dataFormatter.dateTimeFormatter(item.started_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="ended_at">
                                        { dataFormatter.dateTimeFormatter(item.ended_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="summary">
                                        { item.summary }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rca">
                                        { item.rca }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.service_incidents_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Deployment_changes organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                <th>ServiceName</th>
                                
                                
                                
                                <th>GitRef</th>
                                
                                
                                
                                <th>ChangeType</th>
                                
                                
                                
                                <th>RolloutStage</th>
                                
                                
                                
                                <th>StartedAt</th>
                                
                                
                                
                                <th>CompletedAt</th>
                                
                                
                                
                                <th>DiffSummary</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.deployment_changes_organizations && Array.isArray(organizations.deployment_changes_organizations) &&
                              organizations.deployment_changes_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/deployment_changes/deployment_changes-view/?id=${item.id}`)}>
                                    
                                    
                                    <td data-label="service_name">
                                        { item.service_name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="git_ref">
                                        { item.git_ref }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="change_type">
                                        { item.change_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rollout_stage">
                                        { item.rollout_stage }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="started_at">
                                        { dataFormatter.dateTimeFormatter(item.started_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="completed_at">
                                        { dataFormatter.dateTimeFormatter(item.completed_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="diff_summary">
                                        { item.diff_summary }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.deployment_changes_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Feature_flags organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>FlagName</th>
                                
                                
                                
                                <th>Description</th>
                                
                                
                                
                                <th>Enabled</th>
                                
                                
                                
                                <th>TargetScope</th>
                                
                                
                                
                                <th>RolloutPercentage</th>
                                
                                
                                
                                <th>EnabledAt</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.feature_flags_organizations && Array.isArray(organizations.feature_flags_organizations) &&
                              organizations.feature_flags_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/feature_flags/feature_flags-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="description">
                                        { item.description }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="enabled">
                                        { dataFormatter.booleanFormatter(item.enabled) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="target_scope">
                                        { item.target_scope }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rollout_percentage">
                                        { item.rollout_percentage }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="enabled_at">
                                        { dataFormatter.dateTimeFormatter(item.enabled_at) }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.feature_flags_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Quality_reports organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>ReportedAt</th>
                                
                                
                                
                                <th>PacketLossPercent</th>
                                
                                
                                
                                <th>RTT(ms)</th>
                                
                                
                                
                                <th>Jitter(ms)</th>
                                
                                
                                
                                <th>SendBitrate(kbps)</th>
                                
                                
                                
                                <th>ReceiveBitrate(kbps)</th>
                                
                                
                                
                                <th>MediaQuality</th>
                                
                                
                                
                                <th>RawStats</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.quality_reports_organizations && Array.isArray(organizations.quality_reports_organizations) &&
                              organizations.quality_reports_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/quality_reports/quality_reports-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="reported_at">
                                        { dataFormatter.dateTimeFormatter(item.reported_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="packet_loss_percent">
                                        { item.packet_loss_percent }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="rtt_ms">
                                        { item.rtt_ms }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="jitter_ms">
                                        { item.jitter_ms }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="send_bitrate_kbps">
                                        { item.send_bitrate_kbps }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="recv_bitrate_kbps">
                                        { item.recv_bitrate_kbps }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="media_quality">
                                        { item.media_quality }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="raw_stats">
                                        { item.raw_stats }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.quality_reports_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Event_streams organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                <th>StreamType</th>
                                
                                
                                
                                <th>StreamName</th>
                                
                                
                                
                                <th>SubjectOrTopic</th>
                                
                                
                                
                                <th>RetentionPolicy</th>
                                
                                
                                
                                <th>RetentionDays</th>
                                
                                
                                
                                <th>StreamStatus</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.event_streams_organizations && Array.isArray(organizations.event_streams_organizations) &&
                              organizations.event_streams_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/event_streams/event_streams-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    <td data-label="stream_type">
                                        { item.stream_type }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="name">
                                        { item.name }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="subject_or_topic">
                                        { item.subject_or_topic }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="retention_policy">
                                        { item.retention_policy }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="retention_days">
                                        { item.retention_days }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="stream_status">
                                        { item.stream_status }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.event_streams_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                
                <>
                    <p className={'block font-bold mb-2'}>Conference_events organizations</p>
                    <CardBox
                      className='mb-6 border border-gray-300 rounded overflow-hidden'
                      hasTable
                    >
                        <div className='overflow-x-auto'>
                            <table>
                            <thead>
                            <tr>
                                
                                
                                
                                
                                
                                
                                <th>EventKind</th>
                                
                                
                                
                                <th>EventKey</th>
                                
                                
                                
                                <th>EventAt</th>
                                
                                
                                
                                <th>Payload</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>
                            {organizations.conference_events_organizations && Array.isArray(organizations.conference_events_organizations) &&
                              organizations.conference_events_organizations.map((item: any) => (
                                <tr key={item.id} onClick={() => router.push(`/conference_events/conference_events-view/?id=${item.id}`)}>
                                    
                                    
                                    
                                    
                                    
                                    
                                    <td data-label="event_kind">
                                        { item.event_kind }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="event_key">
                                        { item.event_key }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="event_at">
                                        { dataFormatter.dateTimeFormatter(item.event_at) }
                                    </td>
                                    
                                    
                                    
                                    <td data-label="payload">
                                        { item.payload }
                                    </td>
                                    
                                    
                                </tr>
                              ))}
                            </tbody>
                        </table>
                        </div>
                        {!organizations?.conference_events_organizations?.length && <div className={'text-center py-4'}>No data</div>}
                    </CardBox>
                </>
                
                

                <BaseDivider />

                <BaseButton
                    color='info'
                    label='Back'
                    onClick={() => router.push('/organizations/organizations-list')}
                />
              </CardBox>
          </SectionMain>
      </>
    );
};

OrganizationsView.getLayout = function getLayout(page: ReactElement) {
    return (
      <LayoutAuthenticated
        
        permission={'READ_ORGANIZATIONS'}
        
      >
          {page}
      </LayoutAuthenticated>
    )
}

export default OrganizationsView;