Fix minore

This commit is contained in:
Pek5892 2023-05-29 14:07:44 +02:00
parent a0a778ab79
commit 70ff08edd3
1 changed files with 5 additions and 2 deletions

View File

@ -554,13 +554,16 @@ if (Auth::check()) {
// Tab per le checklist
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 '
<li data-toggle="control-sidebar" class="btn-default">
<a class="bg-info" data-toggle="tab" href="#tab_checks" id="link-tab_checks">
'.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>
</li>';
}