<div class="modal-content">
    <div class="modal-header">
        <h5 class="modal-title">
            {{ __('Staffelprovision') }} <strong>{{$user->user_level->name}}
        </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>
