gruene-seele/resources/views/admin/lead/m_data_form.blade.php
2025-04-01 10:39:21 +02:00

58 lines
2 KiB
PHP

@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 m-0 p-0">
<div class="table-responsive">
<table class="table card-table m-0">
<tbody>
<tr>
<th style="width: 33%">{{ __('Name') }}</th>
<th style="width: 66%">{{ __('Account ID') }}</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>
</tr>
</tbody>
</table>
<table class="table card-table m-0">
<tbody>
<tr>
<th style="width: 33%">{{ __('Art Vertriebspartner') }}</th>
<th style="width: 33%">{{ __('Rolle') }}</th>
<th style="width: 33%">{{ __('Sponsor') }}</th>
</tr>
<tr>
<td>@if($user->lead_type) {{ $user->lead_type->name }} @else Standard @endif</td>
<td>@if($user->user_level){{ $user->user_level->name }}@endif</td>
<td>@if($user->m_sponsor){{ $user->getMUserSponsor() }}@endif</td>
</tr>
</tbody>
</table>
@if($user->account->m_notes)
<table class="table card-table m-0">
<tbody>
<tr>
<th>{{ __('weitere Daten') }}</th>
</tr>
<tr>
<td>{{$user->account->m_notes}}</td>
</tr>
</tbody>
</table>
@endif
</div>
</div>