@extends('layouts.layout-2') @section('content') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{--

{{ __('Your Data') }}

{{__('Here you can adjust your data.')}}

{{-- @if($user->account->company == 1)
{{ __('Company data') }}
{{ __('Company name') }}: {{ $user->account->company_name }}
{{ __('Street') }} / {{ __('House number') }}: {{ $user->account->company_street }}
{{ __('Postcode') }}: {{ $user->account->company_postal_code }}
{{ __('City') }}: {{ $user->account->company_city }}
{{ __('Country') }}: @if($user->account->company_country_id) {{ $user->account->company_country->getLocated() }} @endif
{{ __('Phone') }}: @if($user->account->company_pre_phone_id) {{ $user->account->company_pre_phone->code }}@endif {{ $user->account->company_phone }}
{{ __('Homepage') }}: {{ $user->account->company_homepage }}

{{ __('Industry') }}
@foreach($user->account->getUserIndustrySectorsParents() as $user_industry_sector_parents) @endforeach
{{ $user_industry_sector_parents->industry_sector->getLang('name') }}: @foreach($user->account->getUserIndustrySectorsChilds($user_industry_sector_parents->industry_sector->id) as $user_industry_sector_childs) {{ $user_industry_sector_childs->industry_sector->getLang('name') }}, @endforeach

@endif
{{ __('Your Data') }}
{{ __('Function') }}: {{ $user->account->position_text }}
{{ __('Salutation') }}: {!! HTMLHelper::getSalutationLang($user->account->salutation) !!}
{{ __('Title') }}: {{ $user->account->title }}
{{ __('First name') }}: {{ $user->account->first_name }}
{{ __('Last Name') }}: {{ $user->account->last_name }}
{{ __('Street') }} / {{ __('House number') }}: {{ $user->account->street }}
{{ __('Postcode') }}: {{ $user->account->postal_code }}
{{ __('City') }}: {{ $user->account->city }}
{{ __('Country') }}: @if($user->account->country_id){{ $user->account->country->getLocated() }}@endif
{{ __('Phone') }}: @if($user->account->pre_phone_id) {{ $user->account->pre_phone->code }}@endif {{ $user->account->phone }}
{{ __('Mobile Phone') }}: @if($user->account->pre_mobil_id) {{ $user->account->pre_mobil->code }}@endif {{ $user->account->mobil }}
{{ __('E-Mail Address') }}: {{ $user->email }}

{{ __('Your interests') }}
@foreach($user->account->user_interests as $user_interest) @endforeach
{{ $user_interest->interest->getLang('name') }}:

{{ $user->account->contactpartner }}
@if($user->active == 0) {{ __('Adjust data') }} @endif @if($user->active == 1) {{ __('Adjust data') }} @endif
--}} {{-- Später need ADMIN!!!! --}} @if(\Auth::user()->isAdmin())

{{__('Notizen') }} Buchnungen letzten 10

@if($last_booking_notices) @foreach($last_booking_notices as $booking_notice)
@if($booking_notice->from_user_id === \Auth::user()->id)
@else
@endif
{{ $booking_notice->getName() }} | {{ $booking_notice->created_at->format("d.m.Y - H:i:s") }} @if($booking_notice->edit_at != null) | {{ $booking_notice->edit_at->format("d.m.Y - H:i:s") }} @endif | zur Buchnung {{ $booking_notice->booking_id }}
{!! nl2br($booking_notice->message) !!}
{{--
You | {{ $booking_notice->created_at->format("d.m.Y H:i:s") }}
{!! nl2br($booking_notice->message) !!}
--}} @endforeach @endif

{{__('Notizen') }} FeWo letzten 10

@if($last_booking_fewo_notices) @foreach($last_booking_fewo_notices as $booking_fewo_notice)
@if($booking_fewo_notice->from_user_id === \Auth::user()->id)
@else
@endif
{{ $booking_fewo_notice->getName() }} | {{ $booking_fewo_notice->created_at->format("d.m.Y - H:i:s") }} @if($booking_fewo_notice->edit_at != null) | {{ $booking_fewo_notice->edit_at->format("d.m.Y - H:i:s") }} @endif | zur Buchnung {{ $booking_fewo_notice->travel_user_booking_fewo_id }}
{!! nl2br($booking_fewo_notice->message) !!}
{{--
You | {{ $booking_notice->created_at->format("d.m.Y H:i:s") }}
{!! nl2br($booking_notice->message) !!}
--}} @endforeach @endif

{{__('Notizen') }} Anfragen letzten 10

@if($last_lead_notices) @foreach($last_lead_notices as $lead_notice)
@if($lead_notice->from_user_id === \Auth::user()->id)
@else
@endif
{{ $lead_notice->getName() }} | {{ $lead_notice->created_at->format("d.m.Y - H:i:s") }} @if($lead_notice->edit_at != null) | {{ $lead_notice->edit_at->format("d.m.Y - H:i:s") }} @endif | zur Buchnung {{ $lead_notice->lead_id }}
{!! nl2br($lead_notice->message) !!}
{{--
You | {{ $lead_notice->created_at->format("d.m.Y H:i:s") }}
{!! nl2br($lead_notice->message) !!}
--}} @endforeach @endif
@endif

{{__('Activities') }}

@if($user->active == 1)

{{__('Data released')}} {{__('at')}} {{ $user->getActiveDateFormat() }}

@endif @if($user->confirmed == 1)

{{__('E-Mail verified')}} {{__('at')}} {{ $user->getConfirmationDateFormat() }}

@endif @if($user->account_id) @if($user->account->data_protection)

{{__('Privacy policy approved')}} {{__('at')}} {{ $user->account->getDataProtectionFormat() }}

@endif @if($user->active == 1) @if($user->agreement)

{{__('Consent for further information')}} {{__('at')}} {{ $user->getAgreementFormat() }}

@else

{{__('Consent for further information')}} {{ __('nicht akzeptiert') }}

@endif @endif @endif
@if($user->active == 1)

{{ __('Einwilligung & Datenschutz') }}

{!! Form::open(['url' => route('user_data_accepted_form'), 'class' => 'form-horizontal' , 'id'=>'data-privacy-form-validations']) !!}
 
{!! Form::close() !!}
@endif

{{__('Login & Security') }}

{{__('Sign in with your e-mail:')}} {{ Auth::user()->email }}

@if(!$user->isPasswort())

{{__('Assign a password for your account.')}}

{{__('Create Password')}} @else

{{__('Change your password here to access your account.')}}

{{__('Change password')}} @endif {{__('Change E-Mail')}}

{{ __('Logout') }}

  {{ __('Logout') }}
{{--

{{__('Delete') }}

{{__('If you no longer want to use our offer, you can delete your account here.')}}

{{__('Delete Account')}}
--}} @endsection