PageRenderTime 71ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/application/views/delivery_boy/pages/forms/home.php

https://gitlab.com/Anas7232/Layout-Changes
PHP | 133 lines | 133 code | 0 blank | 0 comment | 3 complexity | d4b2cdca3a06f69a8b87e137c9b6e5a4 MD5 | raw file
  1. <div class="content-wrapper">
  2. <section class="content">
  3. <div class="container-fluid">
  4. <div class="row pt-4">
  5. <div class="col-xl col-lg col-md col-12">
  6. <div class="card pull-up">
  7. <div class="card-content">
  8. <div class="card-body">
  9. <div class="media d-flex">
  10. <div class="align-self-center text-warning">
  11. <i class="ion-ios-cart-outline display-4"></i>
  12. </div>
  13. <div class="media-body text-right">
  14. <h5 class="text-muted text-bold-500">Orders</h5>
  15. <h3 class="text-bold-600"><?= $order_counter ?></h3>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <?php if ($bonus > 0 && $bonus != null) { ?>
  23. <div class="col-xl-3 col-lg-6 col-md-6 col-12">
  24. <div class="card pull-up">
  25. <div class="card-content">
  26. <div class="card-body">
  27. <div class="media d-flex">
  28. <div class="align-self-center text-primary">
  29. <i class="fas fa-wallet fa-3x"></i>
  30. </div>
  31. <div class="media-body text-right">
  32. <h5 class="text-muted text-bold-500">Bonus</h5>
  33. <h3 class="text-bold-600"><?= $bonus ?></h3>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <?php } ?>
  41. <div class="col-xl col-lg col-md col-12">
  42. <div class="card pull-up">
  43. <div class="card-content">
  44. <div class="card-body">
  45. <div class="media d-flex">
  46. <div class="align-self-center text-success">
  47. <i class="ion-cash display-4"></i>
  48. </div>
  49. <div class="media-body text-right">
  50. <h5 class="text-muted text-bold-500">Balance</h5>
  51. <h3 class="text-bold-600"><?= $curreny . ' ' . number_format($balance, 2) ?></h3>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-md-12 main-content">
  59. <div class="card content-area p-4">
  60. <div class="card-innr">
  61. <div class="gaps-1-5x row d-flex adjust-items-center">
  62. <div class="row col-md-12">
  63. <div class="form-group col-md-4">
  64. <label>Date and time range:</label>
  65. <div class="input-group col-md-12">
  66. <div class="input-group-prepend">
  67. <span class="input-group-text"><i class="far fa-clock"></i></span>
  68. </div>
  69. <input type="text" class="form-control float-right" id="datepicker">
  70. <input type="hidden" id="start_date" class="form-control float-right">
  71. <input type="hidden" id="end_date" class="form-control float-right">
  72. </div>
  73. <!-- /.input group -->
  74. </div>
  75. <div class="form-group col-md-4">
  76. <div>
  77. <label>Filter By status</label>
  78. <select id="order_status" name="order_status" placeholder="Select Status" required="" class="form-control">
  79. <option value="">All Orders</option>
  80. <option value="received">Received</option>
  81. <option value="processed">Processed</option>
  82. <option value="shipped">Shipped</option>
  83. <option value="delivered">Delivered</option>
  84. <option value="cancelled">Cancelled</option>
  85. <option value="returned">Returned</option>
  86. </select>
  87. </div>
  88. </div>
  89. <div class="form-group col-md-4 d-flex align-items-center pt-4">
  90. <button type="button" class="btn btn-outline-primary btn-sm" onclick="status_date_wise_search()">Filter</button>
  91. </div>
  92. </div>
  93. </div>
  94. <table class='table-striped' data-toggle="table" data-url="<?= base_url('delivery_boy/orders/view_orders') ?>" data-click-to-select="true" data-side-pagination="server" data-pagination="true" data-page-list="[5, 10, 20, 50, 100, 200]" data-search="true" data-show-columns="true" data-show-refresh="true" data-trim-on-search="false" data-sort-name="id" data-sort-order="desc" data-mobile-responsive="true" data-toolbar=""
  95. data-show-export="true" data-maintain-selected="true" data-export-types='["txt","excel"]' data-export-options='{
  96. "fileName": "orders-list",
  97. "ignoreColumn": ["state"]
  98. }' data-query-params="home_query_params">
  99. <thead>
  100. <tr>
  101. <th data-field="id" data-sortable='true' data-footer-formatter="totalFormatter">Order ID</th>
  102. <th data-field="user_id" data-sortable='true' data-visible="false">User ID</th>
  103. <th data-field="qty" data-sortable='true' data-visible="false">Qty</th>
  104. <th data-field="name" data-sortable='true'>User Name</th>
  105. <th data-field="notes" data-sortable='false' data-visible='false'>O. Notes</th>
  106. <th data-field="mobile" data-sortable='true'>Mobile</th>
  107. <th data-field="items" data-sortable='true' data-visible="false">Items</th>
  108. <th data-field="total" data-sortable='true' data-visible="true">Total(<?= $curreny ?>)</th>
  109. <th data-field="delivery_charge" data-sortable='true' data-footer-formatter="delivery_chargeFormatter">D.Charge(<?= $curreny ?>)</th>
  110. <th data-field="wallet_balance" data-sortable='true' data-visible="true">Wallet Used(<?= $curreny ?>)</th>
  111. <th data-field="promo_code" data-sortable='true' data-visible="false">Promo Code</th>
  112. <th data-field="promo_discount" data-sortable='true' data-visible="true">Promo disc.(<?= $curreny ?>)</th>
  113. <th data-field="discount" data-sortable='true' data-visible="true">Discount <?= $curreny ?>(%)</th>
  114. <th data-field="final_total" data-sortable='true'>Final Total(<?= $curreny ?>)</th>
  115. <th data-field="deliver_by" data-sortable='true' data-visible='false'>Deliver By</th>
  116. <th data-field="payment_method" data-sortable='true' data-visible="true">Payment Method</th>
  117. <th data-field="address" data-sortable='true'>Address</th>
  118. <th data-field="delivery_time" data-sortable='true' data-visible='false'>Delivery Time</th>
  119. <th data-field="delivery_date" data-sortable='true' data-visible='false'>Delivery Date</th>
  120. <th data-field="status" data-sortable='true' data-visible='false'>Status</th>
  121. <th data-field="active_status" data-sortable='true' data-visible='true'>Active Status</th>
  122. <th data-field="date_added" data-sortable='true'>Order Date</th>
  123. <th data-field="operate">Action</th>
  124. </tr>
  125. </thead>
  126. </table>
  127. </div><!-- .card-innr -->
  128. </div><!-- .card -->
  129. </div>
  130. </div>
  131. </div>
  132. </section>
  133. </div>