
@if($user->account)
    @if($user->account->same_as_billing)
        <!-- Billing -->

        {{ Form::hidden('shipping_company', $user->account->company) }}
        {{ Form::hidden('shipping_salutation', $user->account->salutation) }}
        {{ Form::hidden('shipping_firstname', $user->account->first_name) }}
        {{ Form::hidden('shipping_lastname', $user->account->last_name) }}
        {{ Form::hidden('shipping_address', $user->account->address) }}
        {{ Form::hidden('shipping_address_2', $user->account->address_2) }}
        {{ Form::hidden('shipping_zipcode', $user->account->zipcode) }}
        {{ Form::hidden('shipping_city', $user->account->city) }}
        {{ Form::hidden('shipping_phone', $user->account->phone) }}

        <div class="">
            <div class="form-row">
                <div class="form-group col-md-12  {{ $errors->has('shipping_state') ? 'has-error' : '' }}">
                    <select name="shipping_state" class="selectpicker" id="change_shipping_state" data-is-for="me">
                        {!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId()) !!}
                    </select>
                    @if ($errors->has('shipping_state'))
                        <span class="help-block">
                            <strong>{{ $errors->first('shipping_state') }}</strong>
                        </span>
                    @endif
                </div>
            </div>
        </div>
           <!-- / Billing -->
        @else
        {{ Form::hidden('shipping_company', $user->account->shipping_company) }}
        {{ Form::hidden('shipping_salutation', $user->account->shipping_salutation) }}
        {{ Form::hidden('shipping_firstname', $user->account->shipping_firstname) }}
        {{ Form::hidden('shipping_lastname', $user->account->shipping_lastname) }}
        {{ Form::hidden('shipping_address', $user->account->shipping_address) }}
        {{ Form::hidden('shipping_address_2', $user->account->shipping_address_2) }}
        {{ Form::hidden('shipping_zipcode', $user->account->shipping_zipcode) }}
        {{ Form::hidden('shipping_city', $user->account->shipping_city) }}
        {{ Form::hidden('shipping_phone', $user->account->shipping_phone) }}

        <div class="">
            <div class="form-row">
                <div class="form-group col-md-12  {{ $errors->has('shipping_state') ? 'has-error' : '' }}">
                    <select name="shipping_state" class="selectpicker" id="change_shipping_state" data-is-for="me">
                        {!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId()) !!}
                    </select>
                    @if ($errors->has('shipping_state'))
                        <span class="help-block">
                                <strong>{{ $errors->first('shipping_state') }}</strong>
                            </span>
                    @endif
                </div>
            </div>

            <div class="form-row">
                <div class="form-group col-md-12">
                    <label class="form-label" for="shipping_phone">{{ __('Phone') }}</label>
                    {{ Form::text('shipping_phone', $user->account->shipping_phone,  array('placeholder'=>__('Phone'), 'class'=>'form-control')) }}
                </div>
            </div>
        </div>
        @endif
@else
        <h4>Fehler: Keine Adressdaten gefunden!</h4>
@endif