hotel-order.blade.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. @extends('layouts.base')
  2. @section('title', '酒店提成明细')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="rightlist">
  6. <!-- 新增加右侧顶部三级菜单 -->
  7. <div class="right-titpos">
  8. <div class="panel panel-info">
  9. <ul class="add-shopnav">
  10. {{--<li>--}}
  11. {{--<a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.cashier-order')}}">收银台提成明细</a>--}}
  12. {{--</li>--}}
  13. <li>
  14. <a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.hotel-order')}}">酒店提成明细</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <!-- 新增加右侧顶部三级菜单结束 -->
  20. <div class="panel panel-info">
  21. <div class="panel-heading">筛选</div>
  22. <div class="panel-body">
  23. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  24. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  25. <div class="">
  26. <input type="text" placeholder="酒店ID" class="form-control" name="search[hotel_id]" value="{{$search['hotel_id']}}"/>
  27. </div>
  28. </div>
  29. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  30. <div class="">
  31. <input type="text" placeholder="酒店名称" class="form-control" name="search[hotel_name]" value="{{$search['hotel_name']}}"/>
  32. </div>
  33. </div>
  34. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  35. <div class="">
  36. <input type="text" class="form-control" name="search[order_sn]" value="{{$search['order_sn']}}" placeholder="订单编号"/>
  37. </div>
  38. </div>
  39. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  40. <div class="">
  41. <select name='search[status]' class='form-control'>
  42. <option value=''>提成状态</option>
  43. <option value='0' @if($search['status'] == '0') selected @endif>未结算</option>
  44. <option value='1' @if($search['status'] == '1') selected @endif>已结算</option>
  45. <option value='-1' @if($search['status'] == '-1') selected @endif>已失效</option>
  46. </select>
  47. </div>
  48. </div>
  49. <div class="form-group col-xs-12 col-sm-5 col-lg-4">
  50. <div class="">
  51. <button type="submit" name="export" value="1" id="export" class="btn btn-default excel back ">导出Excel</button>
  52. <input type="hidden" name="token" value="{{$var['token']}}" />
  53. <button class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  54. </div>
  55. </div>
  56. <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-6">
  57. <div class="time">
  58. <select name='search[search_time]' class='form-control'>
  59. <option value='0' @if($search['search_time']=='0') selected @endif>不搜索时间</option>
  60. <option value='1' @if($search['search_time']=='1') selected @endif>搜索时间</option>
  61. </select>
  62. </div>
  63. <div class="search-select">
  64. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  65. 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
  66. 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
  67. 'start'=>0,
  68. 'end'=>0
  69. ], true) !!}
  70. </div>
  71. </div>
  72. </form>
  73. </div>
  74. </div>
  75. <div class="clearfix">
  76. <div class="panel panel-default">
  77. <div class="panel-heading">总数:{{ $list['total'] }}</div>
  78. <div class="panel-body">
  79. <table class="table table-hover" style="overflow:visible;">
  80. <thead class="navbar-inner">
  81. <tr>
  82. <th style='text-align: center;'>ID</th>
  83. <th style='width:12%;text-align: center;'>提成时间</th>
  84. <th style=' width: 15%; text-align: center;'>订单号</th>
  85. <th style='text-align: center'>酒店名称</th>
  86. <th style='text-align: center'>订单金额</th>
  87. <th style='text-align: center'>提成结算金额<br>插件分红</th>
  88. <th style='text-align: center'>平台提成比例</th>
  89. <th style='text-align: center'>提成金额</th>
  90. <th style='text-align: center'>结算期</th>
  91. <th style='text-align: center'>提成状态</th>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. @foreach($list['data'] as $item)
  96. <tr style="text-align: center">
  97. <td style="text-align: center;">{{ $item['has_one_hotel_order']['id'] }}</td>
  98. <td style="text-align: center;">{{ date('Y-m-d H:i:s', $item['created_at']) }}</td>
  99. <td style="text-align: center;">{{ $item['order_sn'] }}</td>
  100. <td style="text-align: center;">
  101. @if($item['has_one_hotel_order']['has_one_hotel']['hotel_name'] || $item['has_one_hotel_order']['has_one_hotel']['thumb'])
  102. <img src='{{ tomedia($item['has_one_hotel_order']['has_one_hotel']['thumb']) }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' /><br/>
  103. {{ $item['has_one_hotel_order']['has_one_hotel']['hotel_name'] }}
  104. @else
  105. {{ $item['has_one_hotel_order']['has_one_hotel']['hotel_name'] ?: '未更新' }}
  106. @endif
  107. </td>
  108. <td>{{ $item['price'] }} 元</td>
  109. <td>
  110. {{ $item['has_one_hotel_order']['amount'] + $item['has_one_hotel_order']['fee'] }}
  111. <br>
  112. {{ $item['plugin_bonus'] }}元
  113. </td>
  114. <td>{{ $item['has_one_hotel_order']['fee_percentage'] }}</td>
  115. <td>{{ $item['has_one_hotel_order']['amount'] }}</td>
  116. <td>{{ (int)$item['has_one_hotel_order']['settlement_days'] }}</td>
  117. <td>
  118. @if($item['has_one_hotel_order']['has_settlement'] == 0)
  119. 未结算
  120. @elseif($item['has_one_hotel_order']['has_settlement'] == 1)
  121. 已结算
  122. @else
  123. 已失效
  124. @endif
  125. </td>
  126. {{--<td style="overflow:visible;">--}}
  127. {{--<a class='btn btn-default' href="{{ yzWebUrl('finance.balance.lookBalanceDetail', array('id' => $list->id )) }}" style="margin-bottom: 2px">查看详情</a>--}}
  128. {{--</td>--}}
  129. </tr>
  130. @endforeach
  131. </tbody>
  132. </table>
  133. {!! $page !!}
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <script language='javascript'>
  139. $(function () {
  140. $('#export').click(function(){
  141. $('#form1').submit();
  142. });
  143. });
  144. </script>
  145. @endsection