This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 04d677d37a
commit bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions

View file

@ -10,7 +10,7 @@
data-id="new"
data-action="add_user_sales_volume"
data-back="{{url()->current()}}"
data-route="{{ route('modal_load') }}"><span class="far fa-plus-circle"></span> Points hinzufügen
data-route="{{ route('modal_load') }}"><span class="fa fa-plus-circle"></span> Points hinzufügen
</button>
</div>
</h5>
@ -29,7 +29,7 @@
{!! Form::open(['url' => route('admin_business_points'), 'class' => 'form-horizontal', 'id'=>'form_admin_business_points']) !!}
<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">
<div class="col-12 col-sm-12 col-md-3 col-lg-3 mb-1">
<select class="selectpicker on_change_select" data-style="btn-default" name="points_filter_member_id" id="points_filter_member_id" data-live-search="true">
<option value="">Filter Berater aus</option>
@foreach($filter_members as $member)
@ -37,15 +37,25 @@
@endforeach
</select>
</div>
<div class="col-12 col-sm-12 col-md-3 col-lg-3 mb-1">
<select class="selectpicker on_change_select" data-style="btn-default" name="points_filter_status_type_id" id="points_filter_status_type_id" data-live-search="true">
<option value="">Filter Typ aus</option>
@foreach($filter_status_types as $key=>$value)
<option value="{{$key}}" @if(session('points_filter_status_type_id') == $key) selected @endif>{{$value}}</option>
@endforeach
</select>
</div>
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
<select class="custom-select on_change_select" name="points_filter_month">
@foreach($filter_months as $key=>$value)
<option value="{{$key}}" @if(session('points_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">
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
<select class="custom-select on_change_select" name="points_filter_year">
@foreach($filter_years as $key=>$value)
<option value="{{$value}}" @if(session('points_filter_year') == $value) selected @endif>{{$value}}</option>
@ -61,14 +71,15 @@
<tr>
<th>#</th>
<th>{{__('Datum') }}</th>
<th>{{__('Points')}}</th>
<th>{{__('tables.points')}}</th>
<th>{{__('Umsatz netto')}}</th>
<th>{{__('aus')}}</th>
<th>{{__('VE')}}</th>
<th>{{__('Typ')}}</th>
<th>{{__('für')}}</th>
<th>{{__('Bestellung')}}</th>
<th>{{__('Berater Nr.')}}</th>
<th>{{__('Vorname')}}</th>
<th>{{__('Nachname') }}</th>
<th>{{__('tables.adviser_no')}}</th>
<th>{{__('First name')}}</th>
<th>{{__('Last name') }}</th>
<th>{{__('E-Mail') }}</th>
<th>{{__('Info') }}</th>
<th>{{__('Notiz') }}</th>
@ -93,8 +104,9 @@
url: '{!! route('admin_business_points_datatable') !!}',
data: function(d) {
d.points_filter_member_id = $('select[name=points_filter_member_id]').val();
d.points_filter_status_type_id = $('select[name=points_filter_status_type_id]').val();
d.points_filter_month = $('select[name=points_filter_month]').val();
d.points_filter_year = $('select[name=points_filter_year]').val();
d.points_filter_year = $('select[name=points_filter_year]').val();
}
},
"order": [[0, "desc" ]],
@ -103,6 +115,7 @@
{ data: 'date', name: 'date', orderable: true, searchable: false },
{ data: 'points', name: 'points', orderable: true, searchable: false },
{ data: 'total_net', name: 'total_net', orderable: true, searchable: false },
{ data: 'status_turnover', name: 'status_turnover', orderable: false, searchable: false },
{ data: 'status', name: 'status', orderable: true, searchable: false },
{ data: 'status_points', name: 'status_points', orderable: true, searchable: false },
{ data: 'order', name: 'order', orderable: false , searchable: false },
@ -116,7 +129,7 @@
"bLengthChange": false,
"iDisplayLength": 100,
"language": {
"url": "/js/German.json"
"url": "/js/datatables-{{ \App::getLocale() }}.json"
}
});
$('select.on_change_select').on('change', function(){