|
6 | 6 |
|
7 | 7 | use App\Contracts\Enums\HasColumns; |
8 | 8 | use App\Contracts\Enums\HasQuery; |
| 9 | +use App\Contracts\Enums\HasSheetName; |
9 | 10 | use App\Contracts\Enums\HasTypes; |
10 | 11 | use App\Enums\Report\Type; |
11 | 12 | use App\Enums\User\Role; |
12 | 13 | use CommitGlobal\Enums\Concerns\Arrayable; |
13 | 14 | use CommitGlobal\Enums\Concerns\Comparable; |
14 | 15 | use Filament\Support\Contracts\HasLabel; |
15 | 16 |
|
16 | | -enum CasesHealth: string implements HasQuery, HasLabel, HasTypes, HasColumns |
| 17 | +enum CasesHealth: string implements HasQuery, HasLabel, HasSheetName, HasTypes, HasColumns |
17 | 18 | { |
18 | 19 | use Arrayable; |
19 | 20 | use Comparable; |
@@ -277,6 +278,138 @@ public function getLabel(): ?string |
277 | 278 | }; |
278 | 279 | } |
279 | 280 |
|
| 281 | + public function getSheetName(): string |
| 282 | + { |
| 283 | + return match ($this) { |
| 284 | + self::CH01 => __('report.standard.sheet.cases_health.CH01'), |
| 285 | + self::CH02 => __('report.standard.sheet.cases_health.CH02'), |
| 286 | + self::CH03 => __('report.standard.sheet.cases_health.CH03'), |
| 287 | + self::CH04 => __('report.standard.sheet.cases_health.CH04'), |
| 288 | + self::CH05 => __('report.standard.sheet.cases_health.CH05'), |
| 289 | + self::CH06 => __('report.standard.sheet.cases_health.CH06'), |
| 290 | + self::CH07 => __('report.standard.sheet.cases_health.CH07'), |
| 291 | + self::CH08 => __('report.standard.sheet.cases_health.CH08'), |
| 292 | + self::CH09 => __('report.standard.sheet.cases_health.CH09'), |
| 293 | + self::CH10 => __('report.standard.sheet.cases_health.CH10'), |
| 294 | + self::CH11 => __('report.standard.sheet.cases_health.CH11'), |
| 295 | + self::CH12 => __('report.standard.sheet.cases_health.CH12'), |
| 296 | + self::CH13 => __('report.standard.sheet.cases_health.CH13'), |
| 297 | + self::CH14 => __('report.standard.sheet.cases_health.CH14'), |
| 298 | + self::CH15 => __('report.standard.sheet.cases_health.CH15'), |
| 299 | + self::CH16 => __('report.standard.sheet.cases_health.CH16'), |
| 300 | + self::CH17 => __('report.standard.sheet.cases_health.CH17'), |
| 301 | + self::CH18 => __('report.standard.sheet.cases_health.CH18'), |
| 302 | + self::CH19 => __('report.standard.sheet.cases_health.CH19'), |
| 303 | + self::CH20 => __('report.standard.sheet.cases_health.CH20'), |
| 304 | + self::CH21 => __('report.standard.sheet.cases_health.CH21'), |
| 305 | + self::CH22 => __('report.standard.sheet.cases_health.CH22'), |
| 306 | + self::CH23 => __('report.standard.sheet.cases_health.CH23'), |
| 307 | + self::CH24 => __('report.standard.sheet.cases_health.CH24'), |
| 308 | + self::CH25 => __('report.standard.sheet.cases_health.CH25'), |
| 309 | + self::CH26 => __('report.standard.sheet.cases_health.CH26'), |
| 310 | + self::CH27 => __('report.standard.sheet.cases_health.CH27'), |
| 311 | + self::CH28 => __('report.standard.sheet.cases_health.CH28'), |
| 312 | + self::CH29 => __('report.standard.sheet.cases_health.CH29'), |
| 313 | + self::CH30 => __('report.standard.sheet.cases_health.CH30'), |
| 314 | + self::CH31 => __('report.standard.sheet.cases_health.CH31'), |
| 315 | + self::CH32 => __('report.standard.sheet.cases_health.CH32'), |
| 316 | + self::CH33 => __('report.standard.sheet.cases_health.CH33'), |
| 317 | + self::CH34 => __('report.standard.sheet.cases_health.CH34'), |
| 318 | + self::CH35 => __('report.standard.sheet.cases_health.CH35'), |
| 319 | + self::CH36 => __('report.standard.sheet.cases_health.CH36'), |
| 320 | + self::CH37 => __('report.standard.sheet.cases_health.CH37'), |
| 321 | + self::CH38 => __('report.standard.sheet.cases_health.CH38'), |
| 322 | + self::CH39 => __('report.standard.sheet.cases_health.CH39'), |
| 323 | + self::CH40 => __('report.standard.sheet.cases_health.CH40'), |
| 324 | + self::CH41 => __('report.standard.sheet.cases_health.CH41'), |
| 325 | + self::CH42 => __('report.standard.sheet.cases_health.CH42'), |
| 326 | + self::CH43 => __('report.standard.sheet.cases_health.CH43'), |
| 327 | + self::CH44 => __('report.standard.sheet.cases_health.CH44'), |
| 328 | + self::CH45 => __('report.standard.sheet.cases_health.CH45'), |
| 329 | + self::CH46 => __('report.standard.sheet.cases_health.CH46'), |
| 330 | + self::CH47 => __('report.standard.sheet.cases_health.CH47'), |
| 331 | + self::CH48 => __('report.standard.sheet.cases_health.CH48'), |
| 332 | + self::CH49 => __('report.standard.sheet.cases_health.CH49'), |
| 333 | + self::CH50 => __('report.standard.sheet.cases_health.CH50'), |
| 334 | + self::CH51 => __('report.standard.sheet.cases_health.CH51'), |
| 335 | + self::CH52 => __('report.standard.sheet.cases_health.CH52'), |
| 336 | + self::CH53 => __('report.standard.sheet.cases_health.CH53'), |
| 337 | + self::CH54 => __('report.standard.sheet.cases_health.CH54'), |
| 338 | + self::CH55 => __('report.standard.sheet.cases_health.CH55'), |
| 339 | + self::CH56 => __('report.standard.sheet.cases_health.CH56'), |
| 340 | + self::CH57 => __('report.standard.sheet.cases_health.CH57'), |
| 341 | + self::CH58 => __('report.standard.sheet.cases_health.CH58'), |
| 342 | + self::CH59 => __('report.standard.sheet.cases_health.CH59'), |
| 343 | + self::CH60 => __('report.standard.sheet.cases_health.CH60'), |
| 344 | + self::CH61 => __('report.standard.sheet.cases_health.CH61'), |
| 345 | + self::CH62 => __('report.standard.sheet.cases_health.CH62'), |
| 346 | + self::CH63 => __('report.standard.sheet.cases_health.CH63'), |
| 347 | + self::CH64 => __('report.standard.sheet.cases_health.CH64'), |
| 348 | + self::CH65 => __('report.standard.sheet.cases_health.CH65'), |
| 349 | + self::CH66 => __('report.standard.sheet.cases_health.CH66'), |
| 350 | + self::CH67 => __('report.standard.sheet.cases_health.CH67'), |
| 351 | + self::CH68 => __('report.standard.sheet.cases_health.CH68'), |
| 352 | + self::CH69 => __('report.standard.sheet.cases_health.CH69'), |
| 353 | + self::CH70 => __('report.standard.sheet.cases_health.CH70'), |
| 354 | + self::CH71 => __('report.standard.sheet.cases_health.CH71'), |
| 355 | + self::CH72 => __('report.standard.sheet.cases_health.CH72'), |
| 356 | + self::CH73 => __('report.standard.sheet.cases_health.CH73'), |
| 357 | + self::CH74 => __('report.standard.sheet.cases_health.CH74'), |
| 358 | + self::CH75 => __('report.standard.sheet.cases_health.CH75'), |
| 359 | + self::CH76 => __('report.standard.sheet.cases_health.CH76'), |
| 360 | + self::CH77 => __('report.standard.sheet.cases_health.CH77'), |
| 361 | + self::CH78 => __('report.standard.sheet.cases_health.CH78'), |
| 362 | + self::CH79 => __('report.standard.sheet.cases_health.CH79'), |
| 363 | + self::CH80 => __('report.standard.sheet.cases_health.CH80'), |
| 364 | + self::CH81 => __('report.standard.sheet.cases_health.CH81'), |
| 365 | + self::CH82 => __('report.standard.sheet.cases_health.CH82'), |
| 366 | + self::CH83 => __('report.standard.sheet.cases_health.CH83'), |
| 367 | + self::CH84 => __('report.standard.sheet.cases_health.CH84'), |
| 368 | + self::CH85 => __('report.standard.sheet.cases_health.CH85'), |
| 369 | + self::CH86 => __('report.standard.sheet.cases_health.CH86'), |
| 370 | + self::CH87 => __('report.standard.sheet.cases_health.CH87'), |
| 371 | + self::CH88 => __('report.standard.sheet.cases_health.CH88'), |
| 372 | + self::CH89 => __('report.standard.sheet.cases_health.CH89'), |
| 373 | + self::CH90 => __('report.standard.sheet.cases_health.CH90'), |
| 374 | + self::CH91 => __('report.standard.sheet.cases_health.CH91'), |
| 375 | + self::CH92 => __('report.standard.sheet.cases_health.CH92'), |
| 376 | + self::CH93 => __('report.standard.sheet.cases_health.CH93'), |
| 377 | + self::CH94 => __('report.standard.sheet.cases_health.CH94'), |
| 378 | + self::CH95 => __('report.standard.sheet.cases_health.CH95'), |
| 379 | + self::CH96 => __('report.standard.sheet.cases_health.CH96'), |
| 380 | + self::CH97 => __('report.standard.sheet.cases_health.CH97'), |
| 381 | + self::CH98 => __('report.standard.sheet.cases_health.CH98'), |
| 382 | + self::CH99 => __('report.standard.sheet.cases_health.CH99'), |
| 383 | + self::CH100 => __('report.standard.sheet.cases_health.CH100'), |
| 384 | + self::CH101 => __('report.standard.sheet.cases_health.CH101'), |
| 385 | + self::CH102 => __('report.standard.sheet.cases_health.CH102'), |
| 386 | + self::CH103 => __('report.standard.sheet.cases_health.CH103'), |
| 387 | + self::CH104 => __('report.standard.sheet.cases_health.CH104'), |
| 388 | + self::CH105 => __('report.standard.sheet.cases_health.CH105'), |
| 389 | + self::CH106 => __('report.standard.sheet.cases_health.CH106'), |
| 390 | + self::CH107 => __('report.standard.sheet.cases_health.CH107'), |
| 391 | + self::CH108 => __('report.standard.sheet.cases_health.CH108'), |
| 392 | + self::CH109 => __('report.standard.sheet.cases_health.CH109'), |
| 393 | + self::CH110 => __('report.standard.sheet.cases_health.CH110'), |
| 394 | + self::CH111 => __('report.standard.sheet.cases_health.CH111'), |
| 395 | + self::CH112 => __('report.standard.sheet.cases_health.CH112'), |
| 396 | + self::CH113 => __('report.standard.sheet.cases_health.CH113'), |
| 397 | + self::CH114 => __('report.standard.sheet.cases_health.CH114'), |
| 398 | + self::CH115 => __('report.standard.sheet.cases_health.CH115'), |
| 399 | + self::CH116 => __('report.standard.sheet.cases_health.CH116'), |
| 400 | + self::CH117 => __('report.standard.sheet.cases_health.CH117'), |
| 401 | + self::CH118 => __('report.standard.sheet.cases_health.CH118'), |
| 402 | + self::CH119 => __('report.standard.sheet.cases_health.CH119'), |
| 403 | + self::CH120 => __('report.standard.sheet.cases_health.CH120'), |
| 404 | + self::CH121 => __('report.standard.sheet.cases_health.CH121'), |
| 405 | + self::CH122 => __('report.standard.sheet.cases_health.CH122'), |
| 406 | + self::CH123 => __('report.standard.sheet.cases_health.CH123'), |
| 407 | + self::CH124 => __('report.standard.sheet.cases_health.CH124'), |
| 408 | + self::CH125 => __('report.standard.sheet.cases_health.CH125'), |
| 409 | + self::CH126 => __('report.standard.sheet.cases_health.CH126'), |
| 410 | + }; |
| 411 | + } |
| 412 | + |
280 | 413 | public function class(): string |
281 | 414 | { |
282 | 415 | return "\\App\\Reports\\Queries\\CasesHealth\\{$this->value}"; |
|
0 commit comments