foreach.blade.php 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <div class="panel panel-default">
  2. <div class="panel-body" style="margin-bottom:200px">
  3. <table class="table table-hover" style="overflow:visible">
  4. <thead class="navbar-inner">
  5. <tr>
  6. <th style='width:4%;text-align: center;'>
  7. {!! trans('Yunshop\Hotel::pack.cashier_statistics_id') !!}
  8. </th>
  9. <th style='width:14%;text-align: center;'>
  10. {!! trans('Yunshop\Hotel::pack.cashier_statistics_hotel_name') !!}
  11. </th>
  12. <th style='width:10%;text-align: center;'>
  13. {!! trans('Yunshop\Hotel::pack.cashier_statistics_hotel_category') !!}
  14. </th>
  15. <th style='width:12%;text-align: center;'>
  16. {!! trans('Yunshop\Hotel::pack.cashier_statistics_order_price') !!}
  17. </th>
  18. <th style='width:10%;text-align: center;'>
  19. {!! trans('Yunshop\Hotel::pack.cashier_statistics_shop_commission') !!}
  20. </th>
  21. <th style='width:14%;text-align: center;'>
  22. {!! trans('Yunshop\Hotel::pack.cashier_statistics_receivable_price') !!}
  23. </th>
  24. <th style='width:14%;text-align: center;'>
  25. {!! trans('Yunshop\Hotel::pack.cashier_statistics_not_withdraw') !!}
  26. </th>
  27. <th style='width:10%;text-align: center;'>
  28. {!! trans('Yunshop\Hotel::pack.cashier_statistics_finish_withdraw') !!}
  29. </th>
  30. <th style='width:16%;'>
  31. {!! trans('Yunshop\Hotel::pack.cashier_statistics_operation') !!}
  32. </th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. @foreach($list as $row)
  37. <tr>
  38. <td style="text-align: center;">{{$row->id}}</td>
  39. <td style="text-align: center;">
  40. <img src='{{tomedia($row->thumb)}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  41. <br/>
  42. {{$row->hotel_name}}
  43. </td>
  44. <td style="text-align: center;">{{$row->hasOneCategory->name}}</td>
  45. <td style="text-align: center;">
  46. 收银台:{{number_format($row->order_price, 2)}}<br>
  47. 门店:{{number_format($row->hotel_order_price, 2)}}
  48. </td>
  49. <td style="text-align: center;">
  50. 收银台:@if($row->hasOneCashier->hasOneCashierGoods->shop_commission){{$row->hasOneCashier->hasOneCashierGoods->shop_commission}}@else{{0}}@endif<br>
  51. 门店:@if($row->shop_commission->value['shop_commission']){{$row->shop_commission->value['shop_commission']}}@else{{0}}@endif
  52. </td>
  53. <td style="text-align: center;">
  54. 收银台:{{number_format($row->receivable_price, 2)}}<br>
  55. 门店:{{number_format($row->hotel_receivable_price, 2)}}
  56. </td>
  57. <td style="text-align: center;">
  58. 收银台:{{number_format($row->not_withdraw, 2)}}<br>
  59. 门店:{{number_format($row->hotel_not_withdraw, 2)}}
  60. </td>
  61. <td style="text-align: center;">
  62. 收银台:{{number_format($row->finish_withdraw, 2)}}<br>
  63. 门店:{{number_format($row->hotel_finish_withdraw, 2)}}
  64. </td>
  65. <td style="overflow:visible;">
  66. <div class="btn-group btn-group-sm" >
  67. <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="javascript:;">{!! trans('Yunshop\Hotel::pack.cashier_statistics_operation') !!} <span class="caret"></span></a>
  68. <ul class="dropdown-menu dropdown-menu-left" role="menu" style='z-index: 9999'>
  69. <li><a href="{{yzWebUrl(\Yunshop\Hotel\admin\CashierController::DETAIL_URL, ['hotel_id' => $row->id])}}" title="详情"><i class='fa fa-edit'></i> 详情</a></li>
  70. <li><a href="{{yzWebUrl(\Yunshop\Hotel\admin\OrderController::INDEX_URL, ['search[hotel][hotel_id]' => $row->id])}}" title='收银台订单'><i class='fa fa-list'></i> 收银台订单</a></li>
  71. <li><a href="{{yzWebUrl('plugin.hotel.admin.hotels.hotel-order.index', ['hotel_order_search[hotel][hotel_id]' => $row->id])}}" title='门店订单'><i class='fa fa-list'></i> 门店订单</a></li>
  72. </ul>
  73. </div>
  74. </td>
  75. </tr>
  76. @endforeach
  77. </tbody>
  78. </table>
  79. </div>
  80. </div>