invoiceDetail.blade.php 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @extends('user.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.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']?\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. <button class="btn btn-dark">{{trans('home.invoice_table_closed')}}</button>
  27. @elseif($order->status == 0)
  28. <button class="btn btn-default">{{trans('home.invoice_table_wait_payment')}}</button>
  29. @elseif($order->status == 1)
  30. <button class="btn btn-info">{{trans('home.invoice_table_wait_confirm')}}</button>
  31. @elseif($order->status == 2)
  32. <button class="btn btn-success">{{trans('home.invoice_table_wait_active')}}</button>
  33. @else
  34. <button class="btn btn-danger">{{trans('home.invoice_table_expired')}}</button>
  35. @endif
  36. @else
  37. <button class="btn btn-danger">{{trans('home.invoice_table_expired')}}</button>
  38. @endif
  39. </p>
  40. </div>
  41. </div>
  42. <div class="page-invoice-table table-responsive">
  43. <table class="table table-hover text-center">
  44. <thead>
  45. <tr>
  46. <th>{{trans('home.service_name')}}</th>
  47. <th>{{trans('home.service_desc')}} </th>
  48. <th>{{trans('home.service_price')}}</th>
  49. <th>{{trans('home.service_quantity')}}</th>
  50. <th>{{trans('home.coupon')}}</th>
  51. <th>{{trans('home.service_total_price')}}</th>
  52. <th>状态</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <tr class="text-center">
  57. <td>
  58. <h3>{{$order->goods->name}}</h3>
  59. </td>
  60. <td>
  61. {{trans('home.service_days')}} {{$order->goods->days}} {{trans('home.day')}}
  62. <br/>
  63. @if($order->goods->type == '2')
  64. {{$order->goods->traffic_label}} {{trans('home.account_bandwidth_usage')}}/{{trans('home.month')}}
  65. @else
  66. {{$order->goods->traffic_label}}{{trans('home.account_bandwidth_usage')}}/{{$order->goods->days}} {{trans('home.day')}}
  67. @endif
  68. </td>
  69. <td><strong>¥</strong> {{$order->goods->price}} </td>
  70. <td> 1</td>
  71. <td>{{$order->coupon ? $order->coupon->name : '无'}}</td>
  72. <td> ¥{{$order->goods->price}} </td>
  73. <td> {{$order->status_label}} </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. </div>
  78. <div class="text-right">
  79. <button type="button" class="btn btn-animate btn-animate-side btn-default btn-outline" onclick="window.print();">
  80. <span><i class="icon wb-print" aria-hidden="true"></i> Print | 打印</span>
  81. </button>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. @endsection