08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
|
|
@ -18,7 +18,7 @@
|
|||
data-id="new"
|
||||
data-action="add-user-credit"
|
||||
data-back="{{url()->current()}}"
|
||||
data-route="{{ route('modal_load') }}"><span class="far fa-plus-circle"></span> Guthaben hinzufügen
|
||||
data-route="{{ route('modal_load') }}"><span class="fa fa-plus-circle"></span> Guthaben hinzufügen
|
||||
</button>
|
||||
</div>
|
||||
</h5>
|
||||
|
|
@ -38,8 +38,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Account ID')}}</th>
|
||||
<th>{{__('Vorname')}}</th>
|
||||
<th>{{__('Nachname') }}</th>
|
||||
<th>{{__('First name')}}</th>
|
||||
<th>{{__('Last name') }}</th>
|
||||
<th>{{__('E-Mail') }}</th>
|
||||
<th>{{__('Betrag') }}</th>
|
||||
<th>{{__('Guthaben')}}</th>
|
||||
|
|
@ -125,8 +125,8 @@
|
|||
<th>ID</th>
|
||||
<th>{{__('G.Nr.')}}</th>
|
||||
<th>{{__('Gutschrift')}}</th>
|
||||
<th>{{__('Vorname')}}</th>
|
||||
<th>{{__('Nachname') }}</th>
|
||||
<th>{{__('First name')}}</th>
|
||||
<th>{{__('Last name') }}</th>
|
||||
<th>{{__('E-Mail') }}</th>
|
||||
<th>{{__('Betrag') }}</th>
|
||||
<th>{{__('Datum') }}</th>
|
||||
|
|
@ -208,7 +208,7 @@
|
|||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
$('select.on_change_credits').on('change', function(){
|
||||
|
|
|
|||
430
resources/views/admin/payment/credit_detail.blade.php
Normal file
430
resources/views/admin/payment/credit_detail.blade.php
Normal file
|
|
@ -0,0 +1,430 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.td-entry-table-margin {
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid rgb(221, 221, 221);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
div.card-header {
|
||||
border-bottom: none;
|
||||
}
|
||||
.user-view-table tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
.user-view-table tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
.table th, .table td {
|
||||
border-top: none;
|
||||
}
|
||||
.table tbody th, .table tbody td {
|
||||
border-bottom: 1px solid #d6d6de;
|
||||
}
|
||||
.card hr {
|
||||
border-color: #d7d700
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{ __('team.payout_details') }}
|
||||
<br>
|
||||
{{ __('pdf.credit_note') }} | {{ $user_credit->date }} | {{ $user_credit->full_number }} |
|
||||
{{ $user_credit->user->account->first_name }} {{ $user_credit->user->account->last_name }}
|
||||
({{ $user_credit->user->email }})
|
||||
</h5>
|
||||
|
||||
@foreach ($dates as $date => $dateObj)
|
||||
@if (isset($collection->calc_bot[$date]))
|
||||
@php($cbot = $collection->calc_bot[$date])
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('team.date') }}:</td>
|
||||
<td>
|
||||
<strong> {{ HTMLHelper::getMonth($cbot->date->month) }}
|
||||
{{ $cbot->date->year }}</strong> | {{ __('team.completed') }}
|
||||
@if ($cbot->business_user->isSave())
|
||||
<span class="badge badge-outline-success"><i class="fa fa-check-circle"></i></span>
|
||||
@else
|
||||
<span class="badge badge-outline-warning-dark"><i class="fa fa-times"></i></span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('team.career_level') }}:</td>
|
||||
<td>
|
||||
{{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->user_level_name) }}
|
||||
|
||||
<span class="badge badge-outline-success"> {{ __('team.KU') }}
|
||||
{{ $cbot->business_user->qual_kp }} / {{ __('team.PP') }}
|
||||
{{ formatNumber($cbot->business_user->qual_pp, 0) }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.shop_commission') }}:</td>
|
||||
<td>
|
||||
{{ $cbot->business_user->margin_shop }} %
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.consultant_margin') }}:</td>
|
||||
<td>
|
||||
{{ $cbot->business_user->margin }} %
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_total') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-secondary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->getCommissionTotal()) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
@endif
|
||||
@if (isset($collection->commission_shop[$date]))
|
||||
@php($cs = $collection->commission_shop[$date])
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ __('team.commission_shop') }}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-primary"
|
||||
style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }}
|
||||
€</strong></span>
|
||||
|
||||
({{ __('team.sales_store_net') }}:
|
||||
{{ formatNumber($cbot->business_user->sales_volume_total_shop) }} € /
|
||||
{{ $cbot->business_user->margin_shop }} %)
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('tables.date') }}</th>
|
||||
<th>{{ __('tables.net_sales') }}</th>
|
||||
<th>{{__('tables.commission')}} %</th>
|
||||
<th>{{__('tables.commission')}} €</th>
|
||||
<th>{{ __('tables.order') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cs->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ formatNumber($user_sales_volume->total_net) }} €</td>
|
||||
<td>{{ $cbot->business_user->margin_shop }} %</td>
|
||||
<td>{{ formatNumber($user_sales_volume->caluCommissonTotalNet($cbot->business_user->margin_shop)) }} €</td>
|
||||
|
||||
<td>
|
||||
{{ $user_sales_volume->shopping_order_id }}
|
||||
@if ($user_sales_volume->shopping_order)
|
||||
<br><span class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@if (isset($collection->commission_credit[$date]))
|
||||
@php($ccredits = $collection->commission_credit[$date])
|
||||
@foreach ($ccredits as $credit)
|
||||
<tr>
|
||||
<td>{{ $credit->date }}</td>
|
||||
<td>{{ formatNumber($credit->total_net) }} €</td>
|
||||
<td>{{ $cbot->business_user->margin_shop }} %</td>
|
||||
<td>{{ formatNumber($credit->caluCommissonTotalNet($cbot->business_user->margin_shop)) }} €</td>
|
||||
<td>{{ __('pdf.credit_note') }}<br><span class="small">{{ $credit->info }}</span></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td>{{ formatNumber($cs->user_sales_volumes_total->month_shop_total_net) }} €</td>
|
||||
<td> </td>
|
||||
<td><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }} €</strong></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
@if (isset($collection->own_order[$date]))
|
||||
@php($order = $collection->own_order[$date])
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ __('team.own') }} {{ __('tables.margin') }} </strong>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-primary"
|
||||
style="font-size: 1em;"><strong>
|
||||
{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }}
|
||||
€</strong></span>
|
||||
|
||||
({{ __('team.net_turnover') }}:
|
||||
{{ formatNumber($cbot->business_user->sales_volume_total) }} € /
|
||||
{{ $cbot->business_user->margin }} %)
|
||||
<br>
|
||||
<em>{{ __('team.consultant_margin_info') }}</em>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('tables.date') }}</th>
|
||||
<th>{{ __('tables.net_sales') }}</th>
|
||||
<th>{{ __('tables.margin') }} %</th>
|
||||
<th>{{ __('tables.margin') }} €</th>
|
||||
<th>{{ __('tables.order') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($order->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ formatNumber($user_sales_volume->total_net) }} €</td>
|
||||
<td>{{ $cbot->business_user->margin }} %</td>
|
||||
<td>{{ formatNumber($user_sales_volume->caluCommissonTotalNet($cbot->business_user->margin)) }} €</td>
|
||||
<td>
|
||||
{{ $user_sales_volume->shopping_order_id }}
|
||||
@if ($user_sales_volume->shopping_order)
|
||||
<br><span
|
||||
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td>{{ formatNumber($order->credit_total_net) }} €</td>
|
||||
<td> </td>
|
||||
<td><strong>{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }} €</strong></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@if (isset($collection->commission_registration[$date]))
|
||||
@php($cr = $collection->commission_registration[$date])
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>{{ __('tables.points') }} {{ __('payment.registration') }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('tables.date') }}</th>
|
||||
<th>{{ __('tables.points') }}</th>
|
||||
<th>{{ __('tables.info') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cr->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ $user_sales_volume->points }}</td>
|
||||
<td>{{ $user_sales_volume->info }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td><strong>{{ $cr->credit_total_points }}</strong></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>{{ __('tables.total') }} </strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.net_turnover') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->sales_volume_total_sum) }} €</strong>
|
||||
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_total) }} € | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_total_shop) }} €)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.customer_points') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} {{ __('team.KU') }}</strong>
|
||||
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_KP_points, 0) }} | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_points_shop, 0) }})
|
||||
<span class="badge {{ $cbot->business_user->isQualKP() ? 'badge-outline-success' : 'badge-outline-warning-dark' }}"> {{ __('team.KU') }} {{ $cbot->business_user->qual_kp }}</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
@if($cbot->business_user->version == 2)
|
||||
<tr>
|
||||
<td>{{ __('team.payline_points') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->payline_points, 0) }} {{ __('team.PP') }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('team.qualification_points') }} :</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} {{ __('team.PP') }}</strong> (+ {{ __('team.volume_KU') }})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.current_commission_level') }}:</td>
|
||||
<td>
|
||||
@if($cbot->business_user->isQualLevel())
|
||||
<span class="badge {{ $cbot->business_user->isQualEqualLevel() ? 'badge-outline-success' : 'badge-outline-info' }}">
|
||||
{{ __('team.KU') }} {{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} /
|
||||
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_kp'], 0) }}</strong> |
|
||||
{{ __('team.PP') }} {{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} /
|
||||
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_pp'], 0) }}</strong>
|
||||
| {{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->qual_user_level['name']) }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_payline') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_pp_total) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_WB') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_growth_total) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('tables.line')}}</th>
|
||||
<th>{{__('tables.points')}}</th>
|
||||
<th>{{__('tables.commission')}} %</th>
|
||||
<th>{{__('tables.commission')}} €</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cbot->business_user->business_lines as $line => $object)
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@if($line <= $cbot->business_user->getQualLevelPaylines())
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-success">{{ $line }}. {{ __('team.PP') }}</div>
|
||||
@elseif($line <= $cbot->business_user->isQualLevelGrowth($line))
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-warning-dark">{{ $line }}. {{ __('team.WB') }}</div>
|
||||
@else
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-dark">{{ $line }}.</div>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'points'), 0) }}</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'margin'), 1) }} %</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'commission'), 2) }} €</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>{{__('tables.total')}}</td>
|
||||
<td>{{ formatNumber($cbot->business_user->total_pp, 0) }}</td>
|
||||
<td> </td>
|
||||
<td><strong>{{ formatNumber($cbot->business_user->commission_pp_total, 2) }} €</strong></td>
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('tables.line')}}</th>
|
||||
<th>{{ __('shop.name') }}</th>
|
||||
<th>{{__('tables.points')}}</th>
|
||||
<th>{{__('tables.commission')}} %</th>
|
||||
<th>{{__('tables.commission')}} €</th>
|
||||
<th>{{ __('tables.level') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{!! \App\Services\BusinessPlan\SalesPointsVolumeHelper::getBusinessUsersTable($cbot, 'line') !!}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
454
resources/views/admin/payment/credit_detail_long.blade.php
Normal file
454
resources/views/admin/payment/credit_detail_long.blade.php
Normal file
|
|
@ -0,0 +1,454 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.td-entry-table-margin {
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid rgb(221, 221, 221);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
div.card-header {
|
||||
border-bottom: none;
|
||||
}
|
||||
.user-view-table tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
.user-view-table tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
.table th, .table td {
|
||||
border-top: none;
|
||||
}
|
||||
.table tbody th, .table tbody td {
|
||||
border-bottom: 1px solid #d6d6de;
|
||||
}
|
||||
.card hr {
|
||||
border-color: #d7d700
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
Auszahlungen Details
|
||||
<br>
|
||||
{{ __('pdf.credit_note') }} | {{ $user_credit->date }} | {{ $user_credit->full_number }} |
|
||||
{{ $user_credit->user->account->first_name }} {{ $user_credit->user->account->last_name }}
|
||||
({{ $user_credit->user->email }})
|
||||
</h5>
|
||||
|
||||
@foreach ($dates as $date => $dateObj)
|
||||
@if (isset($collection->calc_bot[$date]))
|
||||
@php($cbot = $collection->calc_bot[$date])
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('team.date') }}:</td>
|
||||
<td>
|
||||
<strong> {{ HTMLHelper::getMonth($cbot->date->month) }}
|
||||
{{ $cbot->date->year }}</strong> | {{ __('team.completed') }}
|
||||
@if ($cbot->business_user->isSave())
|
||||
<span class="badge badge-outline-success"><i class="fa fa-check-circle"></i></span>
|
||||
@else
|
||||
<span class="badge badge-outline-warning-dark"><i class="fa fa-times"></i></span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('team.career_level') }}:</td>
|
||||
<td>
|
||||
{{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->user_level_name) }}
|
||||
|
||||
<span class="badge badge-outline-success"> {{ __('team.KU') }}
|
||||
{{ $cbot->business_user->qual_kp }} / {{ __('team.PP') }}
|
||||
{{ formatNumber($cbot->business_user->qual_pp, 0) }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.shop_commission') }}:</td>
|
||||
<td>
|
||||
{{ $cbot->business_user->margin_shop }} %
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.consultant_margin') }}:</td>
|
||||
<td>
|
||||
{{ $cbot->business_user->margin }} %
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_total') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-secondary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->getCommissionTotal()) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
@endif
|
||||
@if (isset($collection->commission_shop[$date]))
|
||||
@php($cs = $collection->commission_shop[$date])
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ __('team.commission_shop') }}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-primary"
|
||||
style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }}
|
||||
€</strong></span>
|
||||
|
||||
({{ __('team.sales_store_net') }}:
|
||||
{{ formatNumber($cbot->business_user->sales_volume_total_shop) }} € /
|
||||
{{ $cbot->business_user->margin_shop }} %)
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('Datum') }}</th>
|
||||
<th>{{ __('Typ') }}</th>
|
||||
<th>{{ __('Umsatz netto') }}</th>
|
||||
<th>{{ __('tables.points') }}</th>
|
||||
<th>{{ __('für') }}</th>
|
||||
<th>{{ __('VE') }}</th>
|
||||
<th>{{ __('Bestellung') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cs->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->id }}</td>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusType() }}</td>
|
||||
<td>{{ formatNumber($user_sales_volume->total_net) }} €</td>
|
||||
<td>{{ $user_sales_volume->points }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
|
||||
<td>
|
||||
{{ $user_sales_volume->shopping_order_id }}
|
||||
@if ($user_sales_volume->shopping_order)
|
||||
<br><span
|
||||
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@if (isset($collection->commission_credit[$date]))
|
||||
@php($ccredits = $collection->commission_credit[$date])
|
||||
@foreach ($ccredits as $credit)
|
||||
<tr>
|
||||
<td>{{ $credit->id }}</td>
|
||||
<td>{{ $credit->date }}</td>
|
||||
<td>{{ $credit->getStatusType() }}</td>
|
||||
<td>{{ formatNumber($credit->total_net) }} €</td>
|
||||
<td>({{ $credit->points }}) -</td>
|
||||
<td>{{ $credit->getStatusPointsType() }}</td>
|
||||
<td>{{ $credit->getStatusTurnoverType() }}</td>
|
||||
<td>{{ $credit->info }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td><strong>{{ formatNumber($cs->user_sales_volumes_total->month_shop_total_net) }}
|
||||
€</strong></td>
|
||||
<td><strong>{{ $cs->user_sales_volumes_total->month_shop_points }}</strong></td>
|
||||
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
@if (isset($collection->own_order[$date]))
|
||||
@php($order = $collection->own_order[$date])
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ __('team.own') }} {{ __('tables.margin') }} </strong>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-primary"
|
||||
style="font-size: 1em;"><strong>
|
||||
{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }}
|
||||
€</strong></span>
|
||||
|
||||
({{ __('team.net_turnover') }}:
|
||||
{{ formatNumber($cbot->business_user->sales_volume_total) }} € /
|
||||
{{ $cbot->business_user->margin }} %)
|
||||
<br>
|
||||
<em>{{ __('team.consultant_margin_info') }}</em>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('Datum') }}</th>
|
||||
<th>{{ __('Typ') }}</th>
|
||||
<th>{{ __('Umsatz netto') }}</th>
|
||||
<th>{{ __('tables.points') }}</th>
|
||||
<th>{{ __('für') }}</th>
|
||||
<th>{{ __('VE') }}</th>
|
||||
<th>{{ __('Bestellung') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($order->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->id }}</td>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusType() }}</td>
|
||||
<td>{{ formatNumber($user_sales_volume->total_net) }} €</td>
|
||||
<td>{{ $user_sales_volume->points }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
|
||||
<td>
|
||||
{{ $user_sales_volume->shopping_order_id }}
|
||||
@if ($user_sales_volume->shopping_order)
|
||||
<br><span
|
||||
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td><strong>{{ formatNumber($order->credit_total_net) }} €</strong></td>
|
||||
<td><strong>{{ $order->credit_total_points }}</strong></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@if (isset($collection->commission_registration[$date]))
|
||||
@php($cr = $collection->commission_registration[$date])
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>{{ __('tables.points') }} {{ __('payment.registration') }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('Datum') }}</th>
|
||||
<th>{{ __('Typ') }}</th>
|
||||
<th>{{ __('tables.points') }}</th>
|
||||
<th>{{ __('für') }}</th>
|
||||
<th>{{ __('VE') }}</th>
|
||||
<th>{{ __('Info') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cr->user_sales_volumes as $user_sales_volume)
|
||||
<tr>
|
||||
<td>{{ $user_sales_volume->id }}</td>
|
||||
<td>{{ $user_sales_volume->date }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusType() }}</td>
|
||||
<td>{{ $user_sales_volume->points }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
|
||||
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
|
||||
<td>{{ $user_sales_volume->info }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
|
||||
<td><strong>{{ $cr->credit_total_points }}</strong></td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@if (isset($cbot))
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>{{ __('tables.total') }} </strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.net_turnover') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->sales_volume_total_sum) }} €</strong>
|
||||
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_total) }} € | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_total_shop) }} €)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.customer_points') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} {{ __('team.KU') }}</strong>
|
||||
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_KP_points, 0) }} | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_points_shop, 0) }})
|
||||
<span class="badge {{ $cbot->business_user->isQualKP() ? 'badge-outline-success' : 'badge-outline-warning-dark' }}"> {{ __('team.KU') }} {{ $cbot->business_user->qual_kp }}</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="card-header">
|
||||
<table class="table user-view-table m-0">
|
||||
<tbody>
|
||||
@if($cbot->business_user->version == 2)
|
||||
<tr>
|
||||
<td>{{ __('team.payline_points') }}:</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->payline_points, 0) }} {{ __('team.PP') }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('team.qualification_points') }} :</td>
|
||||
<td>
|
||||
<strong>{{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} {{ __('team.PP') }}</strong> (+ {{ __('team.volume_KU') }})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('team.current_commission_level') }}:</td>
|
||||
<td>
|
||||
@if($cbot->business_user->isQualLevel())
|
||||
<span class="badge {{ $cbot->business_user->isQualEqualLevel() ? 'badge-outline-success' : 'badge-outline-info' }}">
|
||||
{{ __('team.KU') }} {{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} /
|
||||
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_kp'], 0) }}</strong> |
|
||||
{{ __('team.PP') }} {{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} /
|
||||
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_pp'], 0) }}</strong>
|
||||
| {{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->qual_user_level['name']) }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_payline') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_pp_total) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.commission_WB') }}:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_growth_total) }} €</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('tables.line')}}</th>
|
||||
<th>{{__('tables.points')}}</th>
|
||||
<th>{{__('tables.commission')}} %</th>
|
||||
<th>{{__('tables.commission')}} €</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cbot->business_user->business_lines as $line => $object)
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@if($line <= $cbot->business_user->getQualLevelPaylines())
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-success">{{ $line }}. {{ __('team.PP') }}</div>
|
||||
@elseif($line <= $cbot->business_user->isQualLevelGrowth($line))
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-warning-dark">{{ $line }}. {{ __('team.WB') }}</div>
|
||||
@else
|
||||
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-dark">{{ $line }}.</div>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'points'), 0) }}</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'margin'), 1) }} %</td>
|
||||
<td>{{ formatNumber($cbot->getKeybyLine($line, 'commission'), 2) }} €</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>{{__('tables.total')}}</td>
|
||||
<td>{{ formatNumber($cbot->business_user->total_pp, 0) }}</td>
|
||||
<td></td>
|
||||
<td><strong>{{ formatNumber($cbot->business_user->commission_pp_total, 2) }} €</strong></td>
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="card-body table-responsive pt-0 pb-0">
|
||||
<table class="datatables-style table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('tables.line')}}</th>
|
||||
<th>{{ __('shop.name') }}</th>
|
||||
<th>{{ __('tables.email') }}</th>
|
||||
<th>{{ __('tables.level') }}</th>
|
||||
<th>{{__('tables.points')}}</th>
|
||||
<th>{{__('tables.net_sales')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{!! \App\Services\BusinessPlan\SalesPointsVolumeHelper::getBusinessUsersTable($cbot->business_users, 'line') !!}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
|
@ -35,15 +35,15 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{__('Re.Nr.')}}</th>
|
||||
<th>{{__('Rechnung')}}</th>
|
||||
<th>{{__('Betrag') }}</th>
|
||||
<th>{{__('Status')}}</th>
|
||||
<th>{{__('Vorname')}}</th>
|
||||
<th>{{__('Nachname') }}</th>
|
||||
<th>{{__('tables.in_no')}}</th>
|
||||
<th>{{__('tables.invoice')}}</th>
|
||||
<th>{{__('tables.amount') }}</th>
|
||||
<th>{{__('tables.status')}}</th>
|
||||
<th>{{__('First name')}}</th>
|
||||
<th>{{__('Last name') }}</th>
|
||||
<th>{{__('E-Mail') }}</th>
|
||||
<th>{{__('Datum') }}</th>
|
||||
<th>{{__('Art')}}</th>
|
||||
<th>{{__('tables.date') }}</th>
|
||||
<th>{{__('tables.art')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -73,8 +73,8 @@
|
|||
{ data: 'id', searchable: false },
|
||||
{ data: 'full_number', name: 'full_number' },
|
||||
{ data: 'invoice', name: 'invoice', orderable: false, searchable: false },
|
||||
{ data: 'total_shipping', name: 'total_shipping' },
|
||||
{ data: 'txaction', name: 'txaction', searchable: false },
|
||||
{ data: 'total_shipping', name: 'total_shipping', orderable: false, searchable: false },
|
||||
{ data: 'txaction', name: 'txaction', orderable: false, searchable: false },
|
||||
{ data: 'shopping_order.shopping_user.billing_firstname', name: 'shopping_order.shopping_user.billing_firstname', orderable: false },
|
||||
{ data: 'shopping_order.shopping_user.billing_lastname', name: 'shopping_order.shopping_user.billing_lastname', orderable: false },
|
||||
{ data: 'shopping_order.shopping_user.billing_email', name: 'shopping_order.shopping_user.billing_email', orderable: false },
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
$('select.on_change_invoice').on('change', function(){
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('close') }}</button>
|
||||
<button type="submit" class="btn btn-primary button-prevent-multiple-submits"><i class="spinner fa fa-spinner fa-spin"></i> {{__('Gutschrift hinzufügen')}}</button>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<div class="form-row">
|
||||
<div class="form-group col-12">
|
||||
<label for="status" class="form-label">{{ __('Status') }}*</label>
|
||||
{{ Form::select('status', $UserCredit::$statusTypes, $UserCredit->status, array('data-live-search'=>'false', 'class'=>'selectpicker') ) }}
|
||||
{{ Form::select('status', $UserCredit::getTransStatusType(), $UserCredit->status, array('data-live-search'=>'false', 'class'=>'selectpicker') ) }}
|
||||
</div>
|
||||
</div>
|
||||
<table class="table user-view-table m-0">
|
||||
|
|
@ -66,8 +66,8 @@
|
|||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||||
<button type="submit" class="btn btn-primary">{{__('speichern')}}</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('close') }}</button>
|
||||
<button type="submit" class="btn btn-primary">{{__('save')}}</button>
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
|
|
|||
118
resources/views/admin/payment/salesvolume.blade.php
Normal file
118
resources/views/admin/payment/salesvolume.blade.php
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{ __('navigation.sales_volumes') }} {{ __('navigation.products') }} (nach Rechnungen)
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['url' => route('admin_payments_sales_volumes_download'), 'class' => '']) !!}
|
||||
{!! Form::hidden('key', 'value') !!}
|
||||
<button type="submit" name="action" value="export" class="btn btn-sm btn-primary mb-2"><i class="ion ion-md-download"></i> Export kompakte Liste als xls</button>
|
||||
|
||||
|
||||
<button type="submit" name="action" value="exportfull_paid_invoice" class="btn btn-sm btn-primary mb-2"><i class="ion ion-md-download"></i> Export vollständige Liste als xls</button>
|
||||
|
||||
<hr>
|
||||
<div class="form-row align-items-center px-0 pb-2 pt-0">
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
<select class="custom-select on_change_select_filter" name="payment_sales_vol_filter_month">
|
||||
@foreach($filter_months as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('payment_sales_vol_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_select_filter" name="payment_sales_vol_filter_year">
|
||||
@foreach($filter_years as $key=>$value)
|
||||
<option value="{{$value}}" @if(session('payment_sales_vol_filter_year') == $value) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="table table-striped table-bordered" id="datatable-sales-volume">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('#') }}</th>
|
||||
<th>{{__('tables.product')}}</th>
|
||||
<th>{{__('tables.article_no')}}</th>
|
||||
<th>{{__('tables.quantity')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
var oTable = $('#datatable-sales-volume').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"stateSave": true,
|
||||
"searching": false,
|
||||
ajax: {
|
||||
url: '{!! route('admin_payments_sales_volumes_datatable') !!}',
|
||||
data: function(d) {
|
||||
d.payment_sales_vol_filter_month = $('select[name=payment_sales_vol_filter_month]').val();
|
||||
d.payment_sales_vol_filter_year = $('select[name=payment_sales_vol_filter_year]').val();
|
||||
}
|
||||
},
|
||||
"order": [[0, "asc" ]],
|
||||
"columns": [
|
||||
{ data: 'id', orderable: true, searchable: false },
|
||||
{ data: 'name', name: 'name', orderable: true, searchable: false },
|
||||
{ data: 'number', name: 'number', orderable: true, searchable: false },
|
||||
{ data: 'value', name: 'value', orderable: true, searchable: false },
|
||||
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"language": {
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
|
||||
$('select.on_change_select_filter').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
$('input.on_keyup_input_filter').on('keyup', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
129
resources/views/admin/payment/taxadvisor.blade.php
Normal file
129
resources/views/admin/payment/taxadvisor.blade.php
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{ __('navigation.payments') }} {{ __('navigation.tax_advisor') }}
|
||||
</h5>
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
Modul ist in Arbeit! Noch nicht verwenden.
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['url' => route('admin_payments_taxadvisor_download'), 'class' => '']) !!}
|
||||
{!! Form::hidden('key', 'value') !!}
|
||||
<button type="submit" name="action" value="export" class="btn btn-md btn-primary mb-2"><i class="ion ion-md-download"></i> Export als xls</button>
|
||||
<hr>
|
||||
<div class="form-row align-items-center px-0 pb-2 pt-0">
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
<select class="custom-select on_change_select_filter" name="payment_taxadvisor_filter_month">
|
||||
@foreach($filter_months as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('payment_taxadvisor_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_select_filter" name="payment_taxadvisor_filter_year">
|
||||
@foreach($filter_years as $key=>$value)
|
||||
<option value="{{$value}}" @if(session('payment_taxadvisor_filter_year') == $value) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="table table-striped table-bordered" id="datatable-payment-taxadvisor">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('#') }}</th>
|
||||
<th>{{__('Umsatz (ohne Soll/Haben-Kz)')}}</th>
|
||||
<th>{{__('Soll/Haben-Kennzeichen')}}</th>
|
||||
<th>{{__('Konto')}}</th>
|
||||
<th>{{__('Gegenkonto (ohne BU-Schlüssel)')}}</th>
|
||||
<th>{{__('BU-Schlüssel')}}</th>
|
||||
<th>{{__('Belegdatum')}}</th>
|
||||
<th>{{__('Belegfeld 1')}}</th>
|
||||
<th>{{__('Buchungstext')}}</th>
|
||||
<th>{{__('Datum')}}</th>
|
||||
<th>{{__('Rechnung')}}</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$( document ).ready(function() {
|
||||
var oTable = $('#datatable-payment-taxadvisor').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"stateSave": true,
|
||||
"searching": false,
|
||||
ajax: {
|
||||
url: '{!! route('admin_payments_taxadvisor_datatable') !!}',
|
||||
data: function(d) {
|
||||
d.payment_taxadvisor_filter_month = $('select[name=payment_taxadvisor_filter_month]').val();
|
||||
d.payment_taxadvisor_filter_year = $('select[name=payment_taxadvisor_filter_year]').val();
|
||||
}
|
||||
},
|
||||
"order": [[0, "asc" ]],
|
||||
"columns": [
|
||||
{ data: 'id', orderable: true, searchable: false },
|
||||
{ data: 'turnover', name: 'turnover', orderable: false, searchable: false },
|
||||
{ data: 'debit_credit_indicator', name: 'debit_credit_indicator', orderable: false, searchable: false },
|
||||
{ data: 'account', name: 'account', orderable: false, searchable: false },
|
||||
{ data: 'contra_account', name: 'contra_account', orderable: false, searchable: false },
|
||||
{ data: 'bu_key', name: 'bu_key', orderable: false, searchable: false },
|
||||
{ data: 'voucher_date', name: 'voucher_date', orderable: true, searchable: false },
|
||||
{ data: 'document_field_1', name: 'document_field_1', orderable: false, searchable: false },
|
||||
{ data: 'posting_text', name: 'posting_text', orderable: false, searchable: false },
|
||||
{ data: 'date', name: 'date', orderable: true, searchable: false },
|
||||
|
||||
{ data: 'invoice', name: 'invoice', searchable: false },
|
||||
|
||||
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"language": {
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
|
||||
$('select.on_change_select_filter').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
$('input.on_keyup_input_filter').on('keyup', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue