gruene-seele/resources/views/admin/modal/user_level_margin.blade.php
2021-04-26 16:07:03 +02:00

46 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
{{ __('Staffelprovision') }} <strong>{{$user->user_level->name}}</strong>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">
<input type="hidden" name="action" value="{{$data['action']}}">
<input type="hidden" name="id" value="{{$data['id']}}">
<input type="hidden" name="view" value="{{$data['view']}}">
@if(isset($user) && $user->user_level && $user->user_level->user_level_margins)
<table class="table table-striped" style="border-top: 0">
<thead>
<tr>
<th>Umsatz netto</th>
<th>Handelspanne</th>
<th>Provision Vertriebspartner</th>
</tr>
</thead>
<tbody>
@foreach($user->user_level->user_level_margins as $user_level_margin)
<tr>
<th scope="row">ab {{$user_level_margin->getFormattedPriceFrom()}}</th>
<td>{{$user_level_margin->getFormattedTradingMargin()}} %</td>
<td>{{$user_level_margin->getFormattedCommission()}} %</td>
</tr>
@endforeach
</tbody>
</table>
@endif
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
</div>
</div>
<script type="text/javascript">
$( document ).ready(function() {
});
</script>