| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- @extends('admin.table_layouts')
- @section('content')
- <div class="page-content container-fluid">
- <div class="panel">
- <div class="panel-heading">
- <h3 class="panel-title">{{ trans('admin.menu.log.traffic_flow') }}</h3>
- </div>
- <div class="panel-body">
- <form class="form-row">
- <div class="form-group col-lg-4 col-sm-6">
- <input class="form-control" name="username" type="text" value="{{ Request::query('username') }}"
- placeholder="{{ trans('common.account') }}" />
- </div>
- <div class="form-group col-lg-2 col-sm-6 btn-group">
- <button class="btn btn-primary" type="submit">{{ trans('common.search') }}</button>
- <button class="btn btn-danger" type="button" onclick="resetSearchForm()">{{ trans('common.reset') }}</button>
- </div>
- </form>
- <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
- <thead class="thead-default">
- <tr>
- <th> #</th>
- <th> {{ trans('common.account') }}</th>
- <th> {{ trans('model.order.attribute') }}</th>
- <th> {{ trans('model.user_data_modify.before') }}</th>
- <th> {{ trans('model.user_data_modify.after') }}</th>
- <th> {{ trans('model.common.description') }}</th>
- <th> {{ trans('model.user_data_modify.created_at') }}</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($userTrafficLogs as $log)
- <tr>
- <td> {{ $log->id }} </td>
- <td>
- @if (empty($log->user))
- 【{{ trans('common.deleted_item', ['attribute' => trans('common.account')]) }}】
- @else
- <a href="{{ route('admin.log.flow', ['username' => $log->user->username]) }}"> {{ $log->user->username }} </a>
- @endif
- </td>
- <td>
- @if ($log->order_id)
- @if ($log->order)
- @can('admin.order')
- <a href="{{ route('admin.order', ['id' => $log->order_id]) }}"></a>
- @else
- {{ $log->order->goods->name }}
- @endcan
- @else
- 【{{ trans('common.deleted_item', ['attribute' => trans('model.order.attribute')]) }}】
- @endif
- @endif
- </td>
- <td> {{ $log->before }} </td>
- <td> {{ $log->after }} </td>
- <td> {{ $log->description }} </td>
- <td> {{ $log->created_at }} </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- <div class="panel-footer">
- <div class="row">
- <div class="col-sm-4">
- {!! trans('admin.logs.counts', ['num' => $userTrafficLogs->total()]) !!}
- </div>
- <div class="col-sm-8">
- <nav class="Page navigation float-right">
- {{ $userTrafficLogs->links() }}
- </nav>
- </div>
- </div>
- </div>
- </div>
- </div>
- @endsection
|