date filter will work based on company format and the selection of date range is added

This commit is contained in:
Sevan Nerse
2021-02-23 18:29:31 +03:00
parent 7363287ab5
commit f8253a5b30
3 changed files with 54 additions and 15 deletions

View File

@ -2,17 +2,21 @@
namespace App\View\Components;
use Illuminate\View\Component;
use App\Traits\DateTime;
use Illuminate\Support\Str;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Illuminate\View\Component;
class SearchString extends Component
{
use DateTime;
public $filters;
/** string */
public $model;
public $date_format;
/**
* Create a new component instance.
*
@ -22,6 +26,7 @@ class SearchString extends Component
{
$this->model = $model;
$this->filters = $filters;
$this->date_format = $this->getCompanyDateFormat();
}
/**