list.blade.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @extends('layouts.base')
  2. @section('title', '手动分红')
  3. @section('content')
  4. <div class="w1200 m0a">
  5. <div class="right-titpos">
  6. <ul class="add-snav">
  7. <a class='btn btn-info' href="{{yzWebUrl('plugin.manual-bonus.admin.return.index')}}">手动分红</a>
  8. </ul>
  9. </div>
  10. <div class="rightlist">
  11. <div class="panel panel-info">
  12. </div>
  13. <div class="clearfix">
  14. <div class="panel panel-default">
  15. <div class="panel-heading">总数:{{$list->total()}}</div>
  16. <div class="panel-body">
  17. <table class="table table-hover" style="overflow:visible;">
  18. <thead class="navbar-inner">
  19. <tr>
  20. <th style='width:4%;text-align: center;'>分红ID</th>
  21. <th style='width:14%;text-align: center;'>分红名称</th>
  22. <th style='width:16%;text-align: center;'>分红时间</th>
  23. <th style='width:10%;text-align: center;'>分红金额</th>
  24. <th style='width:10%;text-align: center;'>分红人数</th>
  25. <th style='width:20%;text-align: center;'>人均分红金额</th>
  26. <th style='width:15%;text-align: center;'>操作</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($list as $row)
  31. <tr>
  32. <td style="text-align: center;">{{$row->id}}</td>
  33. <td style="text-align: center;">
  34. {{$row->bonus_name}}
  35. </td>
  36. <td style="text-align: center;">{{$row->created_at}}</td>
  37. <td style="text-align: center;">{{$row->bonus_amount}}</td>
  38. <td style="text-align: center;">{{$row->count}}</td>
  39. <td style="text-align: center;">{{$row->unit_amount}}</td>
  40. <td style="text-align: center;">
  41. <a class="label label-default" onclick="openwindow('{!! $row->id !!}')">备注信息</a >
  42. <!-- 弹窗隐藏区域 -->
  43. <div id="myModal{!! $row->id !!}" class="modal" style="display: none;">
  44. <!-- 弹窗内容 -->
  45. <div class="modal-content">
  46. <div class="modal-header">
  47. <span id="X" class="close" onclick="closewindow('{!! $row->id !!}')">&times;</span>
  48. <h3>备注信息</h3>
  49. </div>
  50. <div style="white-space: normal;padding: 10px;font-size: 16px">
  51. @foreach($remarks as $remark)
  52. @if($remark['id'] == $row->id)
  53. <span>{{$remark['content']}}</span>
  54. @endif
  55. @endforeach
  56. </div>
  57. </div>
  58. </div>
  59. <a class="label label-default label-info" href="{{yzWebUrl('plugin.manual-bonus.admin.manual-log.index', ['search' => ['manual_id' => $row->id]])}}">查看记录</a>
  60. </td>
  61. </tr>
  62. @endforeach
  63. </tbody>
  64. </table>
  65. {!! $pager !!}
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <style type="text/css">
  72. /* 弹窗 (background) */
  73. .modal {
  74. display: none; /* 默认隐藏 */
  75. /*生成绝对定位的元素,相对于浏览器窗口进行定位。*/
  76. position: fixed;
  77. z-index: 1;
  78. left: 0;
  79. top: 0;
  80. /*设置弹窗位置*/
  81. padding-top: 200px;
  82. padding-bottom: 300px;
  83. /*浮在全屏上*/
  84. width: 100%;
  85. height: 100%;
  86. /*overflow:auto;如果内容被修剪,则浏览器会显示滚动条,以便查看其余内容。*/
  87. overflow: auto;
  88. background-color: rgba(0,0,0,0);
  89. text-align: center;
  90. }
  91. /* 弹窗内容 */
  92. .modal-content {
  93. /*position: relative;*/
  94. /*弹窗背景色设置*/
  95. background-color: #fefefe;
  96. margin: auto;
  97. padding: 200px auto;
  98. width: 400px;
  99. box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  100. -webkit-animation-name: animatetop;
  101. -webkit-animation-duration: 0.4s;
  102. animation-name: animatetop;
  103. animation-duration: 0.4s
  104. }
  105. /* 关闭按钮 */
  106. .close {
  107. color: white;
  108. float: right;
  109. font-size: 28px;
  110. font-weight: bold;
  111. padding-top: 24px;
  112. }
  113. .close:hover, .close:focus {
  114. color: #000;
  115. text-decoration: none;
  116. cursor: pointer;
  117. }
  118. .modal-header {
  119. display: block;
  120. /*line-height: 10px;*/
  121. text-align: left;
  122. height: 30%;
  123. padding-top: 1px !important;
  124. padding-bottom: 1px !important;
  125. border-bottom:1px solid #000
  126. }
  127. .modal-body {
  128. padding-top: 0 !important;
  129. font-size: 18px;
  130. height: 200px;
  131. }
  132. .p {
  133. text-align: left;
  134. word-wrap: break-word;
  135. word-break: break-all;
  136. display: flex;
  137. flex-wrap: wrap;
  138. }
  139. </style>
  140. <script language='javascript'> function openwindow(id){
  141. //获取弹窗得div
  142. var modal = document.getElementById('myModal'+ id);
  143. //窗体弹出
  144. if (modal.style.display == "none") {
  145. modal.style.display = "block";
  146. }
  147. }
  148. function closewindow(id) {
  149. var modal = document.getElementById('myModal' + id);
  150. if (modal.style.display == "block") {
  151. modal.style.display = "none";
  152. }
  153. }
  154. </script>
  155. @endsection