2016-07-23 15:20:10 +08:00
|
|
|
@extends('admin.master')
|
|
|
|
|
2016-09-25 10:02:40 +08:00
|
|
|
@section('title', trans('general.player-manage'))
|
2016-07-23 15:20:10 +08:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
|
|
|
<h1>
|
2016-09-25 10:02:40 +08:00
|
|
|
{{ trans('general.player-manage') }}
|
2016-07-23 15:20:10 +08:00
|
|
|
</h1>
|
2017-01-02 10:40:09 +08:00
|
|
|
<div class="breadcrumb"></div>
|
2016-07-23 15:20:10 +08:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Main content -->
|
|
|
|
<section class="content">
|
|
|
|
<div class="box">
|
2016-12-31 13:07:00 +08:00
|
|
|
<div class="box-body table-bordered">
|
|
|
|
<table id="player-table" class="table table-hover">
|
2016-07-23 15:20:10 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-12-31 21:16:04 +08:00
|
|
|
<th>{{ trans('general.player.pid') }}</th>
|
|
|
|
<th>{{ trans('general.player.owner') }}</th>
|
|
|
|
<th>{{ trans('general.player.player-name') }}</th>
|
|
|
|
<th>{{ trans('general.player.preference') }}</th>
|
|
|
|
<th>{{ trans('general.player.previews') }}</th>
|
|
|
|
<th>{{ trans('general.player.last-modified') }}</th>
|
|
|
|
<th>{{ trans('general.operations') }}</th>
|
2016-07-23 15:20:10 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section><!-- /.content -->
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
|
|
|
@endsection
|
2016-07-29 15:31:05 +08:00
|
|
|
|
|
|
|
@section('script')
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('.box-body').css('min-height', $('.content-wrapper').height() - $('.content-header').outerHeight() - 120);
|
|
|
|
});
|
2016-12-31 13:07:00 +08:00
|
|
|
|
|
|
|
$('#player-table').DataTable({
|
|
|
|
language: trans('vendor.datatables'),
|
|
|
|
responsive: true,
|
|
|
|
autoWidth: false,
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
ajax: '{{ url("admin/player-data") }}',
|
|
|
|
createdRow: function (row, data, index) {
|
|
|
|
$('td', row).eq(2).attr('id', 'player-name');
|
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
{data: 'pid', 'width': '1%'},
|
|
|
|
{data: 'uid'},
|
|
|
|
{data: 'player_name'},
|
|
|
|
{data: 'preference'},
|
|
|
|
{data: 'previews', searchable: false, orderable: false},
|
|
|
|
{data: 'last_modified'},
|
|
|
|
{data: 'operations', searchable: false, orderable: false}
|
|
|
|
]
|
|
|
|
});
|
2016-07-29 15:31:05 +08:00
|
|
|
</script>
|
|
|
|
@endsection
|