show.blade.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @extends('layouts.master')
  2. @section('title') @lang('translation.Customers') @endsection
  3. @section('css')
  4. <!-- DataTables -->
  5. <link href="{{ URL::asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
  6. <!-- <link href="https://cdn.datatables.net/searchpanes/2.1.0/css/searchPanes.bootstrap4.min.css" rel="stylesheet" type="text/css" />
  7. <link href="https://cdn.datatables.net/select/1.5.0/css/select.bootstrap4.min.css" rel="stylesheet" type="text/css" /> -->
  8. @endsection
  9. @section('content')
  10. @component('components.breadcrumb')
  11. @slot('li_1') Ecommerce @endslot
  12. @slot('title') {{ $user->user_type }} @endslot
  13. @endcomponent
  14. <div class="col-md-12">
  15. <div class="card">
  16. <div class="card-header">Asset {{ $user->id }}</div>
  17. <div class="card-body">
  18. @if($user->user_type == 'Subscribers' || $user->user_type == 'Corporate')
  19. <?php $link = route('admin.customers') ?>
  20. @elseif($user->user_type == 'Driver')
  21. <?php $link = route('admin.angels') ?>
  22. @else
  23. <?php $link = '#' ?>
  24. @endif
  25. <a href="{{ $link }}" title="Back"><button class="btn btn-warning btn-sm"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</button></a>
  26. <a href="{{ url('/admin/assets/' . $user->id . '/edit') }}" title="Edit Asset"><button class="btn btn-primary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</button></a>
  27. <form method="POST" action="{{ url('admin/assets' . '/' . $user->id) }}" accept-charset="UTF-8" style="display:inline">
  28. {{ method_field('DELETE') }}
  29. {{ csrf_field() }}
  30. <button type="submit" class="btn btn-danger btn-sm" title="Delete Asset" onclick="return confirm(&quot;Confirm delete?&quot;)"><i class="fa fa-trash-o" aria-hidden="true"></i> Delete</button>
  31. </form>
  32. <br/>
  33. <br/>
  34. <div class="table-responsive">
  35. <table class="table">
  36. <tbody>
  37. <tr><th>ID</th><td>{{ $user->id }}</td></tr>
  38. <tr><th> Name </th><td> {{ $user->name }} </td></tr>
  39. <tr><th>Email</th><td> {{ $user->email }} </td></tr>
  40. <tr><th>User Country Code</th><td> {{ $user->userData->user_country_code }} </td></tr>
  41. <tr><th>Phone Number</th><td> {{ $user->phone_number }} </td></tr>
  42. <tr><th>User Type </th><td> {{ $user->user_type }} </td></tr>
  43. <tr><th>Referral Code</th><td> {{ $user->userData->referral_code }} </td></tr>
  44. <tr><th>Referred By</th><td> {{ $user->userData->referred_by }} </td></tr>
  45. <tr><th> Wallet Amount </th><td> {{ $user->userData->wallet_amount }} </td></tr>
  46. <tr><th> Device Type </th><td> {{ $user->userData->device_type }} </td></tr>
  47. <tr><th> Device ID </th><td> {{ $user->userData->device_id }} </td></tr>
  48. <tr><th> Image </th><td> {{ $user->userData->image }} </td></tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. <h4>Wallet Histry</h4>
  53. <?php $i=0 ?>
  54. <div class="table-responsive">
  55. <table id="datatable" class="table align-middle table-nowrap">
  56. <thead>
  57. <tr>
  58. <th>#</th>
  59. <th>Transaction Type</th>
  60. <th> Purpose</th>
  61. <th> Transaction Details</th>
  62. <th>Transaction ID</th>
  63. <th>Amount</th>
  64. <th>Amount Added At</th>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. @if($walletHistories)
  69. @foreach ($walletHistories as $walletHistory)
  70. <tr>
  71. <td>{{ ++$i }}</td>
  72. <td>{{ $walletHistory->transaction_type }}</td>
  73. <td>{{ $walletHistory->purpose }}</td>
  74. <td>{{ $walletHistory->transaction_details }}</td>
  75. <td>{{ $walletHistory->UserData }}</td>
  76. <td>{{ $walletHistory->transaction_id }}</td>
  77. <td>{{ $walletHistory->amount }}</td>
  78. <td>{{ $walletHistory->created_at }}</td>
  79. </tr>
  80. @endforeach
  81. @endif
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <!-- end row -->
  89. @endsection
  90. @section('script')
  91. <!-- Required datatable js -->
  92. <script src="{{ URL::asset('/assets/libs/datatables/datatables.min.js') }}"></script>
  93. <script src="{{ URL::asset('/assets/libs/jszip/jszip.min.js') }}"></script>
  94. <script src="{{ URL::asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
  95. <!-- Datatable init js -->
  96. <script src="{{ URL::asset('/assets/js/pages/datatables.init.js') }}"></script>
  97. <!-- <script src="https://cdn.datatables.net/searchpanes/2.1.0/js/dataTables.searchPanes.min.js"></script>
  98. <script src="https://cdn.datatables.net/searchpanes/2.1.0/js/searchPanes.bootstrap4.min.js"></script>
  99. <script src="https://cdn.datatables.net/select/1.5.0/js/dataTables.select.min.js"></script> -->
  100. <script type="text/javascript">
  101. $(document).ready(function(){
  102. // var table = $('#datatable-assets').DataTable({
  103. // searchPanes: true
  104. // });
  105. // table.searchPanes.container().prependTo(table.table().container());
  106. // table.searchPanes.resizePanes();
  107. });
  108. </script>
  109. @endsection