Changed badge to span in default blade

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-02 12:35:41 +01:00
parent 53cadf80fa
commit 8c65880504

View file

@ -437,9 +437,9 @@
<a href="{{ url('hardware') }}"> <a href="{{ url('hardware') }}">
<i class="far fa-circle text-grey fa-fw" aria-hidden="true"></i> <i class="far fa-circle text-grey fa-fw" aria-hidden="true"></i>
{{ trans('general.list_all') }} {{ trans('general.list_all') }}
<badge class="badge"> <span class="badge">
{{ (isset($total_assets)) ? $total_assets : '' }} {{ (isset($total_assets)) ? $total_assets : '' }}
</badge> </span>
</a> </a>
</li> </li>
@ -451,7 +451,7 @@
<i class="fas fa-circle text-grey fa-fw" <i class="fas fa-circle text-grey fa-fw"
aria-hidden="true"{!! ($status_nav->color!='' ? ' style="color: '.e($status_nav->color).'"' : '') !!}></i> aria-hidden="true"{!! ($status_nav->color!='' ? ' style="color: '.e($status_nav->color).'"' : '') !!}></i>
{{ $status_nav->name }} {{ $status_nav->name }}
<badge class="badge badge-secondary">{{ $status_nav->asset_count }})</badge></a></li> <span class="badge badge-secondary">{{ $status_nav->asset_count }})</span></a></li>
@endforeach @endforeach
@endif @endif
@ -460,42 +460,42 @@
<a href="{{ url('hardware?status=Deployed') }}"> <a href="{{ url('hardware?status=Deployed') }}">
<i class="far fa-circle text-blue fa-fw"></i> <i class="far fa-circle text-blue fa-fw"></i>
{{ trans('general.deployed') }} {{ trans('general.deployed') }}
<badge class="badge">{{ (isset($total_deployed_sidebar)) ? $total_deployed_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_deployed_sidebar)) ? $total_deployed_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'RTD' ? ' class="active"' : '') !!}> <li{!! (Request::query('status') == 'RTD' ? ' class="active"' : '') !!}>
<a href="{{ url('hardware?status=RTD') }}"> <a href="{{ url('hardware?status=RTD') }}">
<i class="far fa-circle text-green fa-fw"></i> <i class="far fa-circle text-green fa-fw"></i>
{{ trans('general.ready_to_deploy') }} {{ trans('general.ready_to_deploy') }}
<badge class="badge">{{ (isset($total_rtd_sidebar)) ? $total_rtd_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_rtd_sidebar)) ? $total_rtd_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'Pending' ? ' class="active"' : '') !!}><a <li{!! (Request::query('status') == 'Pending' ? ' class="active"' : '') !!}><a
href="{{ url('hardware?status=Pending') }}"><i href="{{ url('hardware?status=Pending') }}"><i
class="far fa-circle text-orange fa-fw"></i> class="far fa-circle text-orange fa-fw"></i>
{{ trans('general.pending') }} {{ trans('general.pending') }}
<badge class="badge">{{ (isset($total_pending_sidebar)) ? $total_pending_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_pending_sidebar)) ? $total_pending_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'Undeployable' ? ' class="active"' : '') !!} ><a <li{!! (Request::query('status') == 'Undeployable' ? ' class="active"' : '') !!} ><a
href="{{ url('hardware?status=Undeployable') }}"><i href="{{ url('hardware?status=Undeployable') }}"><i
class="fas fa-times text-red fa-fw"></i> class="fas fa-times text-red fa-fw"></i>
{{ trans('general.undeployable') }} {{ trans('general.undeployable') }}
<badge class="badge">{{ (isset($total_undeployable_sidebar)) ? $total_undeployable_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_undeployable_sidebar)) ? $total_undeployable_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'byod' ? ' class="active"' : '') !!}><a <li{!! (Request::query('status') == 'byod' ? ' class="active"' : '') !!}><a
href="{{ url('hardware?status=byod') }}"><i href="{{ url('hardware?status=byod') }}"><i
class="fas fa-times text-red fa-fw"></i> class="fas fa-times text-red fa-fw"></i>
{{ trans('general.byod') }} {{ trans('general.byod') }}
<badge class="badge">{{ (isset($total_byod_sidebar)) ? $total_byod_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_byod_sidebar)) ? $total_byod_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'Archived' ? ' class="active"' : '') !!}><a <li{!! (Request::query('status') == 'Archived' ? ' class="active"' : '') !!}><a
href="{{ url('hardware?status=Archived') }}"><i href="{{ url('hardware?status=Archived') }}"><i
class="fas fa-times text-red fa-fw"></i> class="fas fa-times text-red fa-fw"></i>
{{ trans('admin/hardware/general.archived') }} {{ trans('admin/hardware/general.archived') }}
<badge class="badge">{{ (isset($total_archived_sidebar)) ? $total_archived_sidebar : '' }}</badge> <span class="badge">{{ (isset($total_archived_sidebar)) ? $total_archived_sidebar : '' }}</span>
</a> </a>
</li> </li>
<li{!! (Request::query('status') == 'Requestable' ? ' class="active"' : '') !!}><a <li{!! (Request::query('status') == 'Requestable' ? ' class="active"' : '') !!}><a
@ -509,7 +509,7 @@
<li{!! (Request::is('hardware/audit/due') ? ' class="active"' : '') !!}> <li{!! (Request::is('hardware/audit/due') ? ' class="active"' : '') !!}>
<a href="{{ route('assets.audit.due') }}"> <a href="{{ route('assets.audit.due') }}">
<i class="fas fa-history text-yellow fa-fw"></i> {{ trans('general.audit_due') }} <i class="fas fa-history text-yellow fa-fw"></i> {{ trans('general.audit_due') }}
<badge class="badge">{{ (isset($total_due_and_overdue_for_audit)) ? $total_due_and_overdue_for_audit : '' }}</badge> <span class="badge">{{ (isset($total_due_and_overdue_for_audit)) ? $total_due_and_overdue_for_audit : '' }}</span>
</a> </a>
</li> </li>
@endcan @endcan
@ -518,7 +518,7 @@
<li{!! (Request::is('hardware/checkins/due') ? ' class="active"' : '') !!}> <li{!! (Request::is('hardware/checkins/due') ? ' class="active"' : '') !!}>
<a href="{{ route('assets.checkins.due') }}"> <a href="{{ route('assets.checkins.due') }}">
<i class="fas fa-history text-yellow fa-fw"></i> {{ trans('general.checkin_due') }} <i class="fas fa-history text-yellow fa-fw"></i> {{ trans('general.checkin_due') }}
<badge class="badge">{{ (isset($total_due_and_overdue_for_checkin)) ? $total_due_and_overdue_for_checkin : '' }}</badge> <span class="badge">{{ (isset($total_due_and_overdue_for_checkin)) ? $total_due_and_overdue_for_checkin : '' }}</span>
</a> </a>
</li> </li>
@endcan @endcan