| Conditions | 6 |
| Paths | 6 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function getStatusBadgeAttribute() |
||
| 54 | { |
||
| 55 | switch ($this->status) { |
||
| 56 | case 'pending': |
||
| 57 | return 'badge-warning'; |
||
| 58 | case 'failed': |
||
| 59 | return 'badge-danger'; |
||
| 60 | case 'refunded': |
||
| 61 | return 'badge-dark'; |
||
| 62 | case 'successful': |
||
| 63 | return 'badge-success'; |
||
| 64 | case 'default': |
||
| 65 | return 'badge-light'; |
||
| 66 | } |
||
| 69 |