invoiceDetail.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @extends('user.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. <div class="panel">
  8. <div class="panel-body">
  9. <div class="row">
  10. <div class="col-lg-3">
  11. <h3>
  12. <img class="navbar-brand-logo" src="{{ sysConfig('website_logo') ? asset(sysConfig('website_logo')) : '/assets/images/logo.png' }}"
  13. alt="logo" />
  14. {{ sysConfig('website_name') }}
  15. </h3>
  16. </div>
  17. <div class="col-lg-3 offset-lg-6 text-right">
  18. <h4>{{ trans('user.invoice.detail') }}</h4>
  19. <p>{{ trans('model.order.id') }}
  20. :<a class="font-size-20" href="javascript:void(0)">{{ $order->sn }}</a>
  21. </p>
  22. <p>{{ trans('user.payment.method') }}
  23. : {{ $order->pay_way === 1 ? trans('user.shop.pay_credit') : trans('user.shop.pay_online') }}</p>
  24. <p>{{ trans('user.bought_at') }}: {{ $order->created_at }}</p>
  25. @if ($order->expired_at)
  26. <p>{{ trans('common.expired_at') }}: {{ $order->expired_at }}</p>
  27. @endif
  28. </div>
  29. </div>
  30. <div class="page-invoice-table table-responsive">
  31. <table class="table table-hover text-md-center">
  32. <thead class="thead-info">
  33. <tr>
  34. <th>{{ trans('user.shop.service') }}</th>
  35. <th>{{ trans('user.shop.description') }} </th>
  36. <th>{{ trans('user.shop.price') }}</th>
  37. <th>{{ trans('user.shop.quantity') }}</th>
  38. <th>{{ trans('model.coupon.attribute') }}</th>
  39. <th>{{ trans('user.shop.total') }}</th>
  40. <th>{{ trans('common.status.attribute') }}</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr>
  45. <td>
  46. <h3>{{ $order->goods->name ?? trans('user.recharge_credit') }}</h3>
  47. </td>
  48. <td>
  49. @if ($order->goods)
  50. {{ trans('common.available_date') }}
  51. <code>{{ $order->goods->days }}</code> {{ trans_choice('common.days.attribute', 1) }}
  52. <br />
  53. @if ($order->goods->type === 2)
  54. <code>{{ $order->goods->traffic_label }}</code>
  55. {{ trans('user.attribute.data') }}/{{ ucfirst(trans('validation.attributes.month')) }}
  56. @else
  57. <code>{{ $order->goods->traffic_label }}</code>
  58. {{ trans('user.attribute.data') }}/
  59. <code>{{ $order->goods->days }}</code>
  60. {{ trans_choice('common.days.attribute', 1) }}
  61. @endif
  62. @else
  63. {{ trans('user.recharge_credit') }}
  64. @endif
  65. </td>
  66. <td> {{ $order->origin_amount_tag }} </td>
  67. <td> 1</td>
  68. <td>{{ $order->coupon->name ?? trans('common.none') }}</td>
  69. <td> {{ $order->amount_tag }} </td>
  70. <td> {!! $order->status_label !!} </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. </div>
  75. <div class="text-right">
  76. <button class="btn btn-animate btn-animate-side btn-outline-info" type="button" onclick="window.print();">
  77. <span><i class="icon wb-print" aria-hidden="true"></i> {{ trans('common.print') }} </span>
  78. </button>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. @endsection
  84. @section('javascript')
  85. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js"></script>
  86. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
  87. @endsection