Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Http\Livewire\Calls;
use Livewire\Component;
class SendMessageButton extends Component
{
public $callable;
public $call;
public function mount($callable, $call)
{
$this->callable = $callable;
$this->call = $call;
}
public function createConversation()
{
if (!$this->callable || $this->callable->isRemoved()) {
return;
}
$conversation = getActiveProfile()->createConversationWith($this->callable);
return redirect()->route('chat', ['conversation' => $conversation->id]);
}
public function render()
{
return view('livewire.calls.send-message-button');
}
}