list.blade.php 6.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. @extends('layouts.base')
  2. @section('title', "$lang_set[worker]列表")
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/goods.css')}}"/>
  6. <script type="text/javascript" src="/static/resource/js/lib/jquery-ui-1.10.3.min.js"></script>
  7. <div class="w1200 m0a">
  8. <div class="rightlist">
  9. <!-- 新增加右侧顶部三级菜单 -->
  10. <div class="right-titpos">
  11. <ul class="add-snav">
  12. <li class="active">{{$lang_set['worker']}}列表</li>
  13. </ul>
  14. </div>
  15. <!-- 新增加右侧顶部三级菜单结束 -->
  16. <div class="panel panel-info"><!--
  17. <div class="panel-heading">筛选</div>-->
  18. <div class="panel-body">
  19. <form action="" method="get" class="form-horizontal" role="form" id="form1">
  20. @include('Yunshop\Appointment::admin.worker.form')
  21. <div class="form-group col-xs-12 col-sm-4 col-lg-4">
  22. <div class="">
  23. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  24. </div>
  25. </div>
  26. </form>
  27. </div>
  28. </div><div class="clearfix">
  29. <div class="panel panel-default">
  30. <div class="panel-heading">总数:{{$list->total()}} </div>
  31. <div class="panel-body" style="margin-bottom:50px">
  32. <table class="table table-hover" style="overflow:visible">
  33. <thead class="navbar-inner">
  34. <tr>
  35. <th style='width:5%;text-align: center;'>ID</th>
  36. <th style='width:15%;text-align: center;'>会员</th>
  37. <th style='width:15%;text-align: center;'>姓名/电话</th>
  38. <th style='width:15%;text-align: center;'>门店</th>
  39. <th style='width:20%;text-align: center;'>{{$lang_set['project']}}数量</th>
  40. <th style='width:15%;text-align: center;'>累计预约次数</th>
  41. <th style='width:15%;text-align: center;'>完成{{$lang_set['service']}}次数</th>
  42. <th style='width:15%;text-align: center;'>预约中的次数</th>
  43. <th style='width:10%;'>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach($list as $row)
  48. <tr>
  49. <td style="text-align: center;">{{$row->id}}</td>
  50. <td style="text-align: center;">
  51. <img src="{{$row->hasOneMember->avatar}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc">
  52. <br>
  53. {{$row->hasOneMember->nickname}}
  54. </td>
  55. <td style="text-align: center;">
  56. {{$row->name}}<br>
  57. {{$row->hasOneMember->mobile}}
  58. </td>
  59. <td style="text-align: center;">{{$row->hasOneStore->store_name}}</td>
  60. <td style="text-align: center;">{{count($row->workerProjects)}}</td>
  61. <td style="text-align: center;">{{$row->appointment_num ?? 0}}</td>
  62. <td style="text-align: center;">{{$row->appointment_num-$row->has_many_service_count}}</td>
  63. <td style="text-align: center;">{{$row->has_many_service_count}}</td>
  64. <td style="overflow:visible;">
  65. <div class="btn-group btn-group-sm" >
  66. <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="javascript:;">操作 <span class="caret"></span></a>
  67. <ul class="dropdown-menu dropdown-menu-left" role="menu" style='z-index: 9999'>
  68. <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkerController::EDIT_URL, ['id' => $row->id])}}" title='编辑'><i class='fa fa-pencil'></i> 编辑</a></li>
  69. <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>
  70. <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>
  71. <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>
  72. <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>
  73. <li><a href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkTimeController::EDIT_URL, ['worker_id' => $row->id])}}" title='工作时间' ><i class='fa fa-pencil'></i> 工作时间</a></li>
  74. </ul>
  75. </div>
  76. </td>
  77. </tr>
  78. @endforeach
  79. </tbody>
  80. </table>
  81. {!!$pager!!}
  82. </div>
  83. </div>
  84. <div class='panel-footer' style="padding-bottom: 60px">
  85. <a class='btn btn-info' href="{{yzWebUrl(\Yunshop\Appointment\admin\WorkerController::ADD_URL)}}"><i class='fa fa-plus'></i> 添加{{$lang_set['worker']}}</a>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
  91. <script language='javascript'>
  92. cascdeInit("{{$search['province_id']}}","{{$search['city_id']}}","{{$search['district_id']}}");
  93. </script>
  94. @endsection