1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- @extends('admin.layout')
- @section('content')
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>dfghfdhfgfghfg</h5>
- <div class="ibox-tools">
- <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <div class="row">
- <form method="GET" action="" accept-charset="UTF-8">
- <div class="col-sm-4">
- <div class="input-group">
- <input type="text" value="{{Request::get('keyword')}}" placeholder="请输入关键词" name="keyword"class="input-sm form-control">
- <span class="input-group-btn">
- <button type="submit" class="btn btn-sm btn-primary">搜索</button>
- </span>
- </div>
- </div>
- </form>
- @if(role('Dream/Info/create'))
- <div class="col-sm-3 pull-right">
- <a href="{{ U('Dream/Info/create')}}" class="btn btn-sm btn-primary pull-right">添加</a>
- </div>
- @endif
- </div>
- <table class="table table-striped table-bordered table-hover dataTables-example dataTable dataCheckTable">
- <thead>
- <tr>
- <th><input class="btSelectAll" name="btSelectAll" type="checkbox"></th>
-
- <th class="sorting" data-sort="id"> id </th>
- <th class="sorting" data-sort="dream"> 梦想名称 </th>
- <th class="sorting" data-sort="money"> 所需梦想币 </th>
- <th class="sorting" data-sort="time"> 梦想倒计时 </th>
- <th class="sorting" data-sort="get_money"> 获得梦想币 </th>
- <th class="sorting" data-sort="mark"> 梦想分 </th>
- <th class="sorting" data-sort="status"> 梦想状态 </th>
- <th width="22%">相关操作</th>
- </tr>
- </thead>
- <tbody>
- @if(isset($list))
- @foreach($list as $key => $item)
- <tr>
- <td><input data-json='{!! json_encode($item) !!}' name="btSelectItem" class="data_key" type="checkbox" value="{{ $item->id or 0 }}" /></td>
-
- <td>{{ $item->id }}</td>
- <td>{{ $item->dream }}</td>
- <td>{{ $item->money }}</td>
- <td>{{ $item->time }}</td>
- <td>{{ $item->get_money }}</td>
- <td>{{ $item->mark }}</td>
- <td>{{ $item->status }}</td>
- <td>
- @if(role('Dream/Info/view'))
- <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('Dream/Info/view',['id'=>$item->id])}}'});" class="btn btn-primary ">查看</button>
- @endif
- </td>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- <div class="row">
- <div class="col-sm-6">
- <div class="dataTables_info" id="DataTables_Table_0_info"
- role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。</div>
- </div>
- <div class="col-sm-6">
- <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
- {!! $list->setPath('')->appends(Request::all())->render() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- @include('admin.tools.check_script');
- @endsection
|