429 lines
26 KiB
PHP
Executable File
429 lines
26 KiB
PHP
Executable File
<?php if (isset($component)) { $__componentOriginal8001c520f4b7dcb40a16cd3b411856d1 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8001c520f4b7dcb40a16cd3b411856d1 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.layouts.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::layouts'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes([]); ?>
|
|
<!-- Page Title -->
|
|
<?php $__env->slot('title', null, []); ?>
|
|
<?php echo app('translator')->get('admin::app.leads.edit.title'); ?>
|
|
<?php $__env->endSlot(); ?>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.form_controls.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Edit Lead Form -->
|
|
<?php if (isset($component)) { $__componentOriginal81b4d293d9113446bb908fc8aef5c8f6 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal81b4d293d9113446bb908fc8aef5c8f6 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.index','data' => ['action' => route('admin.leads.update', $lead->id),'method' => 'PUT']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.leads.update', $lead->id)),'method' => 'PUT']); ?>
|
|
<div class="flex flex-col gap-4">
|
|
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
|
|
<div class="flex flex-col gap-2">
|
|
<?php if (isset($component)) { $__componentOriginal477735b45b070062c5df1d72c43d48f5 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal477735b45b070062c5df1d72c43d48f5 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.breadcrumbs.index','data' => ['name' => 'leads.edit','entity' => $lead]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::breadcrumbs'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['name' => 'leads.edit','entity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($lead)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal477735b45b070062c5df1d72c43d48f5)): ?>
|
|
<?php $attributes = $__attributesOriginal477735b45b070062c5df1d72c43d48f5; ?>
|
|
<?php unset($__attributesOriginal477735b45b070062c5df1d72c43d48f5); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal477735b45b070062c5df1d72c43d48f5)): ?>
|
|
<?php $component = $__componentOriginal477735b45b070062c5df1d72c43d48f5; ?>
|
|
<?php unset($__componentOriginal477735b45b070062c5df1d72c43d48f5); ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="text-xl font-bold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.title'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-x-2.5">
|
|
<?php echo view_render_event('admin.leads.edit.save_button.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Save button for Editing Lead -->
|
|
<div class="flex items-center gap-x-2.5">
|
|
<?php echo view_render_event('admin.leads.edit.form_buttons.before'); ?>
|
|
|
|
|
|
<button
|
|
type="submit"
|
|
class="primary-button"
|
|
>
|
|
<?php echo app('translator')->get('admin::app.leads.edit.save-btn'); ?>
|
|
</button>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.form_buttons.after'); ?>
|
|
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.save_button.after', ['lead' => $lead]); ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" id="lead_pipeline_stage_id" name="lead_pipeline_stage_id" value="<?php echo e($lead->lead_pipeline_stage_id); ?>" />
|
|
|
|
<!-- Lead Edit Component -->
|
|
<v-lead-edit :lead="<?php echo e(json_encode($lead)); ?>">
|
|
<?php if (isset($component)) { $__componentOriginal5097a43dd21c97cf91dc23a27f8f52fe = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal5097a43dd21c97cf91dc23a27f8f52fe = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.shimmer.leads.datagrid','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::shimmer.leads.datagrid'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes([]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal5097a43dd21c97cf91dc23a27f8f52fe)): ?>
|
|
<?php $attributes = $__attributesOriginal5097a43dd21c97cf91dc23a27f8f52fe; ?>
|
|
<?php unset($__attributesOriginal5097a43dd21c97cf91dc23a27f8f52fe); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal5097a43dd21c97cf91dc23a27f8f52fe)): ?>
|
|
<?php $component = $__componentOriginal5097a43dd21c97cf91dc23a27f8f52fe; ?>
|
|
<?php unset($__componentOriginal5097a43dd21c97cf91dc23a27f8f52fe); ?>
|
|
<?php endif; ?>
|
|
</v-lead-edit>
|
|
</div>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal81b4d293d9113446bb908fc8aef5c8f6)): ?>
|
|
<?php $attributes = $__attributesOriginal81b4d293d9113446bb908fc8aef5c8f6; ?>
|
|
<?php unset($__attributesOriginal81b4d293d9113446bb908fc8aef5c8f6); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal81b4d293d9113446bb908fc8aef5c8f6)): ?>
|
|
<?php $component = $__componentOriginal81b4d293d9113446bb908fc8aef5c8f6; ?>
|
|
<?php unset($__componentOriginal81b4d293d9113446bb908fc8aef5c8f6); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.form_controls.after', ['lead' => $lead]); ?>
|
|
|
|
|
|
<?php if (! $__env->hasRenderedOnce('aa104d92-1436-4701-9706-d64d96cabc30')): $__env->markAsRenderedOnce('aa104d92-1436-4701-9706-d64d96cabc30');
|
|
$__env->startPush('scripts'); ?>
|
|
<script
|
|
type="text/x-template"
|
|
id="v-lead-edit-template"
|
|
>
|
|
<div class="box-shadow flex flex-col gap-4 rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900">
|
|
<div class="flex gap-2 border-b border-gray-200 dark:border-gray-800">
|
|
<!-- Tabs -->
|
|
<template v-for="tab in tabs" :key="tab.id">
|
|
<?php echo view_render_event('admin.leads.edit.tabs.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<a
|
|
:href="'#' + tab.id"
|
|
:class="[
|
|
'inline-block px-3 py-2.5 border-b-2 text-sm font-medium ',
|
|
activeTab === tab.id
|
|
? 'text-brandColor border-brandColor dark:brandColor dark:brandColor'
|
|
: 'text-gray-600 dark:text-gray-300 border-transparent hover:text-gray-800 hover:border-gray-400 dark:hover:border-gray-400 dark:hover:text-white'
|
|
]"
|
|
@click="scrollToSection(tab.id)"
|
|
:text="tab.label"
|
|
></a>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.tabs.after', ['lead' => $lead]); ?>
|
|
|
|
</template>
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-4 px-4 py-2">
|
|
<?php echo view_render_event('admin.leads.edit.lead_details.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Details section -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="lead-details"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.details'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.details-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="w-1/2 max-md:w-full">
|
|
<?php echo view_render_event('admin.leads.edit.lead_details.attributes.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Lead Details Title and Description -->
|
|
<?php if (isset($component)) { $__componentOriginal454997736aeabbf070177223ed7ce374 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal454997736aeabbf070177223ed7ce374 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.index','data' => ['customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'NOTIN', ['lead_value', 'lead_type_id', 'lead_source_id', 'expected_close_date', 'user_id', 'lead_pipeline_id', 'lead_pipeline_stage_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
]),'customValidations' => [
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
],'entity' => $lead]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::attributes'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['custom-attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'NOTIN', ['lead_value', 'lead_type_id', 'lead_source_id', 'expected_close_date', 'user_id', 'lead_pipeline_id', 'lead_pipeline_stage_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
])),'custom-validations' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
]),'entity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($lead)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $attributes = $__attributesOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__attributesOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $component = $__componentOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__componentOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
|
|
<!-- Lead Details Other input fields -->
|
|
<div class="flex gap-4 max-sm:flex-wrap">
|
|
<div class="w-full">
|
|
<?php if (isset($component)) { $__componentOriginal454997736aeabbf070177223ed7ce374 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal454997736aeabbf070177223ed7ce374 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.index','data' => ['customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'IN', ['lead_value', 'lead_type_id', 'lead_source_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
]),'customValidations' => [
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
],'entity' => $lead]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::attributes'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['custom-attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'IN', ['lead_value', 'lead_type_id', 'lead_source_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
])),'custom-validations' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
]),'entity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($lead)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $attributes = $__attributesOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__attributesOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $component = $__componentOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__componentOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="w-full">
|
|
<?php if (isset($component)) { $__componentOriginal454997736aeabbf070177223ed7ce374 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal454997736aeabbf070177223ed7ce374 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.index','data' => ['customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'IN', ['expected_close_date', 'user_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
]),'customValidations' => [
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
],'entity' => $lead]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::attributes'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['custom-attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
|
['code', 'IN', ['expected_close_date', 'user_id']],
|
|
'entity_type' => 'leads',
|
|
'quick_add' => 1
|
|
])),'custom-validations' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
|
|
'expected_close_date' => [
|
|
'date_format:yyyy-MM-dd',
|
|
'after:' . \Carbon\Carbon::yesterday()->format('Y-m-d')
|
|
],
|
|
]),'entity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($lead)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $attributes = $__attributesOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__attributesOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal454997736aeabbf070177223ed7ce374)): ?>
|
|
<?php $component = $__componentOriginal454997736aeabbf070177223ed7ce374; ?>
|
|
<?php unset($__componentOriginal454997736aeabbf070177223ed7ce374); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.lead_details.attributes.after', ['lead' => $lead]); ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.lead_details.after', ['lead' => $lead]); ?>
|
|
|
|
|
|
<?php echo view_render_event('admin.leads.edit.contact_person.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Contact Person -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="contact-person"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.contact-person'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.contact-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="w-1/2 max-md:w-full">
|
|
<!-- Contact Person Component -->
|
|
<?php echo $__env->make('admin::leads.common.contact', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.contact_person.after', ['lead' => $lead]); ?>
|
|
|
|
|
|
<?php echo view_render_event('admin.leads.edit.contact_person.products.before', ['lead' => $lead]); ?>
|
|
|
|
|
|
<!-- Product Section -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="products"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.products'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.leads.edit.products-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div>
|
|
<!-- Product Component -->
|
|
<?php echo $__env->make('admin::leads.common.products', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.edit.contact_person.products.after', ['lead' => $lead]); ?>
|
|
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.leads.form_controls.after'); ?>
|
|
|
|
</div>
|
|
</script>
|
|
|
|
<script type="module">
|
|
app.component('v-lead-edit', {
|
|
template: '#v-lead-edit-template',
|
|
|
|
data() {
|
|
return {
|
|
activeTab: 'lead-details',
|
|
|
|
lead: <?php echo json_encode($lead, 15, 512) ?>,
|
|
|
|
person: <?php echo json_encode($lead->person, 15, 512) ?>,
|
|
|
|
products: <?php echo json_encode($lead->products, 15, 512) ?>,
|
|
|
|
tabs: [
|
|
{ id: 'lead-details', label: '<?php echo app('translator')->get('admin::app.leads.edit.details'); ?>' },
|
|
{ id: 'contact-person', label: '<?php echo app('translator')->get('admin::app.leads.edit.contact-person'); ?>' },
|
|
{ id: 'products', label: '<?php echo app('translator')->get('admin::app.leads.edit.products'); ?>' }
|
|
],
|
|
};
|
|
},
|
|
|
|
methods: {
|
|
/**
|
|
* Scroll to the section.
|
|
*
|
|
* @param {String} tabId
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
scrollToSection(tabId) {
|
|
const section = document.getElementById(tabId);
|
|
|
|
if (section) {
|
|
section.scrollIntoView({ behavior: 'smooth' });
|
|
}
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
<?php $__env->stopPush(); endif; ?>
|
|
|
|
<?php if (! $__env->hasRenderedOnce('835a142b-0ca7-457b-882e-3a86e710f8e7')): $__env->markAsRenderedOnce('835a142b-0ca7-457b-882e-3a86e710f8e7');
|
|
$__env->startPush('styles'); ?>
|
|
<style>
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
</style>
|
|
<?php $__env->stopPush(); endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8001c520f4b7dcb40a16cd3b411856d1)): ?>
|
|
<?php $attributes = $__attributesOriginal8001c520f4b7dcb40a16cd3b411856d1; ?>
|
|
<?php unset($__attributesOriginal8001c520f4b7dcb40a16cd3b411856d1); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8001c520f4b7dcb40a16cd3b411856d1)): ?>
|
|
<?php $component = $__componentOriginal8001c520f4b7dcb40a16cd3b411856d1; ?>
|
|
<?php unset($__componentOriginal8001c520f4b7dcb40a16cd3b411856d1); ?>
|
|
<?php endif; ?><?php /**PATH /var/www/html/packages/Webkul/Admin/src/Resources/views/leads/edit.blade.php ENDPATH**/ ?>
|