Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Livewire\Tickets;
use App\Attributes\DisabledIf;
use App\Livewire\Component;
use App\Models\Ticket;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Rule;
#[DisabledIf('tickets_disabled')]
class Show extends Component
{
#[Locked]
public Ticket $ticket;
#[Rule('required', 'string')]
public string $message;
public function save()
{
$this->validate();
$this->ticket->messages()->create([
'user_id' => Auth::id(),
'message' => $this->message,
]);
$this->notify('Message sent successfully');
$this->message = '';
$this->dispatch('saved');
}
public function render()
{
return view('tickets.show')->layoutData([
'sidebar' => true,
]);
}
}