osb/spark/resources/views/settings/payment-method/update-payment-method-address.blade.php

79 lines
2.5 KiB
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<!-- Address -->
<div class="form-group" :class="{'has-error': form.errors.has('address')}">
<label class="col-md-4 control-label">Address</label>
<div class="col-sm-6">
<input type="text" class="form-control" v-model="form.address">
<span class="help-block" v-show="form.errors.has('address')">
@{{ form.errors.get('address') }}
</span>
</div>
</div>
<!-- Address Line 2 -->
<div class="form-group" :class="{'has-error': form.errors.has('address_line_2')}">
<label class="col-md-4 control-label">Address Line 2</label>
<div class="col-sm-6">
<input type="text" class="form-control" v-model="form.address_line_2">
<span class="help-block" v-show="form.errors.has('address_line_2')">
@{{ form.errors.get('address_line_2') }}
</span>
</div>
</div>
<!-- City -->
<div class="form-group" :class="{'has-error': form.errors.has('city')}">
<label class="col-md-4 control-label">City</label>
<div class="col-sm-6">
<input type="text" class="form-control" v-model="form.city">
<span class="help-block" v-show="form.errors.has('city')">
@{{ form.errors.get('city') }}
</span>
</div>
</div>
<!-- State & ZIP Code -->
<div class="form-group" :class="{'has-error': form.errors.has('state')}">
<label class="col-md-4 control-label">State & ZIP / Postal Code</label>
<!-- State -->
<div class="col-sm-3">
<input type="text" class="form-control" v-model="form.state" placeholder="State">
<span class="help-block" v-show="form.errors.has('state')">
@{{ form.errors.get('state') }}
</span>
</div>
<!-- Zip Code -->
<div class="col-sm-3">
<input type="text" class="form-control" v-model="form.zip" placeholder="Postal Code">
<span class="help-block" v-show="form.errors.has('zip')">
@{{ form.errors.get('zip') }}
</span>
</div>
</div>
<!-- Country -->
<div class="form-group" :class="{'has-error': form.errors.has('country')}">
<label class="col-md-4 control-label">Country</label>
<div class="col-sm-6">
<select class="form-control" v-model="form.country">
@foreach (app(Laravel\Spark\Repositories\Geography\CountryRepository::class)->all() as $key => $country)
<option value="{{ $key }}">{{ $country }}</option>
@endforeach
</select>
<span class="help-block" v-show="form.errors.has('country')">
@{{ form.errors.get('country') }}
</span>
</div>
</div>