lasthourcloud/resources/views/project/new.blade.php

31 lines
1.3 KiB
PHP
Raw Normal View History

2023-04-25 09:01:56 +00:00
<x-layout>
2023-04-26 11:25:41 +00:00
@if ($type === 'project')
<h1>New Project</h1>
@elseif ($type === 'resource')
<h1>New Resource</h1>
@endif
<div x-data="{ activeTab: 'choose' }">
2023-04-25 12:43:35 +00:00
<div class="flex flex-col w-64 gap-2 mb-10">
2023-05-03 12:09:10 +00:00
<x-inputs.button @click.prevent="activeTab = 'public-repo'">Public Repository</x-inputs.button>
2023-05-10 11:05:32 +00:00
<x-inputs.button @click.prevent="activeTab = 'github-private-repo'">Private Repository (with GitHub App)
</x-inputs.button>
<x-inputs.button @click.prevent="activeTab = 'github-private-repo-deploy-key'">Private Repository (with
Deploy Key)
2023-05-03 12:09:10 +00:00
</x-inputs.button>
2023-04-26 11:25:41 +00:00
@if ($type === 'project')
<livewire:project.new.empty-project />
2023-04-26 11:25:41 +00:00
@endif
2023-04-25 12:43:35 +00:00
</div>
<div x-cloak x-show="activeTab === 'public-repo'">
2023-04-26 11:25:41 +00:00
<livewire:project.new.public-git-repository :type="$type" />
2023-04-25 12:43:35 +00:00
</div>
<div x-cloak x-show="activeTab === 'github-private-repo'">
2023-05-09 09:33:50 +00:00
<livewire:project.new.github-private-repository :type="$type" />
2023-04-25 12:43:35 +00:00
</div>
2023-05-10 11:05:32 +00:00
<div x-cloak x-show="activeTab === 'github-private-repo-deploy-key'">
<livewire:project.new.github-private-repository-deploy-key :type="$type" />
</div>
2023-04-25 12:43:35 +00:00
</div>
2023-04-25 09:01:56 +00:00
</x-layout>