mirror of
https://github.com/ershisan99/coolify.git
synced 2026-02-01 05:12:07 +00:00
fixes
This commit is contained in:
19
resources/views/team/notifications.blade.php
Normal file
19
resources/views/team/notifications.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<x-layout>
|
||||
<x-team.navbar :team="session('currentTeam')" />
|
||||
{{-- <livewire:notifications.test :model="session('currentTeam')" /> --}}
|
||||
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'email' }" class="flex h-full">
|
||||
<div class="flex flex-col gap-4 min-w-fit">
|
||||
<a :class="activeTab === 'email' && 'text-white'"
|
||||
@click.prevent="activeTab = 'email'; window.location.hash = 'email'" href="#">Email</a>
|
||||
<a :class="activeTab === 'discord' && 'text-white'"
|
||||
@click.prevent="activeTab = 'discord'; window.location.hash = 'discord'" href="#">Discord</a>
|
||||
</div>
|
||||
<div class="w-full pl-8">
|
||||
<div x-cloak x-show="activeTab === 'email'" class="h-full">
|
||||
<livewire:notifications.email-settings :model="session('currentTeam')" />
|
||||
</div>
|
||||
<div x-cloak x-show="activeTab === 'discord'">
|
||||
<livewire:notifications.discord-settings :model="session('currentTeam')" />
|
||||
</div>
|
||||
</div>
|
||||
</x-layout>
|
||||
28
resources/views/team/show.blade.php
Normal file
28
resources/views/team/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<x-layout>
|
||||
<x-team.navbar :team="session('currentTeam')" />
|
||||
<h2>Members</h2>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr class="text-warning border-coolgray-200">
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (session('currentTeam')->members as $member)
|
||||
<livewire:team.member :member="$member" :wire:key="$member->id" />
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="py-4">
|
||||
<h2>Invite a new member</h2>
|
||||
<form class="flex items-center gap-2">
|
||||
<x-forms.input type="email" name="email" placeholder="Email" />
|
||||
<x-forms.button isHighlighted>Invite</x-forms.button>
|
||||
</form>
|
||||
</div>
|
||||
</x-layout>
|
||||
Reference in New Issue
Block a user