1 | <?php namespace Arcanesoft\Core\Helpers\UI; |
||
14 | class Label |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Main Methods |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | /** |
||
21 | * Generate active icon label. |
||
22 | * |
||
23 | * @param bool $active |
||
24 | * @param array $options |
||
25 | * @param bool $withTooltip |
||
26 | * |
||
27 | * @return \Illuminate\Support\HtmlString |
||
28 | */ |
||
29 | 6 | public static function activeIcon($active, array $options = [], $withTooltip = true) |
|
53 | |||
54 | /** |
||
55 | * Generate active status label. |
||
56 | * |
||
57 | * @param bool $active |
||
58 | * @param array $options |
||
59 | * @param bool $withIcon |
||
60 | * |
||
61 | * @return \Illuminate\Support\HtmlString |
||
62 | */ |
||
63 | public static function activeStatus($active, array $options = [], $withIcon) |
||
86 | |||
87 | /** |
||
88 | * Generate count label. |
||
89 | * |
||
90 | * @param int|float $count |
||
91 | * @param array $options |
||
92 | * |
||
93 | * @return \Illuminate\Support\HtmlString |
||
94 | */ |
||
95 | 9 | public static function count($count, array $options = []) { |
|
108 | |||
109 | /** |
||
110 | * Generate locked icon label. |
||
111 | * |
||
112 | * @param bool $locked |
||
113 | * @param array $options |
||
114 | * @param bool $withTooltip |
||
115 | * |
||
116 | * @return \Illuminate\Support\HtmlString |
||
117 | */ |
||
118 | 6 | public static function lockedIcon($locked, array $options = [], $withTooltip = true) |
|
142 | |||
143 | /** |
||
144 | * Generate locked status label. |
||
145 | * |
||
146 | * @param bool $locked |
||
147 | * @param array $options |
||
148 | * @param bool $withIcon |
||
149 | * |
||
150 | * @return \Illuminate\Support\HtmlString |
||
151 | */ |
||
152 | 6 | public static function lockedStatus($locked, array $options = [], $withIcon = true) |
|
176 | |||
177 | /** |
||
178 | * Generate trashed icon label. |
||
179 | * |
||
180 | * @param array $options |
||
181 | * @return \Illuminate\Support\HtmlString |
||
182 | */ |
||
183 | 6 | public static function trashedStatus(array $options = [], $withIcon = true) |
|
195 | |||
196 | /* ----------------------------------------------------------------- |
||
197 | | Other Methods |
||
198 | | ----------------------------------------------------------------- |
||
199 | */ |
||
200 | /** |
||
201 | * Generate the label. |
||
202 | * |
||
203 | * @param mixed $value |
||
204 | * @param array $attributes |
||
205 | * |
||
206 | * @return \Illuminate\Support\HtmlString |
||
207 | */ |
||
208 | 33 | protected static function generate($value, array $attributes = []) |
|
214 | |||
215 | /** |
||
216 | * Generate the label with tooltip. |
||
217 | * |
||
218 | * @param string $value |
||
219 | * @param string $title |
||
220 | * @param array $attributes |
||
221 | * |
||
222 | * @return \Illuminate\Support\HtmlString |
||
223 | */ |
||
224 | 6 | protected static function generateWithTooltip($value, $title, array $attributes = []) |
|
231 | |||
232 | /** |
||
233 | * Generate the label with icon & text as value. |
||
234 | * |
||
235 | * @param string $value |
||
236 | * @param string $icon |
||
237 | * @param array $attributes |
||
238 | * |
||
239 | * @return \Illuminate\Support\HtmlString |
||
240 | */ |
||
241 | 6 | protected static function generateWithIcon($value, $icon, array $attributes = []) |
|
245 | |||
246 | /** |
||
247 | * Generate icon tag. |
||
248 | * |
||
249 | * @param string $class |
||
250 | * |
||
251 | * @return string |
||
252 | */ |
||
253 | 18 | protected static function generateIcon($class) |
|
257 | } |
||
258 |