|
@@ -4,28 +4,64 @@
|
|
|
*/
|
|
*/
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
-<div class="row mb-3">
|
|
|
|
|
- <div class="col">
|
|
|
|
|
- <h3><?=htmlspecialchars(__("Dashboard"))?></h3>
|
|
|
|
|
- </div>
|
|
|
|
|
-</div>
|
|
|
|
|
|
|
|
|
|
-<div class="row g-3">
|
|
|
|
|
- <?php
|
|
|
|
|
- foreach($cards as $card) {
|
|
|
|
|
- $url = $card["url"] ?? "#";
|
|
|
|
|
- ?>
|
|
|
|
|
- <div class="col-6 col-md-4 col-lg-3">
|
|
|
|
|
- <a class="btn btn-light p-3 d-block" href="<?=htmlspecialchars($url)?>" style="box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);">
|
|
|
|
|
- <?=htmlspecialchars($card["title"])?>
|
|
|
|
|
- <br />
|
|
|
|
|
- <div class="fa-2x">
|
|
|
|
|
- <?=htmlspecialchars(number_format($card["count"]))?>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+<section class="mb-4">
|
|
|
|
|
+ <div class="row mb-3">
|
|
|
|
|
+ <div class="col">
|
|
|
|
|
+ <h3><?=htmlspecialchars(__("Dashboard"))?></h3>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="row g-3">
|
|
|
<?php
|
|
<?php
|
|
|
- }
|
|
|
|
|
|
|
+ foreach($cards as $card) {
|
|
|
|
|
+ $url = $card["url"] ?? "#";
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div class="col-6 col-md-4 col-lg-3">
|
|
|
|
|
+ <a class="btn btn-light p-3 d-block" href="<?=htmlspecialchars($url)?>" style="box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);">
|
|
|
|
|
+ <?=htmlspecialchars($card["title"])?>
|
|
|
|
|
+ <br />
|
|
|
|
|
+ <div class="fa-2x">
|
|
|
|
|
+ <?=htmlspecialchars(number_format($card["count"]))?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</section>
|
|
|
|
|
+
|
|
|
|
|
+<section class="mb-4">
|
|
|
|
|
+ <div class="row mb-3">
|
|
|
|
|
+ <div class="col">
|
|
|
|
|
+ <h3><?=htmlspecialchars(__("Shortcuts"))?></h3>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <?php
|
|
|
|
|
+ $shortcuts = [
|
|
|
|
|
+ ["id" => "new-sale-button", "label" => __("New Lead"), "url" => "/leads"],
|
|
|
|
|
+ ["id" => "new-document-button", "label" => __("New Goods-In"), "url" => "/goods-in"],
|
|
|
|
|
+ ["id" => "new-document-button", "label" => __("New ARU"), "url" => "/arus"],
|
|
|
|
|
+ ["id" => "new-ticket-button", "label" => __("New Ticket"), "url" => "/tickets"],
|
|
|
|
|
+ ];
|
|
|
?>
|
|
?>
|
|
|
-</div>
|
|
|
|
|
-<?php
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="row g-3">
|
|
|
|
|
+ <?php
|
|
|
|
|
+ foreach($shortcuts as $shortcut) {
|
|
|
|
|
+ $id = $shortcut["id"];
|
|
|
|
|
+ $label = $shortcut["label"];
|
|
|
|
|
+ $url = $shortcut["url"];
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div class="col-6 col-md-4 col-lg-3">
|
|
|
|
|
+ <a href="<?=htmlspecialchars($url)?>?auto_click_target=%23<?=htmlspecialchars($id)?>" class="btn d-block btn-outline-dark">
|
|
|
|
|
+ <i class="fa fa-fw fa-plus"></i>
|
|
|
|
|
+ <?=htmlspecialchars($label)?>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</section>
|