{{ data_get_str($database, 'name')->limit(10) }} > Configuration | Coolify @php $databaseRouteParameters = [ 'project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid, 'database_uuid' => $database->uuid, ]; $configurationItems = [ ['label' => 'General', 'route' => 'project.database.configuration', 'icon' => 'settings'], ['label' => 'Environment Variables', 'route' => 'project.database.environment-variables', 'icon' => 'variables'], ['label' => 'Servers', 'route' => 'project.database.servers', 'icon' => 'servers'], ['label' => 'Persistent Storage', 'route' => 'project.database.persistent-storage', 'icon' => 'storages'], [ 'label' => 'Import Backup', 'route' => 'project.database.import-backup', 'icon' => 'upload', 'visible' => auth()->user()?->can('update', $database), ], ['label' => 'Webhooks', 'route' => 'project.database.webhooks', 'icon' => 'notifications'], ['label' => 'Healthcheck', 'route' => 'project.database.healthcheck', 'icon' => 'feedback'], ['label' => 'Resource Limits', 'route' => 'project.database.resource-limits', 'icon' => 'cpu'], ['label' => 'Resource Operations', 'route' => 'project.database.resource-operations', 'icon' => 'server-update'], ['label' => 'Metrics', 'route' => 'project.database.metrics', 'icon' => 'graph'], ['label' => 'Tags', 'route' => 'project.database.tags', 'icon' => 'tags'], ['label' => 'Danger Zone', 'route' => 'project.database.danger', 'icon' => 'shield-alert'], ]; $configurationItems = collect($configurationItems) ->filter(fn (array $item): bool => $item['visible'] ?? true) ->map(fn (array $item): array => [ ...$item, 'active' => $currentRoute === $item['route'], ]); $menuGroups = [ 'Settings' => ['General', 'Environment Variables', 'Servers', 'Persistent Storage', 'Import Backup'], 'Automation' => ['Webhooks', 'Healthcheck'], 'Operations' => ['Resource Limits', 'Resource Operations', 'Metrics', 'Tags', 'Danger Zone'], ]; $groupedItems = collect($menuGroups) ->map(fn (array $labels) => $configurationItems->whereIn('label', $labels)->values()) ->filter(fn ($items) => $items->isNotEmpty()); @endphp
@if ($currentRoute === 'project.database.configuration') @if ($database->type() === 'standalone-postgresql') @elseif ($database->type() === 'standalone-redis') @elseif ($database->type() === 'standalone-mongodb') @elseif ($database->type() === 'standalone-mysql') @elseif ($database->type() === 'standalone-mariadb') @elseif ($database->type() === 'standalone-keydb') @elseif ($database->type() === 'standalone-dragonfly') @elseif ($database->type() === 'standalone-clickhouse') @endif @elseif ($currentRoute === 'project.database.environment-variables') @elseif ($currentRoute === 'project.database.servers') @elseif ($currentRoute === 'project.database.persistent-storage') @elseif ($currentRoute === 'project.database.healthcheck') @elseif ($currentRoute === 'project.database.import-backup') @elseif ($currentRoute === 'project.database.webhooks') @elseif ($currentRoute === 'project.database.resource-limits') @elseif ($currentRoute === 'project.database.resource-operations') @elseif ($currentRoute === 'project.database.metrics') @elseif ($currentRoute === 'project.database.tags') @elseif ($currentRoute === 'project.database.danger') @endif