added menu
This commit is contained in:
@@ -215,7 +215,15 @@
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if (userCan('sales.stats.view')) : ?>
|
||||
<?php
|
||||
$canSeeSales =
|
||||
userCan('sales.stats.view')
|
||||
|| userCan('sales.matrici.view')
|
||||
|| userCan('sales.quote.view')
|
||||
|| userCan('sales.deliveries.view');
|
||||
?>
|
||||
|
||||
<?php if ($canSeeSales) : ?>
|
||||
<li>
|
||||
<a href="javascript:;" class="has-arrow">
|
||||
<div class="parent-icon">
|
||||
@@ -225,31 +233,52 @@
|
||||
</a>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="sales_summary.php">
|
||||
<i class='fa-solid fa-gauge-high'></i>Sommario
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_orders_stats.php">
|
||||
<i class='bx bx-radio-circle'></i>Andamento ordini
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_orders_years.php">
|
||||
<i class='bx bx-radio-circle'></i>Confronto anni
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_customer.php">
|
||||
<i class='fa-solid fa-address-card'></i>Scheda cliente
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_orders_deliveries.php">
|
||||
<i class='bx bx-radio-circle'></i>Consegne
|
||||
</a>
|
||||
</li>
|
||||
<?php if (userCan('sales.stats.view')) : ?>
|
||||
<li>
|
||||
<a href="sales_summary.php">
|
||||
<i class='fa-solid fa-gauge-high'></i>Sommario
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_orders_stats.php">
|
||||
<i class='bx bx-radio-circle'></i>Andamento ordini
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_orders_years.php">
|
||||
<i class='bx bx-radio-circle'></i>Confronto anni
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sales_customer.php">
|
||||
<i class='fa-solid fa-address-card'></i>Scheda cliente
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (userCan('sales.matrici.view')) : ?>
|
||||
<li>
|
||||
<a href="sales_matrici.php">
|
||||
<i class='fa-solid fa-shapes'></i>Matrici e prezzi
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (userCan('sales.quote.view')) : ?>
|
||||
<li>
|
||||
<a href="sales_preventivo.php">
|
||||
<i class='fa-solid fa-calculator'></i>Preventivo
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (userCan('sales.deliveries.view')) : ?>
|
||||
<li>
|
||||
<a href="sales_orders_deliveries.php">
|
||||
<i class='bx bx-radio-circle'></i>Consegne
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -78,7 +78,7 @@ $dashboardSections = [
|
||||
[
|
||||
'id' => 'secVendite',
|
||||
'title' => 'Business Overview',
|
||||
'subtitle' => 'Ordini clienti, fatturato, clienti e consegne (dati Mago)',
|
||||
'subtitle' => 'Ordini, fatturato, clienti, prezzi e margini delle matrici, preventivi e consegne (dati Mago)',
|
||||
'icon' => '💶',
|
||||
'open' => false,
|
||||
'buttons' => [
|
||||
@@ -110,6 +110,20 @@ $dashboardSections = [
|
||||
'url' => 'sales_customer.php',
|
||||
'permission' => 'sales.stats.view',
|
||||
],
|
||||
[
|
||||
'label' => 'Matrici e prezzi',
|
||||
'icon' => '💎',
|
||||
'class' => 'btn-sales-matrici',
|
||||
'url' => 'sales_matrici.php',
|
||||
'permission' => 'sales.matrici.view',
|
||||
],
|
||||
[
|
||||
'label' => 'Preventivo',
|
||||
'icon' => '🧮',
|
||||
'class' => 'btn-sales-quote',
|
||||
'url' => 'sales_preventivo.php',
|
||||
'permission' => 'sales.quote.view',
|
||||
],
|
||||
[
|
||||
'label' => 'Consegne',
|
||||
'icon' => '🚚',
|
||||
@@ -547,6 +561,16 @@ $dashboardSections = [
|
||||
background: linear-gradient(135deg, #fde68a, #fef3c7);
|
||||
}
|
||||
|
||||
.btn-sales-matrici {
|
||||
background: linear-gradient(135deg, #ddd6fe, #ede9fe);
|
||||
color: #4c1d95;
|
||||
}
|
||||
|
||||
.btn-sales-quote {
|
||||
background: linear-gradient(135deg, #99f6e4, #ccfbf1);
|
||||
color: #134e4a;
|
||||
}
|
||||
|
||||
/* Tablet/mobile */
|
||||
@media (max-width: 992px) {
|
||||
.dashboard-grid {
|
||||
|
||||
Reference in New Issue
Block a user