| @@ 94-107 (lines=14) @@ | ||
| 91 | * |
|
| 92 | * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View |
|
| 93 | */ |
|
| 94 | public static function css($css = null) |
|
| 95 | { |
|
| 96 | if (!is_null($css)) { |
|
| 97 | return self::$css = array_merge(self::$css, (array) $css); |
|
| 98 | } |
|
| 99 | ||
| 100 | if (!$css = static::getMinifiedCss()) { |
|
| 101 | $css = array_merge(static::$css, static::baseCss()); |
|
| 102 | } |
|
| 103 | ||
| 104 | $css = array_filter(array_unique($css)); |
|
| 105 | ||
| 106 | return view('admin::partials.css', compact('css')); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * @param null $css |
|
| @@ 134-147 (lines=14) @@ | ||
| 131 | * |
|
| 132 | * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View |
|
| 133 | */ |
|
| 134 | public static function js($js = null) |
|
| 135 | { |
|
| 136 | if (!is_null($js)) { |
|
| 137 | return self::$js = array_merge(self::$js, (array) $js); |
|
| 138 | } |
|
| 139 | ||
| 140 | if (!$js = static::getMinifiedJs()) { |
|
| 141 | $js = array_merge(static::baseJs(), static::$js); |
|
| 142 | } |
|
| 143 | ||
| 144 | $js = array_filter(array_unique($js)); |
|
| 145 | ||
| 146 | return view('admin::partials.js', compact('js')); |
|
| 147 | } |
|
| 148 | ||
| 149 | /** |
|
| 150 | * Add js or get all js. |
|