You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_statistics.php 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. use common\helpers\AdminLTE;
  3. use common\helpers\Price;
  4. ?>
  5. <div class="row">
  6. <div class="col-lg-6 col-xs-6">
  7. <?= AdminLTE::smallBox(
  8. Price::format($turnoverLastThirtyDays, 0),
  9. 'CA producteurs sur les 30 derniers jours',
  10. 'aqua',
  11. 'line-chart',
  12. Yii::$app->urlManager->createUrl('stats-admin/turnover')
  13. ) ?>
  14. </div>
  15. <div class="col-lg-6 col-xs-6">
  16. <?= AdminLTE::smallBox(
  17. $averageOrdersPerDay,
  18. 'Commandes clients / jour sur les 7 derniers jours',
  19. 'aqua',
  20. 'shopping-cart',
  21. Yii::$app->urlManager->createUrl('stats-admin/turnover')
  22. ) ?>
  23. </div>
  24. </div>
  25. <div class="row">
  26. <div class="col-lg-6 col-xs-6">
  27. <?= AdminLTE::smallBox(
  28. $countProducersActive,
  29. 'Producteurs actifs sur les 3 derniers mois',
  30. 'aqua',
  31. 'user'
  32. ) ?>
  33. </div>
  34. <div class="col-lg-6 col-xs-6">
  35. <?= AdminLTE::smallBox(
  36. $countUsersActive,
  37. 'Clients actifs sur les 3 derniers mois',
  38. 'aqua',
  39. 'users'
  40. ) ?>
  41. </div>
  42. </div>
  43. <div class="row">
  44. <div class="col-lg-6 col-xs-6">
  45. <?= AdminLTE::smallBox(
  46. $countPointSalesActive,
  47. 'Points de vente actifs sur les 3 derniers mois',
  48. 'aqua',
  49. 'map-marker'
  50. ) ?>
  51. </div>
  52. <div class="col-lg-6 col-xs-6">
  53. <?= AdminLTE::smallBox(
  54. $numberVisitsDay,
  55. 'Visites / jour en moyenne sur les 30 derniers jours',
  56. 'aqua',
  57. 'eye'
  58. ) ?>
  59. </div>
  60. </div>
  61. <div class="row">
  62. <div class="col-lg-6 col-xs-6">
  63. <?= AdminLTE::smallBox(
  64. Price::format($amountToBillCurrentMonth, 0),
  65. 'Total factures producteurs mois en cours',
  66. 'green',
  67. 'euro',
  68. Yii::$app->urlManager->createUrl('producer-admin/index')
  69. ) ?>
  70. </div>
  71. <div class="col-lg-6 col-xs-6">
  72. <?= AdminLTE::smallBox(
  73. Price::format($amountBilledLastMonth, 0),
  74. 'Total factures producteurs du mois dernier',
  75. 'green',
  76. 'euro',
  77. Yii::$app->urlManager->createUrl('producer-admin/index')
  78. ) ?>
  79. </div>
  80. </div>
  81. <div class="row">
  82. <div class="col-lg-6 col-xs-6">
  83. <?= AdminLTE::smallBox(
  84. Price::format($amountProducerUnpaidInvoices, 0),
  85. 'Montant factures producteurs impayées',
  86. 'red',
  87. 'euro',
  88. Yii::$app->parameterBag->get('dolibarrUrl') . 'compta/facture/list.php?leftmenu=customers_bills_notpaid&search_status=1'
  89. ) ?>
  90. </div>
  91. </div>