added menu
This commit is contained in:
@@ -215,7 +215,15 @@
|
|||||||
<?php endif; ?>
|
<?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>
|
<li>
|
||||||
<a href="javascript:;" class="has-arrow">
|
<a href="javascript:;" class="has-arrow">
|
||||||
<div class="parent-icon">
|
<div class="parent-icon">
|
||||||
@@ -225,6 +233,7 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
<?php if (userCan('sales.stats.view')) : ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="sales_summary.php">
|
<a href="sales_summary.php">
|
||||||
<i class='fa-solid fa-gauge-high'></i>Sommario
|
<i class='fa-solid fa-gauge-high'></i>Sommario
|
||||||
@@ -245,11 +254,31 @@
|
|||||||
<i class='fa-solid fa-address-card'></i>Scheda cliente
|
<i class='fa-solid fa-address-card'></i>Scheda cliente
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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>
|
<li>
|
||||||
<a href="sales_orders_deliveries.php">
|
<a href="sales_orders_deliveries.php">
|
||||||
<i class='bx bx-radio-circle'></i>Consegne
|
<i class='bx bx-radio-circle'></i>Consegne
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ $dashboardSections = [
|
|||||||
[
|
[
|
||||||
'id' => 'secVendite',
|
'id' => 'secVendite',
|
||||||
'title' => 'Business Overview',
|
'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' => '💶',
|
'icon' => '💶',
|
||||||
'open' => false,
|
'open' => false,
|
||||||
'buttons' => [
|
'buttons' => [
|
||||||
@@ -110,6 +110,20 @@ $dashboardSections = [
|
|||||||
'url' => 'sales_customer.php',
|
'url' => 'sales_customer.php',
|
||||||
'permission' => 'sales.stats.view',
|
'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',
|
'label' => 'Consegne',
|
||||||
'icon' => '🚚',
|
'icon' => '🚚',
|
||||||
@@ -547,6 +561,16 @@ $dashboardSections = [
|
|||||||
background: linear-gradient(135deg, #fde68a, #fef3c7);
|
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 */
|
/* Tablet/mobile */
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
.dashboard-grid {
|
.dashboard-grid {
|
||||||
|
|||||||
Reference in New Issue
Block a user