mivita/resources/views/user/payment/credit.blade.php
2022-07-29 18:18:05 +02:00

111 lines
4 KiB
PHP

@extends('layouts.layout-2')
@section('content')
<h4 class="font-weight-bold py-2 mb-2">
{{ __('navigation.my_account') }} / {{ __('navigation.credit') }}
</h4>
<div class="card">
<div class="card-datatable table-responsive">
<table class="datatables-style table table-striped table-bordered" id="datatable-user-credit">
<thead>
<tr>
<th>{{ __('G.Nr.') }}</th>
<th>{{ __('Gutschrift') }}</th>
<th>{{ __('Betrag') }}</th>
<th>{{ __('Datum') }}</th>
<th>{{ __('Zahlung') }}</th>
<th>{{ __('aus Guthaben') }}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<hr>
<div class="card">
<h5 class="card-header">
Mein Guthaben
</h5>
<div class="card-datatable table-responsive">
<table class="datatables-style table table-striped table-bordered" id="datatable-user-credit-item">
<thead>
<tr>
<th style="width: 55%">Betreff</th>
<th>Betrag</th>
<th>Datum</th>
<th>Status</th>
<th>Gutschrift</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script>
$(document).ready(function() {
var creditTable = $('#datatable-user-credit').DataTable({
"processing": true,
"serverSide": true,
ajax: {
url: '{!! route( 'user_payment_credit_datatable') !!}',
data: function(d) {
//d.filter_sales_year = $('select[name=filter_sales_year]').val();
}
},
"order": [[0, "desc" ]],
"columns": [
{ data: 'full_number', name: 'full_number' },
{ data: 'view', name: 'view', orderable: false, searchable: false },
{ data: 'total', name: 'total' },
{ data: 'date', name: 'date' },
{ data: 'status', name: 'status', searchable: false },
{ data: 'credits', name: 'credits', orderable: false },
],
"bLengthChange": false,
"iDisplayLength": 50,
"language": {
"url": "/js/German.json"
}
});
/*$('#filter_sales_year').on('change', function(){
oTable.draw();
});
*/
var creditItemTable = $('#datatable-user-credit-item').DataTable({
"processing": true,
"serverSide": true,
ajax: {
url: '{!! route('user_payment_credit_item_datatable') !!}',
/*data: function(d) {
d.filter_user_status = $('select[name=filter_user_status]').val();
}*/
},
"order": [
[2, "desc"]
],
"columns": [
{ data: 'message', name: 'message' },
{ data: 'credit', name: 'credit' },
{ data: 'created_at', name: 'created_at' },
{ data: 'status', name: 'status', orderable: false, searchable: false },
{ data: 'paid', name: 'paid', orderable: false, searchable: false },
],
"bLengthChange": false,
"iDisplayLength": 50,
"language": {
"url": "/js/German.json"
}
});
/*$('#filter_user_status').on('change', function(){
oTable.draw();
});*/
});
</script>
@endsection