@@ -121,9 +121,10 @@ abstract class Filter implements Renderable
/**
* @param array ...$params
+ *
* @return static
*/
- public static function create(...$params)
+ public static function make(...$params)
{
return new static(...$params);
}
@@ -52,9 +52,9 @@ class Equal extends Filter
*
* @return $this
- public function datetime()
+ public function datetime(string $format = 'YYYY-MM-DD HH:mm:ss')
- return $this->setDateFormat('YYYY-MM-DD HH:mm:ss');
+ return $this->setDateFormat($format);
@@ -40,6 +40,8 @@ JS;
$this->addScript();
+ $value = $this->getFilterValue();
+
$active = empty($value) ? '' : 'text-yellow';
return <<<EOT