admin/plugins/message_center/views/index/index.blade.php

81 lines
4.0 KiB
PHP

<script src="{!!resource_absolute('static/js/xlsx.full.min.js')!!}"></script>
@extends('layouts.base')
<style>
.panel-body .label{
font-size: 14px!important;
}
</style>
@section('content')
<div class="w1200 m0a" id="storeManagerIndex">
{{--顶部搜索--}}
<div class="panel panel-info">
<div class="panel-body">
<form action="" method="post" class="form-horizontal" role="form" id="form1">
<div class="form-group">
<div class="col-sm-11 col-xs-12">
<div class="row row-fix tpl-category-container" >
<div class="col-xs-12 col-sm-8 col-lg-3">
<input class="form-control" name="search[message_title]" id="" type="text" value="{{ $search['message_title'] }}" placeholder="标题">
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12 col-sm-6 col-lg-6">
<input name="page" value="1" class="hide">
<a href="{{yzWebUrl('plugin.message-center.admin.index.edit-info')}}">
<button type="button" class="btn btn-info"><i class="fa fa-plus"></i> 添加</button>
</a>
<button class="btn btn-success" id="search"><i class="fa fa-search"></i> 搜索</button>
</div>
</div>
</form>
</div>
</div>
{{--信息列表--}}
<div class="panel panel-default">
<div class="panel-body" style="padding-top: 0;margin-bottom: 30px;overflow: auto;padding-right: 30px;">
<table class="table" style="min-width:1500px;overflow: auto;">
<thead>
<tr>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">标题</th>
<th style="text-align:center;">通知类型</th>
<th style="text-align:center;">
<span class="label label-default">发送人数()</span>
<span class="label label-info">未读人数</span>
<span class="label label-warning">已读人数</span>
</th>
<th style="text-align:center;">发布时间</th>
</tr>
</thead>
<tbody>
@foreach ($list as $item)
<tr style="height: 50px;">
<td style="text-align:center;">{{ $item['id'] }}</td>
<td style="text-align:center;">{{ $item['message_title'] }}</td>
<td style="text-align:center;">
@if((int)$item['notice_type'] == 1 )
<span class="label label-warning">指定用户</span>
@else
<span class="label label-info">全部</span>
@endif
</td>
<td style="text-align:center;">
<span class="label label-default">{{ $item['total_user'] }}</span>
<span class="label label-info">{{ $item['total_unread'] }}</span>
<span class="label label-warning">{{ $item['total_read'] }}</span>
</td>
<td style="text-align:center;">{{ $item['created_at'] }}</td>
</tr>
@endforeach
</tbody>
</table>
{!! $pager !!}
</div>
</div>
</div>
<script type="text/javascript"></script>
@endsection