Skip to content

Commit a1fde8c

Browse files
Merge pull request #1413 from delicatacurtis/patch-35
Create collaborator-board.blade.php
2 parents 035b23e + 8d06b18 commit a1fde8c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="space-y-4">
2+
<div class="flex items-center justify-between">
3+
<h2 class="text-lg font-semibold">{{ $space->name }}</h2>
4+
<div class="text-sm text-gray-600">Collaborators: {{ $space->collaborators()->count() }}</div>
5+
</div>
6+
7+
<div>
8+
<textarea wire:model.defer="content" rows="10" class="w-full rounded border-gray-300 p-2"></textarea>
9+
</div>
10+
11+
<div class="flex gap-2">
12+
<button wire:click="saveContent(content)" class="bg-blue-600 text-white px-4 py-2 rounded">Save</button>
13+
<button wire:click="$refresh" class="bg-gray-200 px-4 py-2 rounded">Refresh</button>
14+
</div>
15+
16+
<script>
17+
// Example of initiating Echo presence/listening from the front-end if Echo is set up.
18+
// window.Echo.private(`research-space.{{ $space->id }}`)
19+
// .listen('ResearchSpaceUpdated', (e) => {
20+
// Livewire.emit(`echo:research-space.{{ $space->id }},ResearchSpaceUpdated`, e);
21+
// });
22+
</script>
23+
</div>

0 commit comments

Comments
 (0)