109 lines
5.5 KiB
PHP
109 lines
5.5 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<h6 class="card-header">
|
|
{{__('Business')}}
|
|
</h6>
|
|
|
|
<div class="card-body p-0">
|
|
{!! Form::open(['url' => route('admin_payments_invoice'), 'class' => 'form-horizontal', 'id'=>'form_filter_payment_invoices']) !!}
|
|
|
|
<div class="form-row align-items-center px-4 pb-2 pt-3">
|
|
{{-- <div class="col-12 col-sm-4 col-md-4 col-lg-4 mb-1">
|
|
<input class="form-control on_keyup_invoice" name="business_user_filter_name" type="text" value="{{session('business_user_filter_name')}}" placeholder="Name">
|
|
</div>
|
|
--}}
|
|
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
|
<select class="custom-select on_change_invoice" name="business_user_filter_month">
|
|
@foreach($filter_months as $key=>$value)
|
|
<option value="{{$key}}" @if(session('business_user_filter_month') == $key) selected @endif>{{$value}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
|
<select class="custom-select on_change_invoice" name="business_user_filter_year">
|
|
@foreach($filter_years as $key=>$value)
|
|
<option value="{{$value}}" @if(session('business_user_filter_year') == $value) selected @endif>{{$value}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
|
|
<div class="card-datatable table-responsive pt-0">
|
|
<table class="datatables-style table table-striped table-bordered" id="datatable-users">
|
|
<thead>
|
|
<tr>
|
|
<th>{{__('ID') }}</th>
|
|
<th>{{__('Berater-ID') }}</th>
|
|
<th>{{__('Points')}}</th>
|
|
<th>{{__('Points Shop')}}</th>
|
|
<th>{{__('Gesamt')}}</th>
|
|
<th>{{__('Umsatz')}}</th>
|
|
<th>{{__('Umsatz Shop')}}</th>
|
|
<th>{{__('Gesamt Shop')}}</th>
|
|
<th>{{__('E-Mail')}}</th>
|
|
|
|
<th>{{__('Vorname')}}</th>
|
|
<th>{{__('Nachname')}}</th>
|
|
<th>{{__('Level')}}</th>
|
|
<th>{{__('Mitglied')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
var oTable = $('#datatable-users').DataTable({
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"stateSave": true,
|
|
"searching": true,
|
|
ajax: {
|
|
url: '{!! route('admin_business_user_datatable') !!}',
|
|
data: function(d) {
|
|
d.business_user_filter_name = $('input[name=business_user_filter_name]').val();
|
|
d.business_user_filter_month = $('select[name=business_user_filter_month]').val();
|
|
d.business_user_filter_year = $('select[name=business_user_filter_year]').val();
|
|
}
|
|
},
|
|
"order": [[0, "asc" ]],
|
|
"columns": [
|
|
{ data: 'id', name: 'users.id', searchable: false },
|
|
{ data: 'account.m_account', name: 'account.m_account' },
|
|
{ data: 'sales_volume_points', name: 'sales_volume_points', orderable: false, searchable: false },
|
|
{ data: 'sales_volume_points_shop', name: 'sales_volume_points_shop', orderable: false, searchable: false },
|
|
{ data: 'sales_volume_points_sum', name: 'sales_volume_points_sum', orderable: false, searchable: false },
|
|
{ data: 'sales_volume_total', name: 'sales_volume_total', orderable: false, searchable: false },
|
|
{ data: 'sales_volume_total_shop', name: 'sales_volume_total_shop', orderable: false, searchable: false },
|
|
{ data: 'sales_volume_total_sum', name: 'sales_volume_total_sum', orderable: false, searchable: false },
|
|
{ data: 'email', name: 'users.email' },
|
|
{ data: 'account.first_name', name: 'account.first_name' },
|
|
{ data: 'account.last_name', name: 'account.last_name' },
|
|
{ data: 'user_level', name: 'user_level', orderable: false, searchable: false },
|
|
{ data: 'active_account', name: 'active_account' },
|
|
],
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"language": {
|
|
"url": "/js/German.json"
|
|
}
|
|
});
|
|
$('select.on_change_invoice').on('change', function(){
|
|
oTable.draw();
|
|
});
|
|
|
|
$('input.on_keyup_invoice').on('keyup', function(){
|
|
oTable.draw();
|
|
});
|
|
});
|
|
/*$('#filter_sales_year').on('change', function(){
|
|
$('#form_filter_payment_invoices').submit();
|
|
});*/
|
|
</script>
|
|
@endsection
|