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

33 lines
1.2 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
2023-04-25 12:43:35 +00:00
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'choose' }">
<div class="flex flex-col w-64 gap-2 mb-10">
<button @click.prevent="tab = 'public-repo'; window.location.hash = 'public-repo'">Public Repository
</button>
<button @click.prevent="tab = 'github-private-repo'; window.location.hash = 'github-private-repo'">Private
Repository (GitHub App)</button>
2023-04-26 11:25:41 +00:00
@if ($type === 'project')
<button @click.prevent="tab = 'empty-project'; window.location.hash = 'empty-project'">Empty
Project</button>
@endif
2023-04-25 12:43:35 +00:00
</div>
<div x-cloak x-show="tab === '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="tab === 'github-private-repo'">
github-private-repo
</div>
<div x-cloak x-show="tab === 'empty-project'">
empty-project
</div>
<div x-cloak x-show="tab === 'choose'">
Choose any option
</div>
</div>
2023-04-25 09:01:56 +00:00
</x-layout>