manage.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', '广告明细')
  4. <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
  5. <div class='panel panel-default'>
  6. <form action="" method="post" class="form-horizontal" id="form1">
  7. <div class="panel panel-info">
  8. <div class="panel-body">
  9. <input type="hidden" name="search[advert_id]" value="{{$search['advert_id']}}">
  10. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  11. {{-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">门店地址</label>--}}
  12. <div class="">
  13. {!! app\common\helpers\AddressHelper::tplLinkedAddress(['search[province_id]','search[city_id]','search[district_id]','search[street_id]'], [])!!}
  14. </div>
  15. </div>
  16. <div class="form-group col-xs-12 col-sm-3">
  17. <input class="form-control" name="search[sn]" type="text"
  18. value="{{$search['sn']}}" placeholder="设备SN码">
  19. </div>
  20. <div class="form-group col-xs-12 col-sm-3">
  21. <input class="form-control" name="search[store_name]" type="text"
  22. value="{{$search['store_name']}}" placeholder="门店名称">
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-3">
  25. <select name='search[store_category]' class='form-control'>
  26. <option value=''>门店分类</option>
  27. @foreach($category_list as $category)
  28. <option value='{{$category->id}}' @if($search['category'] == $category->id) selected="selected"@endif
  29. >{{$category->name}}</option>
  30. @endforeach
  31. </select>
  32. </div>
  33. <div class="form-group col-xs-12 col-sm-3">
  34. <input class="form-control" name="search[advert_id]" type="text"
  35. value="{{$search['advert_id']}}" placeholder="广告ID">
  36. </div>
  37. <div class="form-group col-xs-12 col-sm-3">
  38. <input class="form-control" name="search[advert_member]" type="text"
  39. value="{{$search['advert_member']}}" placeholder="广告主ID/广告主名称/手机号">
  40. </div>
  41. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  42. <div class="">
  43. <button class="btn btn-success ">
  44. <i class="fa fa-search"></i>
  45. 搜索
  46. </button>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </form>
  52. </div>
  53. <body ng-app="">
  54. <div class='panel panel-default'>
  55. <div class='panel-heading'>
  56. 总数:{{$list->total()}}个
  57. </div>
  58. <div class='panel-body'>
  59. <table class="table table-hover" style="overflow:visible;">
  60. <thead>
  61. <tr>
  62. <th style='width:30%;text-align: center;'>SN码</th>
  63. <th style='width:8%;text-align: center;'>门店名称</th>
  64. <th style='width:6%;text-align: center;'>广告ID</th>
  65. <th style='width:8%;text-align: center;'>广告主</th>
  66. <th style='width:16%;text-align: center;'>创建时间<br>播放日期</th>
  67. <th style='width:8%;text-align: center;'>广告类型</th>
  68. <th style='width:8%;text-align: center;'>广告量</th>
  69. <th style='width:8%;text-align: center;'>广告单价</th>
  70. <th style='width:8%;'>广告费用</th>
  71. <th style='width:8%;'>剩余预算</th>
  72. <th style='width:8%;'>提成比例</th>
  73. <th style='width:8%;'>门店提成</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. @foreach($list as $row)
  78. <tr>
  79. <td style="text-align: center;">{{$row->sn}}</td>
  80. <td style="text-align: center;">
  81. <img src="{{tomedia($row->store->thumb)}}"
  82. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  83. </br>
  84. {{$row->store->store_name}}
  85. </td>
  86. <td style="text-align: center;">{{$row->advert_id}}</td>
  87. <td style="text-align: center;">
  88. <a target="_blank"
  89. href="{{yzWebUrl('member.member.detail',['id' => $row->advertMember->uid])}}">
  90. <img src="{{tomedia($row->advertMember->member->avatar)}}"
  91. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  92. </br>
  93. {{$row->advertMember->member->nickname}}
  94. </a>
  95. </td>
  96. <td style="text-align: center;">
  97. {{$row->created_at}}<br>{{$row->playdate}}
  98. </td>
  99. <td style="text-align: center;">
  100. {{$row->code_name}}
  101. </td>
  102. <td style="text-align: center;">
  103. {{$row->view_count}}{{$row->unit_code_name}}
  104. </td>
  105. <td style="text-align: center;">
  106. {{$row->advert_unit}}
  107. </td>
  108. <td style="text-align: center;">
  109. {{$row->advert_amount}}
  110. </td>
  111. <td style="text-align: center;">
  112. {{$row->advert_budget}}
  113. </td>
  114. <td style="text-align: center;">
  115. {{$row->ratio}}
  116. </td>
  117. <td style="text-align: center;">
  118. {{$row->amount}}
  119. </td>
  120. </tr>
  121. @endforeach
  122. </tbody>
  123. </table>
  124. {!! $pager !!}
  125. </div>
  126. </div>
  127. </body>
  128. <div style="width:100%;height:150px;"></div>
  129. @endsection