2019-07-20 12:57:23 +02:00
|
|
|
@extends('layouts.master', ['header' => $header])
|
2018-12-02 11:42:06 +01:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<main class="main" id="client_create">
|
|
|
|
|
2018-12-07 11:57:20 +01:00
|
|
|
<form @submit.prevent="onSubmit" @keydown="form.errors.clear($event.target.name)">
|
2018-12-02 11:42:06 +01:00
|
|
|
<div class="container-fluid">
|
|
|
|
|
2019-01-13 11:42:03 +01:00
|
|
|
<vue-toastr ref="toastr"></vue-toastr>
|
2018-12-07 11:57:20 +01:00
|
|
|
|
2018-12-02 11:42:06 +01:00
|
|
|
<div class="row">
|
|
|
|
<!-- Client Details and Address Column -->
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
@include('client.partial.client_details', $client)
|
|
|
|
|
|
|
|
@include('client.partial.client_location')
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- End Client Details and Address Column -->
|
|
|
|
|
|
|
|
<!-- Contact Details Column -->
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header bg-primary2">{{ trans('texts.contact_information') }}
|
|
|
|
<span class="float-right">
|
|
|
|
<button type="button" class="btn btn-primary btn-sm" @click="add()"><i class="fa fa-plus-circle"></i> {{ trans('texts.add_contact') }}</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2018-12-07 11:57:20 +01:00
|
|
|
<template v-for="(contact, key, index) in form.contacts">
|
2018-12-02 11:42:06 +01:00
|
|
|
@include('client.partial.contact_details')
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End Contact Details Column -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">
|
2018-12-07 11:57:20 +01:00
|
|
|
<button class="btn btn-lg btn-success" type="button" @click="onSubmit"><i class="fa fa-save"></i> {{ trans('texts.save') }}</button>
|
2018-12-02 11:42:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</main>
|
|
|
|
<script>
|
|
|
|
var client_object = {!! $client !!};
|
2018-12-07 11:57:20 +01:00
|
|
|
var hashed_id = '';
|
2018-12-02 11:42:06 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script defer src=" {{ mix('/js/client_create.min.js') }}"></script>
|
|
|
|
@endsection
|