detail.blade.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
  4. @endsection
  5. @section('content')
  6. <div class="page-content container">
  7. <!--{{$referral}}-->
  8. <div class="panel">
  9. <div class="panel-heading">
  10. <h2 class="panel-title">提现申请详情</h2>
  11. <div class="panel-actions">
  12. @if($referral->status === -1)
  13. <span class="badge badge-lg badge-danger"> 已驳回 </span>
  14. @elseif($referral->status === 2)
  15. <span class="badge badge-lg badge-success"> 已打款 </span>
  16. @endif
  17. <a href="{{route('admin.aff.index')}}" class="btn btn-danger"> 返 回</a>
  18. </div>
  19. </div>
  20. <div class="panel-body">
  21. <div class="example">
  22. <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
  23. <thead class="thead-default">
  24. <tr>
  25. <th colspan="6">
  26. 申请单ID:{{$referral->id}} | 申请人:{{$referral->user->email}} | 申请提现金额:¥{{$referral->amount}} | 申请时间:{{$referral->created_at}}
  27. </th>
  28. </tr>
  29. <tr>
  30. <th> #</th>
  31. <th> 关联人</th>
  32. <th> 关联订单</th>
  33. <th> 订单金额</th>
  34. <th> 佣金</th>
  35. <th> 下单时间</th>
  36. <th> 状态</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. @foreach($commissions as $commission)
  41. <tr>
  42. <td> {{$commission->id}} </td>
  43. <td> {{$commission->invitee->email ?? '【'.trans('common.deleted_item', ['attribute' => trans('common.account')]).'】'}} </td>
  44. <td>
  45. @can('admin.order')
  46. <a href="{{route('admin.order', ['id' => $commission->order->id])}}" target="_blank">
  47. {{$commission->order->goods->name}}
  48. </a>
  49. @else
  50. {{$commission->order->goods->name}}
  51. @endcan
  52. </td>
  53. <td> ¥{{$commission->amount}} </td>
  54. <td> ¥{{$commission->commission}} </td>
  55. <td> {{$commission->created_at}} </td>
  56. <td> {{$commission->status}} </td>
  57. </tr>
  58. @endforeach
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. <div class="panel-footer">
  64. <div class="row">
  65. <div class="col-sm-4">
  66. 本申请共涉及 <code>{{$commissions->total()}}</code> 单
  67. </div>
  68. <div class="col-sm-8">
  69. <nav class="Page navigation float-right">
  70. {{$commissions->links()}}
  71. </nav>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. @endsection
  78. @section('javascript')
  79. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js"></script>
  80. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
  81. @endsection