mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 03:02:34 +01:00
9204510193
* Adding Vue components for Charts and Multi Select * List Views * Improve UI of datatable * Refactor Vue Datatable for reusability
60 lines
2.0 KiB
PHP
60 lines
2.0 KiB
PHP
@extends('layouts.master', ['header' => $header])
|
|
|
|
@section('body')
|
|
<main class="main" id="client_create">
|
|
|
|
<!-- Breadcrumb-->
|
|
{{ Breadcrumbs::render('clients.create') }}
|
|
|
|
<form @submit.prevent="onSubmit" @keydown="form.errors.clear($event.target.name)">
|
|
<div class="container-fluid">
|
|
|
|
<vue-toastr ref="toastr"></vue-toastr>
|
|
|
|
<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>
|
|
|
|
<template v-for="(contact, key, index) in form.contacts">
|
|
@include('client.partial.contact_details')
|
|
</template>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- End Contact Details Column -->
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 text-center">
|
|
<button class="btn btn-lg btn-success" type="button" @click="onSubmit"><i class="fa fa-save"></i> {{ trans('texts.save') }}</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</main>
|
|
<script>
|
|
var client_object = {!! $client !!};
|
|
var hashed_id = '';
|
|
</script>
|
|
|
|
<script defer src=" {{ mix('/js/client_create.min.js') }}"></script>
|
|
@endsection |