order-list.blade.php 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. @extends('views.layouts.master')
  2. @section('content')
  3. <!--inner Title Start -->
  4. <div class="sms_title_main_wrapper">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  8. <div class="sms_inner_title_heading full_width">
  9. <h2>주문 내역</h2>
  10. <ul>
  11. <li><a href="#">My Page</a> &nbsp;&nbsp;&nbsp;/</li>
  12. <li>Order List</li>
  13. </ul>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <!-- inner Title End -->
  20. <!-- tabOne section start -->
  21. <div class="tabOne ptb-100 order_list">
  22. <div class="container">
  23. <div class="row">
  24. @include('views.my-page.left-sidebar')
  25. <!-- /.col-md-2 -->
  26. <div class="right col-xl-10 col-lg-9 col-md-9 col-sm-12 col-12">
  27. <div class="card_1 balance">
  28. <div class="info_box">
  29. <div>
  30. 전체 주문 금액
  31. <strong id="sorder-total"> {{ $total }} 원</strong>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="card_1" id="modal-order">
  36. <h6>거래 내역</h6>
  37. <div class="table-responsive">
  38. <table class="table table-row cart-table" style="table-layout: fixed; min-width:747px;">
  39. <thead>
  40. <tr>
  41. <th style="width:6%">No</th>
  42. <th style="width:24%">주문번호</th>
  43. <th >대표품목</th>
  44. <th style="width:20%">주문금액</th>
  45. <th style="width:20%">상태</th>
  46. </tr>
  47. </thead>
  48. <tbody id="order-table-body">
  49. @php $no = count($orderPage['Page'] ?? []) @endphp
  50. @forelse ($orderPage['Page'] ?? [] as $order)
  51. <tr>
  52. <td>{{ $no-- }}</td>
  53. <td>{{ $order['SorderNo'] }}</td>
  54. <td>{{ $order['Item'] }}</td>
  55. <td><span class="txt_plus">₩ {{ number_format($order['SorderTotal']) }}</span></td>
  56. <td>{{ DataConverter::execute($order['Status'], "status('sorder')") }}</td>
  57. </tr>
  58. @empty
  59. <tr><td class="text-center" colspan="5">데이터가 없습니다</td></tr>
  60. @endforelse
  61. </tbody>
  62. </table>
  63. </div>
  64. <div class="d-flex flex-column flex-md-row align-items-center mt-2 mt-md-0">
  65. <!-- 페이지네이션 시작 -->
  66. @component('views.partial.table-options')
  67. @endcomponent
  68. <div>
  69. {{ $orderPage['Page']->appends(['limit' => request('limit')])->links() }}
  70. </div>
  71. <!--// 페이지네이션 끝 -->
  72. </div>
  73. </div>
  74. </div>
  75. <!-- /.col-md-10 -->
  76. </div>
  77. <!-- /.row -->
  78. </div>
  79. <!-- /.container -->
  80. </div>
  81. <!-- tabOne section end -->
  82. @endsection