added sales dashboard
This commit is contained in:
@@ -129,6 +129,8 @@ class LoginController extends Controller
|
|||||||
return redirect()->to('userarea/production_dashboard.php');
|
return redirect()->to('userarea/production_dashboard.php');
|
||||||
} elseif ($user->hasRole('TechOffice')) {
|
} elseif ($user->hasRole('TechOffice')) {
|
||||||
return redirect()->to('userarea/production_dashboard.php');
|
return redirect()->to('userarea/production_dashboard.php');
|
||||||
|
} elseif ($user->hasRole('Sales')) {
|
||||||
|
return redirect()->to('userarea/production_dashboard.php');
|
||||||
}
|
}
|
||||||
// Se il ruolo non è specificato, reindirizza alla home predefinita
|
// Se il ruolo non è specificato, reindirizza alla home predefinita
|
||||||
return redirect()->intended('/');
|
return redirect()->intended('/');
|
||||||
|
|||||||
@@ -75,6 +75,50 @@ $dashboardSections = [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'id' => 'secVendite',
|
||||||
|
'title' => 'Vendite',
|
||||||
|
'subtitle' => 'Ordini clienti, fatturato, clienti e consegne (dati Mago)',
|
||||||
|
'icon' => '💶',
|
||||||
|
'open' => false,
|
||||||
|
'buttons' => [
|
||||||
|
[
|
||||||
|
'label' => 'Sommario',
|
||||||
|
'icon' => '🚦',
|
||||||
|
'class' => 'btn-sales-summary',
|
||||||
|
'url' => 'sales_summary.php',
|
||||||
|
'permission' => 'sales.stats.view',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Andamento ordini',
|
||||||
|
'icon' => '🧾',
|
||||||
|
'class' => 'btn-sales',
|
||||||
|
'url' => 'sales_orders_stats.php',
|
||||||
|
'permission' => 'sales.stats.view',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Confronto anni',
|
||||||
|
'icon' => '📊',
|
||||||
|
'class' => 'btn-sales',
|
||||||
|
'url' => 'sales_orders_years.php',
|
||||||
|
'permission' => 'sales.stats.view',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Scheda cliente',
|
||||||
|
'icon' => '🪪',
|
||||||
|
'class' => 'btn-sales',
|
||||||
|
'url' => 'sales_customer.php',
|
||||||
|
'permission' => 'sales.stats.view',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Consegne',
|
||||||
|
'icon' => '🚚',
|
||||||
|
'class' => 'btn-sales-deliveries',
|
||||||
|
'url' => 'sales_orders_deliveries.php',
|
||||||
|
'permission' => 'sales.deliveries.view',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'id' => 'secAnagrafiche',
|
'id' => 'secAnagrafiche',
|
||||||
'title' => 'Anagrafiche',
|
'title' => 'Anagrafiche',
|
||||||
@@ -490,6 +534,19 @@ $dashboardSections = [
|
|||||||
background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
|
background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-sales-summary {
|
||||||
|
background: linear-gradient(135deg, #198754, #3bb77e);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-sales {
|
||||||
|
background: linear-gradient(135deg, #b9ebc7, #dcf7e4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-sales-deliveries {
|
||||||
|
background: linear-gradient(135deg, #fde68a, #fef3c7);
|
||||||
|
}
|
||||||
|
|
||||||
/* Tablet/mobile */
|
/* Tablet/mobile */
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
.dashboard-grid {
|
.dashboard-grid {
|
||||||
|
|||||||
Reference in New Issue
Block a user