diff --git a/resources/views/components/button/status.blade.php b/resources/views/components/button/status.blade.php new file mode 100644 index 0000000..881c624 --- /dev/null +++ b/resources/views/components/button/status.blade.php @@ -0,0 +1,6 @@ +class([ + 'badge', + 'badge-success'=>($status === 'active'), + 'badge-warning'=>($status === 'inactive'), + 'badge-danger'=>($status === 'cancelled'), + ])->except(['status','substatus']) }}>{{ $slot->isNotEmpty() ? $slot : strtoupper($status) }} @if($slot->isEmpty() && (! in_array($status,['active','cancelled'])) && isset($substatus) && $substatus)[{{ strtoupper($substatus) }}] @endif \ No newline at end of file diff --git a/resources/views/theme/backend/adminlte/service/widget/status.blade.php b/resources/views/theme/backend/adminlte/service/widget/status.blade.php deleted file mode 100644 index c3cc41c..0000000 --- a/resources/views/theme/backend/adminlte/service/widget/status.blade.php +++ /dev/null @@ -1,12 +0,0 @@ - -{{ $o->status }} \ No newline at end of file