major ui updates
This commit is contained in:
@@ -33,8 +33,6 @@ final class TicketIndex extends Component
|
||||
|
||||
/**
|
||||
* Reset pagination when filters change.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function updated(): void
|
||||
{
|
||||
@@ -43,8 +41,6 @@ final class TicketIndex extends Component
|
||||
|
||||
/**
|
||||
* Render the ticket list.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function render(): View
|
||||
{
|
||||
@@ -73,9 +69,9 @@ final class TicketIndex extends Component
|
||||
->when($this->priority !== '', fn (Builder $query): Builder => $query->where('priority_id', (int) $this->priority))
|
||||
->when($this->search !== '', function (Builder $query): Builder {
|
||||
return $query->where(static function (Builder $subQuery): void {
|
||||
$subQuery->where('reference', 'like', '%' . $this->search . '%')
|
||||
->orWhere('subject', 'like', '%' . $this->search . '%')
|
||||
->orWhere('body', 'like', '%' . $this->search . '%');
|
||||
$subQuery->where('reference', 'like', '%'.$this->search.'%')
|
||||
->orWhere('subject', 'like', '%'.$this->search.'%')
|
||||
->orWhere('body', 'like', '%'.$this->search.'%');
|
||||
});
|
||||
})
|
||||
->latest('last_activity_at')
|
||||
|
||||
Reference in New Issue
Block a user