企微短剧业务系统

orderData.blade.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <html>
  2. <head>
  3. <title></title>
  4. <style type="text/css">
  5. table.gridtable {
  6. margin: 50px auto;
  7. width:90%;
  8. font-family: verdana,arial,sans-serif;
  9. font-size:11px;
  10. color:#333333;
  11. border-width: 1px;
  12. border-color: #666666;
  13. border-collapse: collapse;
  14. }
  15. table.gridtable th {
  16. border-width: 1px;
  17. padding: 8px;
  18. border-style: solid;
  19. border-color: #666666;
  20. background-color: #dedede;
  21. }
  22. table.gridtable td {
  23. align-content: center;
  24. border-width: 1px;
  25. padding: 8px;
  26. border-style: solid;
  27. border-color: #666666;
  28. background-color: #ffffff;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <table class="gridtable">
  34. <thead>
  35. <tr class="">
  36. <th rowspan="2">日期</th>
  37. @foreach($orderSource as $source)
  38. <th colspan="3">{{$source}}</th>
  39. @endforeach
  40. </tr>
  41. <tr>
  42. @for($i=1;$i<=count($orderSource);$i++)
  43. <th>总订单</th>
  44. <th>投放订单(占比)</th>
  45. <th>找回订单(占比)</th>
  46. @endfor
  47. </tr>
  48. </thead>
  49. <tbody>
  50. @foreach($orderData as $date => $data)
  51. <tr class="text-c">
  52. <td>{{$date}}</td>
  53. @foreach($data as $item)
  54. <td>{{isset($item['order_count']) ? $item['order_count'] : 0}}</td>
  55. <td>{{isset($item['launch_order_count']) ? $item['launch_order_count'] : 0}}({{isset($item['launch_order_percent']) ? $item['launch_order_percent'] : 0}})</td>
  56. <td>{{isset($item['back_order_count']) ? $item['back_order_count'] : 0}}({{isset($item['back_order_percent']) ? $item['back_order_percent'] : 0}})</td>
  57. @endforeach
  58. </tr>
  59. @endforeach
  60. </tbody>
  61. </table>
  62. </body>
  63. </html>