222 lines
No EOL
16 KiB
PHP
222 lines
No EOL
16 KiB
PHP
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-12 col-lg-6">
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
<label for="billing_company" class="form-label">{{ __('Company name') }} (optional)</label>
|
|
{{ Form::text('billing_company', $homeparty_user->billing_company, array('placeholder'=>__('Company name'), 'class'=>'form-control', 'id'=>'billing_company', 'tabindex' => 1)) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('billing_salutation') ? 'has-error' : '' }}">
|
|
<label class="form-label">{{ __('Salutation') }}*</label>
|
|
<select class="selectpicker" data-style="btn-light" name="billing_salutation" id="billing_salutation" required tabindex="2">
|
|
{!! HTMLHelper::getSalutation($homeparty_user->billing_salutation) !!}
|
|
</select>
|
|
@if ($errors->has('billing_salutation'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_salutation') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('billing_firstname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_firstname">{{ __('First name') }}*</label>
|
|
{{ Form::text('billing_firstname', $homeparty_user->billing_firstname, array('placeholder'=>__('First name'), 'class'=>'form-control', 'id'=>'billing_firstname', 'required'=>true, 'tabindex' => 4)) }}
|
|
@if ($errors->has('billing_firstname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_firstname') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('billing_lastname') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_lastname">{{ __('Last name') }}*</label>
|
|
{{ Form::text('billing_lastname', $homeparty_user->billing_lastname, array('placeholder'=>__('Last name'), 'class'=>'form-control', 'id'=>'billing_lastname', 'required'=>true, 'tabindex' => 5)) }}
|
|
@if ($errors->has('billing_lastname'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_lastname') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('billing_address') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_address">{{ __('Street') }} / {{ __('House number') }}*</label>
|
|
{{ Form::text('billing_address', $homeparty_user->billing_address, array('placeholder'=>__('Street'), 'class'=>'form-control', 'required'=>true, 'id'=>'billing_address', 'tabindex' => 6)) }}
|
|
@if ($errors->has('billing_address'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_address') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('billing_address_2') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_address_2">{{ __('Wohnung / Gebäude (optional)') }}</label>
|
|
{{ Form::text('billing_address_2', $homeparty_user->billing_address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control', 'id'=>'billing_address_2', 'tabindex' => 6)) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6 {{ $errors->has('billing_zipcode') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_zipcode">{{ __('Postcode') }}*</label>
|
|
{{ Form::text('billing_zipcode', $homeparty_user->billing_zipcode, array('placeholder'=>__('Postcode'), 'class'=>'form-control', 'required'=>true, 'id'=>'billing_zipcode', 'tabindex' => 7)) }}
|
|
@if ($errors->has('billing_zipcode'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_zipcode') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
<div class="form-group col-md-6 {{ $errors->has('billing_city') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_city">{{ __('City') }}*</label>
|
|
{{ Form::text('billing_city', $homeparty_user->billing_city, array('placeholder'=>__('City'), 'class'=>'form-control', 'required'=>true, 'id'=>'billing_city', 'tabindex' => 8)) }}
|
|
@if ($errors->has('billing_city'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('billing_city') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
{{ Form::hidden('billing_country_id', $homeparty_user->billing_country_id) }}
|
|
<label class="form-label">{{ __('Country') }}</label>
|
|
<div class="">@if($homeparty_user->billing_country) {{ $homeparty_user->billing_country->getLocated() }} @endif <i>(Das Land kann nicht mehr geändert werden.)</i></div>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12 {{ $errors->has('billing_phone') ? 'has-error' : '' }}">
|
|
<label class="form-label" for="billing_phone">{{ __('Phone') }}</label>
|
|
{{ Form::text('billing_phone', $homeparty_user->billing_phone, array('placeholder'=>__('Phone'), 'class'=>'form-control', 'id'=>'billing_phone', 'tabindex' => 11)) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
<label class="form-label" for="billing_email">{{ __('E-Mail Address') }}</label>
|
|
{{ Form::text('billing_email', $homeparty_user->billing_email, array('placeholder'=>'E-Mail', 'class'=>'form-control', 'id'=>'billing_email', 'tabindex' => 12)) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6">
|
|
<div class="d-md-block d-lg-none">
|
|
<hr>
|
|
<h5 class="mt-4">Lieferadresse</h5>
|
|
</div>
|
|
<div id="show_shipping_address" style="@if($homeparty_user->same_as_billing) display:none @endif">
|
|
<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', $homeparty_user->shipping_company, array('placeholder'=>__('Company name'), 'class'=>'form-control', 'id'=>'shipping_company', 'tabindex' => 16)) }}
|
|
</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 tabindex="17">
|
|
{!! HTMLHelper::getSalutation($homeparty_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', $homeparty_user->shipping_firstname, array('placeholder'=>__('First name'), 'class'=>'form-control', 'required'=>true, 'id'=>'shipping_firstname', 'tabindex' => 18)) }}
|
|
@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', $homeparty_user->shipping_lastname, array('placeholder'=>__('Last name'), 'class'=>'form-control', 'required'=>true, 'id'=>'shipping_lastname', 'tabindex' => 19)) }}
|
|
@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', $homeparty_user->shipping_address, array('placeholder'=>__('Street'), 'class'=>'form-control', 'required'=>true, 'id'=>'shipping_address', 'tabindex' => 20)) }}
|
|
@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', $homeparty_user->shipping_address_2, array('placeholder'=>__('Wohnung / Gebäude (optional)'), 'class'=>'form-control', 'id'=>'shipping_address_2', 'tabindex' => 21)) }}
|
|
@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', $homeparty_user->shipping_zipcode, array('placeholder'=>__('Postcode'), 'class'=>'form-control', 'required'=>true, 'id'=>'shipping_zipcode', 'tabindex' => 22)) }}
|
|
@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', $homeparty_user->shipping_city, array('placeholder'=>__('City'), 'class'=>'form-control', 'required'=>true, 'id'=>'shipping_city', 'tabindex' => 23)) }}
|
|
@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">
|
|
{{ Form::hidden('shipping_country_id', $homeparty_user->shipping_country_id) }}
|
|
<label class="form-label">{{ __('Country') }}</label>
|
|
<div class="">@if($homeparty_user->shipping_country) {{ $homeparty_user->shipping_country->getLocated() }} @endif <i>(Das Land kann nicht mehr geändert werden.)</i></div>
|
|
</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', $homeparty_user->shipping_phone, array('placeholder'=>__('Phone'), 'class'=>'form-control', 'id'=>'shipping_phone', 'tabindex' => 26)) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-12">
|
|
<label class="form-label" for="shipping_email">{{ __('E-Mail Address') }}</label>
|
|
{{ Form::text('shipping_email', $homeparty_user->shipping_email, array('placeholder'=>'E-Mail', 'class'=>'form-control', 'id'=>'shipping_email', 'tabindex' => 27)) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="custom-control custom-checkbox m-0">
|
|
<input type="checkbox" class="custom-control-input" name="same_as_billing" id="same_as_billing" @if($homeparty_user->same_as_billing) checked="checked" @endif>
|
|
<span class="custom-control-label">{{__('Versand an die gleiche Adresse')}}</span>
|
|
</label>
|
|
</div>
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
{{ Form::hidden('is_host', $homeparty_user->is_host) }}
|
|
</div> |