Hide draft credits from client
This commit is contained in:
parent
9171381225
commit
6afed935db
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class CreditsTable extends Component
|
|||
{
|
||||
$query = Credit::query()
|
||||
->where('client_id', auth('contact')->user()->client->id)
|
||||
->where('status_id', '<>', Credit::STATUS_DRAFT)
|
||||
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')
|
||||
->paginate($this->per_page);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue