manage.blade.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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[am_id]" value="{{$search['am_id']}}">
  10. <div class="form-group col-xs-12 col-sm-3">
  11. <input class="form-control" name="search[uid]" type="text"
  12. value="{{$search['uid']}}" placeholder="会员ID">
  13. </div>
  14. <div class="form-group col-xs-12 col-sm-3">
  15. <input class="form-control" name="search[member]" type="text"
  16. value="{{$search['member']}}" placeholder="会员昵称/姓名/手机号">
  17. </div>
  18. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  19. <div class="">
  20. <button class="btn btn-success ">
  21. <i class="fa fa-search"></i>
  22. 搜索
  23. </button>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </form>
  29. </div>
  30. <body ng-app="">
  31. <div class='panel panel-default'>
  32. <div class='panel-heading'>
  33. 总数:{{$list->total()}}个
  34. </div>
  35. <div class='panel-body'>
  36. <table class="table table-hover" style="overflow:visible;">
  37. <thead>
  38. <tr>
  39. <th style='width:6%;text-align: center;'>ID</th>
  40. <th style='width:12%;text-align: center;'>成为时间</th>
  41. <th style='width:8%;text-align: center;'>广告主</th>
  42. <th style='width:12%;text-align: center;'>累计广告数量</th>
  43. <th style='width:8%;text-align: center;'>投放中的<br>广告数量</th>
  44. <th style='width:8%;text-align: center;'>广告费<br>累计总额</th>
  45. <th style='width:10%;text-align: center;'>广告费<br>已使用金额</th>
  46. <th style='width:10%;text-align: center;'>广告费<br>剩余金额</th>
  47. <th style='width:16%;'>操作</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach($list as $row)
  52. <tr>
  53. <td style="text-align: center;">{{$row->id}}</td>
  54. <td style="text-align: center;">{{$row->created_at}}</td>
  55. <td style="text-align: center;">
  56. <a target="_blank"
  57. href="{{yzWebUrl('member.member.detail',['id' => $row->uid])}}">
  58. <img src="{{tomedia($row->member->avatar)}}"
  59. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  60. </br>
  61. {{$row->member->nickname}}
  62. </a>
  63. </td>
  64. <td style="text-align: center;">{{$row->advert->count()}}</td>
  65. <td style="text-align: center;">{{$row->advert->where('status', 1)->count()}}</td>
  66. <td style="text-align: center;">{{$row->advert->sum('advert_budget')}}</td>
  67. <td style="text-align: center;">{{$row->advert->sum('used_budget')}}</td>
  68. <td style="text-align: center;">{{$row->advert->sum('advert_budget') - $row->advert->sum('used_budget')}}</td>
  69. <td style="overflow:visible;">
  70. <div class="btn-group btn-group-sm" >
  71. <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="javascript:;">操作 <span class="caret"></span></a>
  72. <ul class="dropdown-menu dropdown-menu-left" role="menu" style='z-index: 9999'>
  73. <li><a href="{{yzWebUrl("plugin.advert-market.admin.member.edit.index", ['am_id' => $row->id])}}" title='编辑'><i class='fa fa-pencil'></i> 编辑</a></li>
  74. <li><a href="{{yzWebUrl("plugin.advert-market.admin.advert.manage.index", ['search' => ['am_id' => $row->id]])}}" title='广告管理'><i class='fa fa-pencil'></i> 广告管理</a></li>
  75. <li><a href="{{yzWebUrl("plugin.advert-market.admin.view.manage.index", ['search' => ['am_id' => $row->id]])}}" title='广告费明细'><i class='fa fa-pencil'></i> 广告费明细</a></li>
  76. </ul>
  77. </div>
  78. </td>
  79. </tr>
  80. @endforeach
  81. </tbody>
  82. </table>
  83. {!! $pager !!}
  84. </div>
  85. <div class='panel-footer'>
  86. <a class='btn btn-info' href="{{yzWebUrl('plugin.advert-market.admin.member.add')}}"><i class='fa fa-plus'></i> 添加广告主</a>
  87. </div>
  88. </div>
  89. </body>
  90. <div style="width:100%;height:150px;"></div>
  91. @endsection