Browse Source

améliore les totaux

master
vince vince 1 year ago
parent
commit
aa13504ed7
1 changed files with 22 additions and 12 deletions
  1. +22
    -12
      index.php

+ 22
- 12
index.php View File

@ -639,18 +639,28 @@ $linkUrl = !$hasSupplier ? generateUrl() : (!$hasEvent ? generateUrl($supplier)
</div>
<?php endif; ?>
<div class="col-12">
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
Commandes
<span class="badge bg-primary rounded-pill"><?php echo count($items); ?></span>
</li>
<?php foreach ($stats as $choice => $count) : ?>
<li class="list-group-item d-flex justify-content-between align-items-center">
<?php echo $choice; ?>
<span class="badge bg-secondary rounded-pill"><?php echo $count; ?></span>
</li>
<?php endforeach; ?>
</ul>
<div class="accordion accordion-flush">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#accordion1" aria-expanded="false">
Commandes
<span class="badge bg-primary rounded-pill ms-1"><?php echo count($items); ?></span>
</button>
</h2>
<div id="accordion1" class="accordion-collapse collapse">
<div class="accordion-body">
<ul class="list-group">
<?php foreach ($stats as $choice => $count) : ?>
<li class="list-group-item d-flex justify-content-between align-items-center">
<?php echo $choice; ?>
<span class="badge bg-secondary rounded-pill"><?php echo $count; ?></span>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</section>


Loading…
Cancel
Save