| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- @extends('layouts.base')
- @section('title', '预约列表')
- @section('content')
- <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/goods.css')}}"/>
- <script type="text/javascript" src="/static/resource/js/lib/jquery-ui-1.10.3.min.js"></script>
- <div class="w1200 m0a">
- <div class="rightlist">
- <!-- 新增加右侧顶部三级菜单 -->
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active">会员{{$lang_set['project']}}管理</li>
- </ul>
- </div>
- <!-- 新增加右侧顶部三级菜单结束 -->
- <div class="panel panel-info"><!--
- <div class="panel-heading">筛选</div>-->
- <div class="panel-body">
- <form action="" method="get" class="form-horizontal" role="form" id="form1">
- @include('Yunshop\Appointment::admin.appointmentOrder.form')
- <div class="form-group col-xs-12 col-sm-4 col-lg-4">
- <div class="">
- <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
- </div>
- </div>
- </form>
- </div>
- </div><div class="clearfix">
- <div class="panel panel-default">
- <div class="panel-heading">总数:{{$list->total()}}个
- 总次数:{{$statistics['all_total_count']}}次
- 已完成的次数:{{$statistics['all_used_count']}}次
- 预约中的次数:{{$statistics['all_service_count']}}次
- 未使用的次数:{{$statistics['all_rest_count']}}次
- </div>
- <div class="panel-body" style="margin-bottom:200px">
- <table class="table table-hover" style="overflow:visible">
- <thead class="navbar-inner">
- <tr>
- <th style='width:5%;text-align: center;'>ID</th>
- <th style='width:20%;text-align: center;'>购买时间</th>
- <th style='width:15%;text-align: center;'>会员</th>
- <th style='width:15%;text-align: center;'>顾客姓名<br>顾客电话</th>
- <th style='width:15%;text-align: center;'>{{$lang_set['project']}}名称</th>
- <th style='width:11%;text-align: center;'>总次数<br>已完成次数</th>
- <th style='width:11%;text-align: center;'>预约中次数</th>
- <th style='width:11%;text-align: center;'>未使用次数</th>
- <th style='width:12%;'>操作</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;">
- <img src="{{$row->hasOneMember->avatar}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc">
- <br>
- {{$row->hasOneMember->nickname}}
- </td>
- <td style="text-align: center;">
- {{$row->hasOneMember->realname}}<br>
- {{$row->hasOneMember->mobile}}
- </td>
- <td style="text-align: center;">
- {{$row->project_title}}
- </td>
- <td style="text-align: center;">
- {{$row->total_count}}<br>
- {{$row->used_count-$row->has_many_service_count}}
- </td>
- <td style="text-align: center;">
- {{$row->has_many_service_count}}
- </td>
- <td style="text-align: center;">
- {{$row->total_count - $row->used_count}}<br>
- </td>
- <td style="overflow:visible;">
- <div class="btn-group btn-group-sm" >
- <a class="btn btn-info" href="{{yzWebUrl(\Yunshop\Appointment\admin\OrderServiceController::INDEX_URL, ['customer_id' => $row->hasOneMember->uid])}}">查看预约记录 <span class="caret"></span></a>
- </div>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!!$pager!!}
- </div>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
- <script language='javascript'>
- cascdeInit();
- $('.umphp').hover(function () {
- var url = $(this).attr('data-url');
- $(this).addClass("selected");
- },
- function () {
- $(this).removeClass("selected");
- })
- $('.js-clip').each(function () {
- util.clip(this, $(this).attr('data-url'));
- });
- function cancel(_this){
- if(confirm("您确定要取消预约?")){
- var _url = $(_this).attr("_href");
- window.location.href = _url;
- }
- }
- $(function () {
- });
- </script>
- @endsection
|