invoiceDetail.blade.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @extends('user.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" type="text/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 src="{{\App\Components\Helpers::systemConfig()['website_logo']? :'/assets/images/logo64.png'}}" class="navbar-brand-logo" alt="logo">
  13. {{\App\Components\Helpers::systemConfig()['website_name']}}
  14. </h3>
  15. </div>
  16. <div class="col-lg-3 offset-lg-6 text-right">
  17. <h4>{{trans('home.invoice_title')}}</h4>
  18. <p>{{trans('home.invoice_table_id')}}:<a class="font-size-20" href="javascript:void(0)">{{$order->order_sn}}</a>
  19. </p>
  20. <p>{{trans('home.invoice_table_pay_way')}}:{{$order->pay_way === 1 ? trans('home.service_pay_button') : trans('home.online_pay')}}</p>
  21. <p>{{trans('home.invoice_table_create_date')}}: {{$order->created_at}}</p>
  22. <p>{{trans('home.invoice_table_expire_at')}}: {{$order->expire_at}}</p>
  23. <p>
  24. @if(!$order->is_expire)
  25. @if($order->status == -1)
  26. <p class="badge badge-lg badge-dark">{{trans('home.invoice_table_closed')}}</p>
  27. @elseif($order->status == 0)
  28. <p class="badge badge-lg badge-default">{{trans('home.invoice_table_wait_payment')}}</p>
  29. @elseif($order->status == 1)
  30. <p class="badge badge-lg badge-info">{{trans('home.invoice_table_wait_confirm')}}</p>
  31. @elseif($order->status == 2)
  32. <p class="badge badge-lg badge-success">{{trans('home.invoice_table_wait_active')}}</p>
  33. @else
  34. <p class="badge badge-lg badge-danger">{{trans('home.invoice_table_expired')}}</p>
  35. @endif
  36. @else
  37. <p class="badge badge-lg badge-danger">{{trans('home.invoice_table_expired')}}</p>
  38. @endif
  39. </div>
  40. </div>
  41. <div class="page-invoice-table table-responsive">
  42. <table class="table table-hover text-md-center">
  43. <thead class="thead-info">
  44. <tr>
  45. <th>{{trans('home.service_name')}}</th>
  46. <th>{{trans('home.service_desc')}} </th>
  47. <th>{{trans('home.service_price')}}</th>
  48. <th>{{trans('home.service_quantity')}}</th>
  49. <th>{{trans('home.coupon')}}</th>
  50. <th>{{trans('home.service_total_price')}}</th>
  51. <th>状态</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr>
  56. <td>
  57. <h3>{{$order->goods->name}}</h3>
  58. </td>
  59. <td>
  60. {{trans('home.service_days')}} <code>{{$order->goods->days}}</code> {{trans('home.day')}}
  61. <br/>
  62. @if($order->goods->type == '2')
  63. <code>{{$order->goods->traffic_label}}</code> {{trans('home.bandwidth')}}/{{trans('home.month')}}
  64. @else
  65. <code>{{$order->goods->traffic_label}}</code> {{trans('home.bandwidth')}}/<code>{{$order->goods->days}}</code> {{trans('home.day')}}
  66. @endif
  67. </td>
  68. <td><strong>¥</strong> {{$order->goods->price}} </td>
  69. <td> 1</td>
  70. <td>{{$order->coupon ? $order->coupon->name : '无'}}</td>
  71. <td> ¥{{$order->goods->price}} </td>
  72. <td> {{$order->status_label}} </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. <div class="text-right">
  78. <button type="button" class="btn btn-animate btn-animate-side btn-outline-info" onclick="window.print();">
  79. <span><i class="icon wb-print" aria-hidden="true"></i> Print | 打印</span>
  80. </button>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. @endsection
  86. @section('script')
  87. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
  88. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js" type="text/javascript"></script>
  89. @endsection