| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- @extends('layouts.base')
- @section('content')
- @section('title', '广告主管理')
- <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
- <div class='panel panel-default'>
- <form action="" method="post" class="form-horizontal" id="form1">
- <div class="panel panel-info">
- <div class="panel-body">
- <input type="hidden" name="search[am_id]" value="{{$search['am_id']}}">
- <div class="form-group col-xs-12 col-sm-3">
- <input class="form-control" name="search[uid]" type="text"
- value="{{$search['uid']}}" placeholder="会员ID">
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <input class="form-control" name="search[member]" type="text"
- value="{{$search['member']}}" placeholder="会员昵称/姓名/手机号">
- </div>
- <div class="form-group col-xs-12 col-sm-7 col-lg-4">
- <div class="">
- <button class="btn btn-success ">
- <i class="fa fa-search"></i>
- 搜索
- </button>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- <body ng-app="">
- <div class='panel panel-default'>
- <div class='panel-heading'>
- 总数:{{$list->total()}}个
- </div>
- <div class='panel-body'>
- <table class="table table-hover" style="overflow:visible;">
- <thead>
- <tr>
- <th style='width:6%;text-align: center;'>ID</th>
- <th style='width:12%;text-align: center;'>成为时间</th>
- <th style='width:8%;text-align: center;'>广告主</th>
- <th style='width:12%;text-align: center;'>累计广告数量</th>
- <th style='width:8%;text-align: center;'>投放中的<br>广告数量</th>
- <th style='width:8%;text-align: center;'>广告费<br>累计总额</th>
- <th style='width:10%;text-align: center;'>广告费<br>已使用金额</th>
- <th style='width:10%;text-align: center;'>广告费<br>剩余金额</th>
- <th style='width:16%;'>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $row)
- <tr>
- <td style="text-align: center;">{{$row->id}}</td>
- <td style="text-align: center;">{{$row->created_at}}</td>
- <td style="text-align: center;">
- <a target="_blank"
- href="{{yzWebUrl('member.member.detail',['id' => $row->uid])}}">
- <img src="{{tomedia($row->member->avatar)}}"
- style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
- </br>
- {{$row->member->nickname}}
- </a>
- </td>
- <td style="text-align: center;">{{$row->advert->count()}}</td>
- <td style="text-align: center;">{{$row->advert->where('status', 1)->count()}}</td>
- <td style="text-align: center;">{{$row->advert->sum('advert_budget')}}</td>
- <td style="text-align: center;">{{$row->advert->sum('used_budget')}}</td>
- <td style="text-align: center;">{{$row->advert->sum('advert_budget') - $row->advert->sum('used_budget')}}</td>
- <td style="overflow:visible;">
- <div class="btn-group btn-group-sm" >
- <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="javascript:;">操作 <span class="caret"></span></a>
- <ul class="dropdown-menu dropdown-menu-left" role="menu" style='z-index: 9999'>
- <li><a href="{{yzWebUrl("plugin.advert-market.admin.member.edit.index", ['am_id' => $row->id])}}" title='编辑'><i class='fa fa-pencil'></i> 编辑</a></li>
- <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>
- <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>
- </ul>
- </div>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $pager !!}
- </div>
- <div class='panel-footer'>
- <a class='btn btn-info' href="{{yzWebUrl('plugin.advert-market.admin.member.add')}}"><i class='fa fa-plus'></i> 添加广告主</a>
- </div>
- </div>
- </body>
- <div style="width:100%;height:150px;"></div>
- @endsection
|