Add all files
This commit is contained in:
25
app/Livewire/Tickets/Index.php
Normal file
25
app/Livewire/Tickets/Index.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Tickets;
|
||||
|
||||
use App\Attributes\DisabledIf;
|
||||
use App\Livewire\Component;
|
||||
use App\Models\Ticket;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
#[DisabledIf('tickets_disabled')]
|
||||
class Index extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('tickets.index', [
|
||||
'tickets' => Ticket::where('user_id', Auth::id())->latest()->paginate(config('settings.pagination')),
|
||||
])->layoutData([
|
||||
'title' => 'Tickets',
|
||||
'sidebar' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user