<?php

namespace App\Filters;

use Essa\APIToolKit\Filters\QueryFilters;

class MiscReceiptFilters extends QueryFilters
{
    protected array $allowedFilters = [];

    protected array $columnSearch = [];

    public function status($status)
    {
        return $this->builder->when($status == "inactive", function ($query) {
            $query->onlyTrashed();
        });
    }
}
