Fix minore
This commit is contained in:
parent
a0a778ab79
commit
70ff08edd3
|
@ -554,13 +554,16 @@ if (Auth::check()) {
|
||||||
|
|
||||||
// Tab per le checklist
|
// Tab per le checklist
|
||||||
if ($structure->permission != '-' && $structure->use_checklists) {
|
if ($structure->permission != '-' && $structure->use_checklists) {
|
||||||
$checklists = $structure->checks()->where('checked_at', null)->get();
|
$checklists_unchecked = $structure->checks()->where('checked_at', null)->get();
|
||||||
|
$checklists_total = $structure->checks()->get();
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<li data-toggle="control-sidebar" class="btn-default">
|
<li data-toggle="control-sidebar" class="btn-default">
|
||||||
<a class="bg-info" data-toggle="tab" href="#tab_checks" id="link-tab_checks">
|
<a class="bg-info" data-toggle="tab" href="#tab_checks" id="link-tab_checks">
|
||||||
'.tr('Checklist').'
|
'.tr('Checklist').'
|
||||||
<span class="badge pull-right">'.($checklists->count() ?: '').'</span>
|
<span class="badge pull-right">'.($checklists_total->count() ?: '').'</span>
|
||||||
|
<span class="pull-right">'.tr(' / ').'</span>
|
||||||
|
<span class="badge pull-right">'.($checklists_unchecked->count() ?: '').'</span>
|
||||||
</a>
|
</a>
|
||||||
</li>';
|
</li>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue