2018-11-21 09:28:07 +01:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.first_name')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2018-12-05 09:23:12 +01:00
|
|
|
<input name="id" type="hidden" v-model="contact.client_id" value="{{ $client->present()->id ?: -1}}">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input ref="first_name" name="first_name" placeholder="trans('texts.first_name')" class="form-control" v-model="contact.first_name">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.first_name')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.first_name')"></div>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.last_name')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input name="last_name" placeholder="trans('texts.last_name')" class="form-control" v-model="contact.last_name">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.last_name')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.last_name')"></div>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.email')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input name="email" placeholder="trans('texts.email')" class="form-control" v-model="contact.email">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.email')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.email')"></div>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.phone')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input name="phone" placeholder="trans('texts.phone')" class="form-control" v-model="contact.phone">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.phone')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.phone')"></div>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.custom_value1')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input name="custom_value1" placeholder="trans('texts.custom_value1')" class="form-control" v-model="contact.custom_value1">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.custom_value1')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.custom_value1')"></div>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="form-group row">
|
2019-09-26 15:15:25 +02:00
|
|
|
<label for="name" class="col-sm-3 col-form-label text-right">trans('texts.custom_value2')</label>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="col-sm-9">
|
2019-09-26 15:15:25 +02:00
|
|
|
<input name="custom_value2" placeholder="trans('texts.custom_value2')" class="form-control" v-model="contact.custom_value2">
|
2018-12-05 09:23:12 +01:00
|
|
|
<div v-if="form.errors.has('contacts.'+key+'.custom_value2')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.custom_value2')"></div>
|
2018-11-07 06:22:36 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="float-right">
|
2018-11-22 12:12:41 +01:00
|
|
|
<button type="button" class="btn btn-danger" v-on:click="remove(contact)"> {{ trans('texts.remove_contact') }}</button>
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|