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
|
2023-04-26 12:29:33 +00:00
|
|
|
<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>
|
|
|
|
<x-inputs.button @click.prevent="activeTab = 'github-private-repo'">Private Repository (GitHub App)
|
|
|
|
</x-inputs.button>
|
2023-04-26 11:25:41 +00:00
|
|
|
@if ($type === 'project')
|
2023-04-26 12:29:33 +00:00
|
|
|
<livewire:project.new.empty-project />
|
2023-04-26 11:25:41 +00:00
|
|
|
@endif
|
2023-04-25 12:43:35 +00:00
|
|
|
</div>
|
|
|
|
|
2023-04-26 12:29:33 +00:00
|
|
|
<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>
|
2023-04-26 12:29:33 +00:00
|
|
|
<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>
|
|
|
|
</div>
|
2023-04-25 09:01:56 +00:00
|
|
|
</x-layout>
|