| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- @extends('admin.layouts')
- @section('css')
- <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
- @endsection
- @section('content')
- <div class="page-content container-fluid">
- <div class="panel">
- <div class="panel-heading">
- <h2 class="panel-title">邮件投递记录</h2>
- </div>
- <div class="panel-body">
- <form class="form-row">
- <div class="form-group col-lg-3 col-sm-4">
- <input type="text" class="form-control" name="username" value="{{Request::query('username')}}" placeholder="用户账号"/>
- </div>
- <div class="form-group col-lg-2 col-sm-4">
- <select class="form-control" name="type" id="type" onchange="this.form.submit()">
- <option value="" hidden>类型</option>
- @foreach(config('common.notification.labels') as $key => $value)
- <option value="{{$key}}">{{$value}}</option>
- @endforeach
- </select>
- </div>
- <div class="form-group col-lg-1 col-sm-4 btn-group">
- <button type="submit" class="btn btn-primary">搜 索</button>
- <a href="{{route('admin.log.notify')}}" class="btn btn-danger">{{trans('common.reset')}}</a>
- </div>
- </form>
- <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
- <thead class="thead-default">
- <tr>
- <th> #</th>
- <th> 类型</th>
- <th> 收信地址</th>
- <th> 标题</th>
- <th> 内容</th>
- <th> 投递时间</th>
- <th> 投递状态</th>
- </tr>
- </thead>
- <tbody>
- @foreach($notificationLogs as $log)
- <tr>
- <td> {{$log->id}} </td>
- <td> {{$log->type_label}} </td>
- <td> {{$log->address}} </td>
- <td> {{$log->title}} </td>
- <td class="text-break"> {{$log->content}} </td>
- <td> {{$log->created_at}} </td>
- <td>
- @if($log->status < 0)
- <p class="badge badge-danger text-break font-size-14"> {{$log->error}} </p>
- @elseif($log->status > 0)
- <labe class="badge badge-success">投递成功</labe>
- @else
- <span class="badge badge-default"> 等待投递 </span>
- @endif
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- <div class="panel-footer">
- <div class="row">
- <div class="col-sm-4">
- 共 <code>{{$notificationLogs->total()}}</code> 条记录
- </div>
- <div class="col-sm-8">
- <nav class="Page navigation float-right">
- {{$notificationLogs->links()}}
- </nav>
- </div>
- </div>
- </div>
- </div>
- </div>
- @endsection
- @section('javascript')
- <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js"></script>
- <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
- <script>
- $(document).ready(function() {
- $('#type').val({{Request::query('type')}});
- });
- </script>
- @endsection
|