210 lines
No EOL
13 KiB
PHP
210 lines
No EOL
13 KiB
PHP
|
|
@if($shopping_user->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', $shopping_user->billing_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($shopping_user->billing_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', $shopping_user->billing_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', $shopping_user->billing_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', $shopping_user->billing_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', $shopping_user->billing_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', $shopping_user->billing_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', $shopping_user->billing_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="ot">
|
|
{!! 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', $shopping_user->billing_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', $shopping_user->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($shopping_user->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', $shopping_user->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', $shopping_user->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', $shopping_user->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', $shopping_user->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', $shopping_user->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', $shopping_user->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="ot">
|
|
{!! 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', $shopping_user->shipping_phone, array('placeholder'=>__('Phone'), 'class'=>'form-control')) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif |