| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- @extends('layouts.base')
- @section('title', "$lang_set[worker]列表")
- @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['worker']}}列表</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.worker.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()}} </div>
- <div class="panel-body" style="margin-bottom:50px">
- <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:15%;text-align: center;'>会员</th>
- <th style='width:15%;text-align: center;'>姓名/电话</th>
- <th style='width:15%;text-align: center;'>门店</th>
- <th style='width:20%;text-align: center;'>{{$lang_set['project']}}数量</th>
- <th style='width:15%;text-align: center;'>累计预约次数</th>
- <th style='width:15%;text-align: center;'>完成{{$lang_set['service']}}次数</th>
- <th style='width:15%;text-align: center;'>预约中的次数</th>
- <th style='width:10%;'>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $row)
- <tr>
- <td style="text-align: center;">{{$row->id}}</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->name}}<br>
- {{$row->hasOneMember->mobile}}
- </td>
- <td style="text-align: center;">{{$row->hasOneStore->store_name}}</td>
- <td style="text-align: center;">{{count($row->workerProjects)}}</td>
- <td style="text-align: center;">{{$row->appointment_num ?? 0}}</td>
- <td style="text-align: center;">{{$row->appointment_num-$row->has_many_service_count}}</td>
- <td style="text-align: center;">{{$row->has_many_service_count}}</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(\Yunshop\Appointment\admin\WorkerController::EDIT_URL, ['id' => $row->id])}}" title='编辑'><i class='fa fa-pencil'></i> 编辑</a></li>
- <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\ProjectController::INDEX_URL, ['worker_member_id' => $row->member_u_id])}}" title='{{$lang_set['worker']}}{{$lang_set['project']}}'><i class='fa fa-pencil'></i> {{$lang_set['worker']}}{{$lang_set['project']}}</a></li>
- <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\OrderServiceController::INDEX_URL, ['worker_member_id' => $row->member_u_id])}}" title='{{$lang_set['worker']}}预约'><i class='fa fa-pencil'></i> {{$lang_set['worker']}}预约</a></li>
- <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\IncomeController::INDEX_URL, ['worker_member_id' => $row->member_u_id])}}" title='收益管理'><i class='fa fa-pencil'></i> 收益管理</a></li>
- <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkerController::DEL_URL, ['id' => $row->id])}}" title='删除' onclick="return confirm('确认删除该条数据?');"><i class='fa fa-pencil'></i> 删除</a></li>
- <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkTimeController::EDIT_URL, ['worker_id' => $row->id])}}" title='工作时间' ><i class='fa fa-pencil'></i> 工作时间</a></li>
- </ul>
- </div>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!!$pager!!}
- </div>
- </div>
- <div class='panel-footer' style="padding-bottom: 60px">
- <a class='btn btn-info' href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkerController::ADD_URL)}}"><i class='fa fa-plus'></i> 添加{{$lang_set['worker']}}</a>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
- <script language='javascript'>
- cascdeInit("{{$search['province_id']}}","{{$search['city_id']}}","{{$search['district_id']}}");
- </script>
- @endsection
|