Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

2.2 KB
Raw Blame
<div class="w-full max-h-[70vh] overflow-y-auto pr-1 pt-1">
    <div class="flex flex-col gap-6">
        <div>
            <h3>Resource</h3>
            <div class="pt-2 grid grid-cols-1 gap-3 md:grid-cols-2">
                <x-forms.copy-input label="Name" :text="$resource->name ?? ''" />
                <x-forms.copy-input label="UUID" :text="$resource->uuid ?? ''" />
            </div>
        </div>

        @if ($environment_uuid)
            <div>
                <h3>Environment</h3>
                <div class="pt-2 grid grid-cols-1 gap-3 md:grid-cols-2">
                    <x-forms.copy-input label="Name" :text="$environment_name ?? ''" />
                    <x-forms.copy-input label="UUID" :text="$environment_uuid" />
                </div>
            </div>
        @endif

        @if ($project_uuid)
            <div>
                <h3>Project</h3>
                <div class="pt-2 grid grid-cols-1 gap-3 md:grid-cols-2">
                    <x-forms.copy-input label="Name" :text="$project_name ?? ''" />
                    <x-forms.copy-input label="UUID" :text="$project_uuid" />
                </div>
            </div>
        @endif

        @if ($server_uuid)
            <div>
                <h3>Server</h3>
                <div class="pt-2 grid grid-cols-1 gap-3 md:grid-cols-2">
                    <x-forms.copy-input label="Name" :text="$server_name ?? ''" />
                    <x-forms.copy-input label="UUID" :text="$server_uuid" />
                </div>
            </div>
        @endif

        @if (! empty($stack_applications) || ! empty($stack_databases))
            <div>
                <h3>Stack Sub-Resources</h3>
                <div class="pt-2 grid grid-cols-1 gap-3 md:grid-cols-2">
                    @foreach ($stack_applications as $item)
                        <x-forms.copy-input :label="'Application: ' . $item['name']" :text="$item['uuid']" />
                    @endforeach
                    @foreach ($stack_databases as $item)
                        <x-forms.copy-input :label="'Database: ' . $item['name']" :text="$item['uuid']" />
                    @endforeach
                </div>
            </div>
        @endif
    </div>
</div>