2018-11-07 10:36:42 +01:00
|
|
|
@extends('layouts.master', ['header' => $header])
|
2018-11-07 06:22:36 +01:00
|
|
|
|
|
|
|
@section('body')
|
2018-11-21 09:28:07 +01:00
|
|
|
<main class="main" id="client_edit">
|
2018-11-22 12:12:41 +01:00
|
|
|
|
2018-11-07 06:22:36 +01:00
|
|
|
<!-- Breadcrumb-->
|
|
|
|
{{ Breadcrumbs::render('clients.edit', $client) }}
|
|
|
|
|
2018-11-22 12:12:41 +01:00
|
|
|
<form @submit.prevent="submit">
|
2018-11-21 09:28:07 +01:00
|
|
|
<div class="container-fluid">
|
|
|
|
|
|
|
|
<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">
|
2018-11-22 12:12:41 +01:00
|
|
|
<button type="button" class="btn btn-primary btn-sm" @click="add()"><i class="fa fa-plus-circle"></i> {{ trans('texts.add_contact') }}</button>
|
2018-11-21 09:28:07 +01:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<template v-for="contact in client.contacts">
|
|
|
|
@include('client.partial.contact_details')
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End Contact Details Column -->
|
2018-11-22 12:12:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">
|
|
|
|
<button class="btn btn-lg btn-success" type="button" @click="submit"><i class="fa fa-save"></i> {{ trans('texts.save') }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-11-21 09:28:07 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-22 12:12:41 +01:00
|
|
|
|
2018-11-07 06:22:36 +01:00
|
|
|
</main>
|
2018-11-27 07:59:16 +01:00
|
|
|
<script>
|
|
|
|
var client_object = {!! $client !!};
|
|
|
|
var hashed_id = '{{ $hashed_id }}';
|
|
|
|
</script>
|
2018-11-07 06:22:36 +01:00
|
|
|
|
2018-11-27 07:59:16 +01:00
|
|
|
<script src=" {{ mix('/js/client_edit.js') }}"></script>
|
2018-11-10 14:24:36 +01:00
|
|
|
@endsection
|