File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
resources/views/livewire/research-space Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments