@if($m_data_error)
    <div class="row">
        <div class="col-sm-12">
            <div class="alert alert-danger">
                <ul>
                    <li>{{ $m_data_error }}</li>
                </ul>
            </div>
        </div>
    </div>
@endif
    <div class="card-body">
        <div class="float-right">
            <button type="button" class="btn btn-sm btn-secondary" data-toggle="modal" data-target="#modals-edit-m-data">
                <span class="far fa-edit"></span> Vertriebspartner Daten bearbeiten
            </button>
        </div>
        <div class="table-responsive">
            <table class="table card-table m-0">
                <tbody>
                <tr>
                    <th>{{ __('Name') }}</th>
                    <th>{{ __('Account ID') }}</th>
                    <th>{{ __('Rolle') }}</th>
                    <th>{{ __('Sponsor') }}</th>
                </tr>
                <tr>
                    <td>{{ \App\Services\HTMLHelper::getSalutationLang($user->account->m_salutation) }} {{ $user->account->m_first_name }} {{ $user->account->m_last_name }}</td>
                    <td>{{ $user->account->m_account }}</td>
                    <td>@if($user->user_level){{ $user->user_level->name }}@endif</td>
                    <td>@if($user->m_sponsor){{ $user->getMUserSponsor() }}@endif</td>
                </tr>
                </tbody>
            </table>
            <table class="table card-table m-0">
                <tbody>
                <tr>
                    <th>{{ __('weitere Daten') }}</th>
                </tr>
                <tr>
                    <td>{{$user->account->m_notes}}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>



