You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Filament\Infolists\Components;
  3. use CodeWithDennis\SimpleAlert\Components\Infolists\SimpleAlert;
  4. class BannerEntry extends SimpleAlert
  5. {
  6. protected function setUp(): void
  7. {
  8. parent::setUp();
  9. $this->border();
  10. }
  11. public function danger(): static
  12. {
  13. $this->color = 'danger';
  14. $this->icon = 'heroicon-o-x-circle';
  15. return $this;
  16. }
  17. public function info(): static
  18. {
  19. $this->color = 'info';
  20. $this->icon = 'heroicon-o-information-circle';
  21. return $this;
  22. }
  23. public function success(): static
  24. {
  25. $this->color = 'success';
  26. $this->icon = 'heroicon-o-check-circle';
  27. return $this;
  28. }
  29. public function warning(): static
  30. {
  31. $this->color = 'warning';
  32. $this->icon = 'heroicon-o-exclamation-triangle';
  33. return $this;
  34. }
  35. }