Moved service.widget.status to a component
This commit is contained in:
6
resources/views/components/button/status.blade.php
Normal file
6
resources/views/components/button/status.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<span {{ $attributes->class([
|
||||
'badge',
|
||||
'badge-success'=>($status === 'active'),
|
||||
'badge-warning'=>($status === 'inactive'),
|
||||
'badge-danger'=>($status === 'cancelled'),
|
||||
])->except(['status','substatus']) }}>{{ $slot->isNotEmpty() ? $slot : strtoupper($status) }}</span> @if($slot->isEmpty() && (! in_array($status,['active','cancelled'])) && isset($substatus) && $substatus)<small>[{{ strtoupper($substatus) }}]</small> @endif
|
Reference in New Issue
Block a user