5 changed files with 49 additions and 25 deletions
-
20app/Admin/Actions/Tools/SalesmanOption.php
-
16app/Admin/Common/Order.php
-
4app/Admin/Controllers/v3/Salesman.php
-
14app/Admin/Repositories/v3/Salesman.php
-
20resources/views/admin/tools/salesman.blade.php
@ -1,7 +1,15 @@ |
|||
<div class="btn-group" data-toggle="buttons"> |
|||
@foreach($options as $option => $label) |
|||
<label class="btn btn-default {{ request()->get('gender', 'all') == $option ? 'active' : '' }}"> |
|||
<input type="radio" class="user-gender" value="{{ $option }}">{{$label}} |
|||
</label> |
|||
@endforeach |
|||
|
|||
<div class="btn-group btn-group-toggle" data-toggle="buttons"> |
|||
<label class="btn btn-primary {{request()->get('type','today')=='today'? 'active':''}}"> |
|||
<input type="radio" name="options" id="today" checked> 今日 |
|||
</label> |
|||
<label class="btn btn-primary {{request()->get('type')=='yesterday'? 'active':''}}"> |
|||
<input type="radio" name="options" checked id="yesterday"> 昨日 |
|||
</label> |
|||
<label class="btn btn-primary {{request()->get('type')=='week'? 'active':''}}"> |
|||
<input type="radio" name="options" id="week"> 本周 |
|||
</label> |
|||
<label class="btn btn-primary {{request()->get('type')=='month'? 'active':''}}"> |
|||
<input type="radio" name="options" id="month"> 本月 |
|||
</label> |
|||
</div> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue