ctrlpanel/themes/default/views/admin/vouchers/users.blade.php

97 lines
3.1 KiB
PHP
Raw Normal View History

2021-10-02 22:55:10 +00:00
@extends('layouts.main')
@section('content')
<!-- CONTENT HEADER -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
2021-12-13 09:12:32 +00:00
<h1>{{__('Vouchers')}}</h1>
2021-10-02 22:55:10 +00:00
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
2021-12-13 09:12:32 +00:00
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{__('Dashboard')}}</a></li>
<li class="breadcrumb-item"><a href="{{ route('admin.vouchers.index') }}">{{__('Vouchers')}}</a></li>
2021-10-02 22:55:10 +00:00
<li class="breadcrumb-item"><a class="text-muted"
2021-12-13 09:12:32 +00:00
href="{{ route('admin.vouchers.users', $voucher->id) }}">{{__('Users')}}</a>
2021-10-02 22:55:10 +00:00
</ol>
</div>
</div>
</div>
</section>
<!-- END CONTENT HEADER -->
<!-- MAIN CONTENT -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-header">
<div class="d-flex justify-content-between">
2021-12-13 09:12:32 +00:00
<h5 class="card-title"><i class="fas fa-users mr-2"></i>{{__('Users')}}</h5>
2021-10-02 22:55:10 +00:00
</div>
</div>
<div class="card-body table-responsive">
<table id="datatable" class="table table-striped">
<thead>
<tr>
2021-12-13 09:12:32 +00:00
<th>{{__('ID')}}</th>
<th>{{__('Name')}}</th>
<th>{{__('Email')}}</th>
2021-10-02 22:55:10 +00:00
<th>{{ CREDITS_DISPLAY_NAME }}</th>
2021-12-13 09:12:32 +00:00
<th>{{__('Last seen')}}</th>
2021-10-02 22:55:10 +00:00
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<!-- END CUSTOM CONTENT -->
</section>
<!-- END CONTENT -->
<script>
document.addEventListener("DOMContentLoaded", function() {
$('#datatable').DataTable({
2021-12-13 21:39:40 +00:00
language: {
2022-08-17 08:33:44 +00:00
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("SETTINGS::LOCALE:DATATABLES")}}.json'
2021-12-13 21:39:40 +00:00
},
2021-10-02 22:55:10 +00:00
processing: true,
serverSide: true,
stateSave: true,
ajax: "{{ route('admin.vouchers.usersdatatable', $voucher->id) }}",
columns: [{
data: 'id'
}, {
data: 'name'
},
{
data: 'email'
},
{
data: 'credits'
},
{
data: 'last_seen'
},
],
fnDrawCallback: function(oSettings) {
$('[data-toggle="popover"]').popover();
}
});
});
</script>
@endsection