215 lines
No EOL
13 KiB
PHP
215 lines
No EOL
13 KiB
PHP
|
|
@if($user->account)
|
|
@if($user->account->same_as_billing)
|
|
<!-- Billing -->
|
|
|
|
<div class="">
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
<label for="shipping_company" class="form-label">{{ __('Company name') }} (optional)</label>
|
|
{{ Form::text('shipping_company', $user->account->company, array('placeholder'=>__('Company name'), 'class'=>'form-control')) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_salutation') ? 'has-error' : '' }}">
|
|
<label class="form-label">{{ __('Salutation') }}*</label>
|
|
<select class="selectpicker" data-style="btn-light" name="shipping_salutation" id="shipping_salutation" required>
|
|
{!! HTMLHelper::getSalutation($user->account->salutation) !!}
|
|
</select>
|
|
@if ($errors->has('shipping_salutation'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_salutation') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_firstname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_firstname">{{ __('First name') }}*</label>
|
|
{{ Form::text('shipping_firstname', $user->account->first_name, array('placeholder'=>__('First name'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_firstname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_firstname') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_lastname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_lastname">{{ __('Last name') }}*</label>
|
|
{{ Form::text('shipping_lastname', $user->account->last_name, array('placeholder'=>__('Last name'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_lastname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_lastname') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_address') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_address">{{ __('Street') }} / {{ __('House number') }}*</label>
|
|
{{ Form::text('shipping_address', $user->account->address, array('placeholder'=>__('Street'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_address'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_address') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_address_2') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_address_2">{{ __('Wohnung / Gebäude (optional)') }}</label>
|
|
{{ Form::text('shipping_address_2', $user->account->address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control')) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_zipcode') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_zipcode">{{ __('Postcode') }}*</label>
|
|
{{ Form::text('shipping_zipcode', $user->account->zipcode, array('placeholder'=>__('Postcode'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_zipcode'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_zipcode') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_city') ? 'has-error' : '' }}">
|
|
<label class="form-label" for=shipping_city">{{ __('City') }}*</label>
|
|
{{ Form::text('shipping_city', $user->account->city, array('placeholder'=>__('City'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_city'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_city') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_state') ? 'has-error' : '' }}">
|
|
<label class="form-label">{{ __('Versandland') }}*</label>
|
|
<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->phone, array('placeholder'=>__('Phone'), 'class'=>'form-control')) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- / Billing -->
|
|
@else
|
|
|
|
<div class="">
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
<label for="shipping_company" class="form-label">{{ __('Company name') }} (optional)</label>
|
|
{{ Form::text('shipping_company', $user->account->shipping_company, array('placeholder'=>__('Company name'), 'class'=>'form-control')) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_salutation') ? 'has-error' : '' }}">
|
|
<label class="form-label">{{ __('Salutation') }}*</label>
|
|
<select class="selectpicker" data-style="btn-light" name="shipping_salutation" id="shipping_salutation" required>
|
|
{!! HTMLHelper::getSalutation($user->account->shipping_salutation) !!}
|
|
</select>
|
|
@if ($errors->has('shipping_salutation'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_salutation') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_firstname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_firstname">{{ __('First name') }}*</label>
|
|
{{ Form::text('shipping_firstname', $user->account->shipping_firstname, array('placeholder'=>__('First name'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_firstname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_firstname') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_lastname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_lastname">{{ __('Last Name') }}*</label>
|
|
{{ Form::text('shipping_lastname', $user->account->shipping_lastname, array('placeholder'=>__('Last Name'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_lastname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_lastname') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_address') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_address">{{ __('Street') }} / {{ __('House number') }}*</label>
|
|
{{ Form::text('shipping_address', $user->account->shipping_address, array('placeholder'=>__('Street'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_address'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_address') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_address_2') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_address_2">{{ __('Wohnung / Gebäude (optional)') }}</label>
|
|
{{ Form::text('shipping_address_2', $user->account->shipping_address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control')) }}
|
|
@if ($errors->has('shipping_address_2'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_address_2') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_zipcode') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_zipcode">{{ __('Postcode') }}*</label>
|
|
{{ Form::text('shipping_zipcode', $user->account->shipping_zipcode, array('placeholder'=>__('Postcode'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_zipcode'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_zipcode') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('shipping_city') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="shipping_city">{{ __('City') }}*</label>
|
|
{{ Form::text('shipping_city', $user->account->shipping_city, array('placeholder'=>__('City'), 'class'=>'form-control', 'required'=>true)) }}
|
|
@if ($errors->has('shipping_city'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('shipping_city') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('shipping_state') ? 'has-error' : '' }}">
|
|
<label class="form-label">{{ __('Versandland') }}*</label>
|
|
<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 |