index.blade.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @extends('layouts.main')
  2. @section('content')
  3. <!-- CONTENT HEADER -->
  4. <section class="content-header">
  5. <div class="container-fluid">
  6. <div class="row mb-2">
  7. <div class="col-sm-6">
  8. <h1>{{ __('Payments') }}</h1>
  9. </div>
  10. <div class="col-sm-6">
  11. <ol class="breadcrumb float-sm-right">
  12. <li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
  13. <li class="breadcrumb-item"><a class="text-muted"
  14. href="{{ route('admin.payments.index') }}">{{ __('Payments') }}</a>
  15. </li>
  16. </ol>
  17. </div>
  18. </div>
  19. </div>
  20. </section>
  21. <!-- END CONTENT HEADER -->
  22. <!-- MAIN CONTENT -->
  23. <section class="content">
  24. <div class="container-fluid">
  25. <div class="card">
  26. <div class="card-header">
  27. <h5 class="card-title"><i class="fas fa-money-bill-wave mr-2"></i>{{ __('Payments') }}</h5>
  28. </div>
  29. <div class="card-body table-responsive">
  30. <table id="datatable" class="table table-striped">
  31. <thead>
  32. <tr>
  33. <th>{{ __('ID') }}</th>
  34. <th>{{ __('Type') }}</th>
  35. <th>{{ __('Amount') }}</th>
  36. <th>{{ __('Product Price') }}</th>
  37. <th>{{ __('Tax Value') }}</th>
  38. <th>{{ __('Tax Percentage') }}</th>
  39. <th>{{ __('Total Price') }}</th>
  40. <th>{{ __('Payment ID') }}</th>
  41. <th>{{ __('Payment Method') }}</th>
  42. <th>{{ __('Created at') }}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. </div>
  51. <!-- END CUSTOM CONTENT -->
  52. </div>
  53. </section>
  54. <!-- END CONTENT -->
  55. <script>
  56. document.addEventListener("DOMContentLoaded", function() {
  57. $('#datatable').DataTable({
  58. processing: true,
  59. serverSide: true,
  60. stateSave: true,
  61. ajax: "{{ route('admin.payments.datatable') }}",
  62. columns: [
  63. {data: 'id',name: 'payments.id'},
  64. {data: 'type'},
  65. {data: 'amount'},
  66. {data: 'price'},
  67. {data: 'tax_value'},
  68. {data: 'tax_percent'},
  69. {data: 'total_price'},
  70. {data: 'payment_id'},
  71. {data: 'payment_method'},
  72. {data: 'created_at'},
  73. ],
  74. fnDrawCallback: function(oSettings) {
  75. $('[data-toggle="popover"]').popover();
  76. },
  77. });
  78. });
  79. </script>
  80. @endsection