<div class="card mb-4">
    <h5 class="card-header">
        {{ __('Daten') }}
    </h5>
    <div class="card-body">

        <div class="form-group">
            <label class="form-label" for="position_text">{{ __('Name') }}</label>
            {{ Form::text('name', $user->name,  array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
        </div>


        <hr>
        @if($user->email)

            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="form-label" for="email">{{ __('E-Mail Address') }}*</label>
                    {{ Form::text('email', $user->email,  array('placeholder'=>'E-Mail', 'class'=>'form-control', 'id'=>'email', 'readonly'=>true)) }}
                </div>
                <div class="form-group col-md-6">
                    <label class="form-label" for="email-confirm">{{ __('Confirm E-Mail') }}</label>
                    {{ Form::text('email-confirm', $user->email,  array('placeholder'=>__('Confirm E-Mail'), 'class'=>'form-control', 'id'=>'email-confirm', 'readonly'=>true)) }}
                </div>
            </div>
            @if($isFromAdmin)
                @if(count($user->user_update_email) > 0)
                    <p class="badge badge-primary" style=" color:#fff;">{{ $user->user_update_email->first()->email }} {{__('waiting for activation since')}} | {{ $user->user_update_email->first()->created_at->format('d.m.Y H:i') }}</p><br>
                @endif
                <a href="{{ route('admin_user_change_mail', [$user->id]) }}" class="btn btn-default btn-sm"> {{ __('Contact') }} {{__('Change E-Mail')}}</a>
            @else
                <a href="{{ route('user_update_email', [$user->id]) }}" class="btn btn-default btn-sm">{{__('Change E-Mail')}}</a>
            @endif


        @else
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="form-label" for="email">{{ __('E-Mail Address') }}*</label>
                    {{ Form::text('email', $user->email,  array('placeholder'=>'E-Mail', 'class'=>'form-control', 'id'=>'email')) }}
                </div>
                <div class="form-group col-md-6">
                    <label class="form-label" for="email-confirm">{{ __('Confirm E-Mail') }}</label>
                    {{ Form::text('email-confirm', $user->email,  array('placeholder'=>__('Confirm E-Mail'), 'class'=>'form-control', 'id'=>'email-confirm')) }}
                </div>
            </div>

        @endif
    </div>
</div>