1911 lines
123 KiB
PHP
Executable File
1911 lines
123 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([]); ?>
|
|
<?php $__env->slot('title', null, []); ?>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.title'); ?>
|
|
<?php $__env->endSlot(); ?>
|
|
|
|
<?php echo view_render_event('admin.settings.workflow.form.before'); ?>
|
|
|
|
|
|
<?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.settings.workflows.store')]] + (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.settings.workflows.store'))]); ?>
|
|
<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 echo view_render_event('admin.settings.workflow.breadcrumbs.before'); ?>
|
|
|
|
|
|
<?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' => 'settings.workflows.create']] + (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' => 'settings.workflows.create']); ?>
|
|
<?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; ?>
|
|
|
|
<?php echo view_render_event('admin.settings.webhooks.breadcrumbs.after'); ?>
|
|
|
|
|
|
<div class="text-xl font-bold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.title'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-x-2.5">
|
|
<div class="flex items-center gap-x-2.5">
|
|
<?php echo view_render_event('admin.settings.workflow.save_button.before'); ?>
|
|
|
|
|
|
<!-- Save button for person -->
|
|
<button
|
|
type="submit"
|
|
class="primary-button"
|
|
>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.save-btn'); ?>
|
|
</button>
|
|
|
|
<?php echo view_render_event('admin.settings.workflow.save_button.after'); ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Workflow Vue Component -->
|
|
<v-workflow></v-workflow>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal90e17c46c497ef276bee72e56b6e5d6d = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal90e17c46c497ef276bee72e56b6e5d6d = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.edit.lookup','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::attributes.edit.lookup'); ?>
|
|
<?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($__attributesOriginal90e17c46c497ef276bee72e56b6e5d6d)): ?>
|
|
<?php $attributes = $__attributesOriginal90e17c46c497ef276bee72e56b6e5d6d; ?>
|
|
<?php unset($__attributesOriginal90e17c46c497ef276bee72e56b6e5d6d); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal90e17c46c497ef276bee72e56b6e5d6d)): ?>
|
|
<?php $component = $__componentOriginal90e17c46c497ef276bee72e56b6e5d6d; ?>
|
|
<?php unset($__componentOriginal90e17c46c497ef276bee72e56b6e5d6d); ?>
|
|
<?php endif; ?>
|
|
</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.settings.workflow.form.after'); ?>
|
|
|
|
|
|
<?php if (! $__env->hasRenderedOnce('28c918a7-2e43-4c86-9b79-add846969084')): $__env->markAsRenderedOnce('28c918a7-2e43-4c86-9b79-add846969084');
|
|
$__env->startPush('scripts'); ?>
|
|
<script
|
|
type="text/x-template"
|
|
id="v-workflow-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">
|
|
<?php echo view_render_event('admin.settings.workflows.create.form_controls.before'); ?>
|
|
|
|
|
|
<!-- Tab Switcher -->
|
|
<div class="flex w-full gap-2 border-b border-gray-200 dark:border-gray-800">
|
|
<!-- Tabs -->
|
|
<template
|
|
v-for="tab in tabs"
|
|
:key="tab.id"
|
|
>
|
|
<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>
|
|
</template>
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-4 px-4 py-2">
|
|
<?php echo view_render_event('admin.settings.workflows.create.basic_details.before'); ?>
|
|
|
|
|
|
<!-- Basic Details -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="basic-details"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.basic-details'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.basic-details-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="w-1/2 max-md:w-full">
|
|
<?php if (isset($component)) { $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.label','data' => ['class' => 'required']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.label'); ?>
|
|
<?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(['class' => 'required']); ?>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.name'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $attributes = $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $component = $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal53af403f6b2179a3039d488b8ab2a267 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal53af403f6b2179a3039d488b8ab2a267 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.control','data' => ['type' => 'text','name' => 'name','id' => 'name','value' => old('name'),'rules' => 'required','label' => trans('admin::app.settings.workflows.create.name'),'placeholder' => trans('admin::app.settings.workflows.create.name')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.control'); ?>
|
|
<?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(['type' => 'text','name' => 'name','id' => 'name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('name')),'rules' => 'required','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.name')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.name'))]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $attributes = $__attributesOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $component = $__componentOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__componentOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => ['controlName' => 'name']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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(['control-name' => 'name']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $attributes = $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $component = $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.label','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.label'); ?>
|
|
<?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 app('translator')->get('admin::app.settings.workflows.create.description'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $attributes = $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $component = $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal53af403f6b2179a3039d488b8ab2a267 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal53af403f6b2179a3039d488b8ab2a267 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.control','data' => ['type' => 'textarea','name' => 'description','id' => 'description','rows' => '5','value' => old('description'),'label' => trans('admin::app.settings.workflows.create.description'),'placeholder' => trans('admin::app.settings.workflows.create.description')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.control'); ?>
|
|
<?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(['type' => 'textarea','name' => 'description','id' => 'description','rows' => '5','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('description')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.description')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.description'))]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $attributes = $__attributesOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $component = $__componentOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__componentOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => ['controlName' => 'description']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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(['control-name' => 'description']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $attributes = $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $component = $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.basic_details.after'); ?>
|
|
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.event.before'); ?>
|
|
|
|
|
|
<!-- Event -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="event"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.event'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.event-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Hidden Entity Type -->
|
|
<input
|
|
type="hidden"
|
|
name="entity_type"
|
|
:value="entityType"
|
|
/>
|
|
|
|
<div class="w-1/2 max-md:w-full">
|
|
<!-- Event -->
|
|
<?php if (isset($component)) { $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.label','data' => ['class' => 'required']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.label'); ?>
|
|
<?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(['class' => 'required']); ?>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.event'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $attributes = $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $component = $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal53af403f6b2179a3039d488b8ab2a267 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal53af403f6b2179a3039d488b8ab2a267 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.control','data' => ['type' => 'select','id' => 'event','name' => 'event',':value' => 'event','rules' => 'required','label' => trans('admin::app.settings.workflows.create.event'),'placeholder' => trans('admin::app.settings.workflows.create.event'),'vModel' => 'event']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.control'); ?>
|
|
<?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(['type' => 'select','id' => 'event','name' => 'event',':value' => 'event','rules' => 'required','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.event')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.event')),'v-model' => 'event']); ?>
|
|
<optgroup
|
|
v-for='entity in events'
|
|
:label="entity.name"
|
|
>
|
|
<option
|
|
v-for='event in entity.events'
|
|
:value="event.event"
|
|
:text="event.name"
|
|
></option>
|
|
</optgroup>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $attributes = $__attributesOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $component = $__componentOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__componentOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => ['controlName' => 'event']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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(['control-name' => 'event']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $attributes = $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $component = $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.event.after'); ?>
|
|
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.condition.before'); ?>
|
|
|
|
|
|
<!-- Conditions -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="conditions"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.conditions'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.conditions-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="flex w-1/2 flex-col gap-2 max-md:w-full">
|
|
<!-- Condition Type -->
|
|
<?php if (isset($component)) { $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.label','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.label'); ?>
|
|
<?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 app('translator')->get('admin::app.settings.workflows.create.condition-type'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $attributes = $__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__attributesOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8)): ?>
|
|
<?php $component = $__componentOriginal8378211f70f8c39b16d47cecdac9c7c8; ?>
|
|
<?php unset($__componentOriginal8378211f70f8c39b16d47cecdac9c7c8); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal53af403f6b2179a3039d488b8ab2a267 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal53af403f6b2179a3039d488b8ab2a267 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.control','data' => ['type' => 'select','class' => 'ltr:pr-10 rtl:pl-10','id' => 'condition_type','name' => 'condition_type','vModel' => 'conditionType','rules' => 'required','label' => trans('admin::app.settings.workflows.create.condition-type'),'placeholder' => trans('admin::app.settings.workflows.create.condition-type')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.control'); ?>
|
|
<?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(['type' => 'select','class' => 'ltr:pr-10 rtl:pl-10','id' => 'condition_type','name' => 'condition_type','v-model' => 'conditionType','rules' => 'required','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.condition-type')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.workflows.create.condition-type'))]); ?>
|
|
<option value="and">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.all-condition-are-true'); ?>
|
|
</option>
|
|
|
|
<option value="or">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.any-condition-are-true'); ?>
|
|
</option>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $attributes = $__attributesOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__attributesOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal53af403f6b2179a3039d488b8ab2a267)): ?>
|
|
<?php $component = $__componentOriginal53af403f6b2179a3039d488b8ab2a267; ?>
|
|
<?php unset($__componentOriginal53af403f6b2179a3039d488b8ab2a267); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => ['controlName' => 'condition_type']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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(['control-name' => 'condition_type']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $attributes = $__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__attributesOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3)): ?>
|
|
<?php $component = $__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3; ?>
|
|
<?php unset($__componentOriginal7b1bc76a00ab5e7f1bf2c6429dae85a3); ?>
|
|
<?php endif; ?>
|
|
|
|
<!-- Workflow Condition Vue Component. -->
|
|
<template
|
|
v-for='(condition, index) in conditions'
|
|
:key="index"
|
|
>
|
|
<v-workflow-condition-item
|
|
:entityType="entityType"
|
|
:condition="condition"
|
|
:index="index"
|
|
@onRemoveCondition="removeCondition($event)"
|
|
></v-workflow-condition-item>
|
|
</template>
|
|
|
|
<button
|
|
type="button"
|
|
class="flex max-w-max items-center gap-2 text-brandColor"
|
|
@click="addCondition"
|
|
>
|
|
<i class="icon-add text-md !text-brandColor"></i>
|
|
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.add-condition'); ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.condition.after'); ?>
|
|
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.action.before'); ?>
|
|
|
|
|
|
<!-- Actions -->
|
|
<div
|
|
class="flex flex-col gap-4"
|
|
id="actions"
|
|
>
|
|
<div class="flex flex-col gap-1">
|
|
<p class="text-base font-semibold dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.actions'); ?>
|
|
</p>
|
|
|
|
<p class="text-gray-600 dark:text-white">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.actions-info'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="block w-full">
|
|
<?php if (isset($component)) { $__componentOriginala9dad9f471f1e8ff345be80579eb8136 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginala9dad9f471f1e8ff345be80579eb8136 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.index','data' => ['class' => '!w-1/2 !table-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table'); ?>
|
|
<?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(['class' => '!w-1/2 !table-auto']); ?>
|
|
<!-- Table Head -->
|
|
<?php if (isset($component)) { $__componentOriginal8ee89c0b398bd7314c2e7815b044fc82 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8ee89c0b398bd7314c2e7815b044fc82 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.thead.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.thead'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal95a122c91c33f6d66a15a82d7ca67172 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal95a122c91c33f6d66a15a82d7ca67172 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.thead.tr','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.thead.tr'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal2b66f2da706603ab43da37c4a360ae32 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal2b66f2da706603ab43da37c4a360ae32 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.th','data' => ['class' => 'text-center']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.th'); ?>
|
|
<?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(['class' => 'text-center']); ?>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.type'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $attributes = $__attributesOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__attributesOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $component = $__componentOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__componentOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal2b66f2da706603ab43da37c4a360ae32 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal2b66f2da706603ab43da37c4a360ae32 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.th','data' => ['class' => 'text-center']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.th'); ?>
|
|
<?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(['class' => 'text-center']); ?>
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.name'); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $attributes = $__attributesOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__attributesOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $component = $__componentOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__componentOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal2b66f2da706603ab43da37c4a360ae32 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal2b66f2da706603ab43da37c4a360ae32 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.th','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.th'); ?>
|
|
<?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($__attributesOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $attributes = $__attributesOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__attributesOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal2b66f2da706603ab43da37c4a360ae32)): ?>
|
|
<?php $component = $__componentOriginal2b66f2da706603ab43da37c4a360ae32; ?>
|
|
<?php unset($__componentOriginal2b66f2da706603ab43da37c4a360ae32); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal95a122c91c33f6d66a15a82d7ca67172)): ?>
|
|
<?php $attributes = $__attributesOriginal95a122c91c33f6d66a15a82d7ca67172; ?>
|
|
<?php unset($__attributesOriginal95a122c91c33f6d66a15a82d7ca67172); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal95a122c91c33f6d66a15a82d7ca67172)): ?>
|
|
<?php $component = $__componentOriginal95a122c91c33f6d66a15a82d7ca67172; ?>
|
|
<?php unset($__componentOriginal95a122c91c33f6d66a15a82d7ca67172); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8ee89c0b398bd7314c2e7815b044fc82)): ?>
|
|
<?php $attributes = $__attributesOriginal8ee89c0b398bd7314c2e7815b044fc82; ?>
|
|
<?php unset($__attributesOriginal8ee89c0b398bd7314c2e7815b044fc82); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8ee89c0b398bd7314c2e7815b044fc82)): ?>
|
|
<?php $component = $__componentOriginal8ee89c0b398bd7314c2e7815b044fc82; ?>
|
|
<?php unset($__componentOriginal8ee89c0b398bd7314c2e7815b044fc82); ?>
|
|
<?php endif; ?>
|
|
|
|
<!-- Table Body -->
|
|
<?php if (isset($component)) { $__componentOriginalde01fbd71b7145d08385ea395943e136 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalde01fbd71b7145d08385ea395943e136 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.tbody.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.tbody'); ?>
|
|
<?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([]); ?>
|
|
<template
|
|
v-for='(action, index) in actions'
|
|
:key="index"
|
|
>
|
|
<v-workflow-action-item
|
|
:entityType="entityType"
|
|
:action="action"
|
|
:index="index"
|
|
@onRemoveAction="removeAction($event)"
|
|
></v-workflow-action-item>
|
|
</template>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalde01fbd71b7145d08385ea395943e136)): ?>
|
|
<?php $attributes = $__attributesOriginalde01fbd71b7145d08385ea395943e136; ?>
|
|
<?php unset($__attributesOriginalde01fbd71b7145d08385ea395943e136); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalde01fbd71b7145d08385ea395943e136)): ?>
|
|
<?php $component = $__componentOriginalde01fbd71b7145d08385ea395943e136; ?>
|
|
<?php unset($__componentOriginalde01fbd71b7145d08385ea395943e136); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginala9dad9f471f1e8ff345be80579eb8136)): ?>
|
|
<?php $attributes = $__attributesOriginala9dad9f471f1e8ff345be80579eb8136; ?>
|
|
<?php unset($__attributesOriginala9dad9f471f1e8ff345be80579eb8136); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginala9dad9f471f1e8ff345be80579eb8136)): ?>
|
|
<?php $component = $__componentOriginala9dad9f471f1e8ff345be80579eb8136; ?>
|
|
<?php unset($__componentOriginala9dad9f471f1e8ff345be80579eb8136); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<button
|
|
type="button"
|
|
class="text-md flex max-w-max items-center gap-2 text-brandColor"
|
|
@click="addAction"
|
|
>
|
|
<i class="icon-add"></i>
|
|
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.add-action'); ?>
|
|
</button>
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.action.after'); ?>
|
|
|
|
</div>
|
|
|
|
<?php echo view_render_event('admin.settings.workflows.create.form_controls.after'); ?>
|
|
|
|
</div>
|
|
</script>
|
|
|
|
<script
|
|
type="text/x-template"
|
|
id="v-workflow-condition-item-template"
|
|
>
|
|
<div class="flex items-center justify-between gap-4">
|
|
<div class="flex flex-1 gap-4 max-sm:flex-1 max-sm:flex-wrap">
|
|
<!-- Select main condition. -->
|
|
<select
|
|
:name="['conditions[' + index + '][attribute]']"
|
|
:id="['conditions[' + index + '][attribute]']"
|
|
class="custom-select min:w-1/3 flex h-10 w-1/3 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="condition.attribute"
|
|
>
|
|
<option
|
|
v-for="attribute in conditions[entityType]"
|
|
:value="attribute.id"
|
|
:text="attribute.name"
|
|
></option>
|
|
</select>
|
|
|
|
<template v-if="matchedAttribute">
|
|
<select
|
|
:name="['conditions[' + index + '][operator]']"
|
|
:id="['conditions[' + index + '][operator]']"
|
|
class="custom-select min:w-1/3 inline-flex h-10 w-1/3 items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="condition.operator"
|
|
>
|
|
<option
|
|
v-for='operator in conditionOperators[matchedAttribute.type]'
|
|
:value="operator.operator"
|
|
:text="operator.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
|
|
<template v-if="matchedAttribute">
|
|
<!-- Text, Price, Decimal, Integer, Email, Phone -->
|
|
<input
|
|
type="hidden"
|
|
:name="['conditions[' + index + '][attribute_type]']"
|
|
v-model="matchedAttribute.type"
|
|
>
|
|
|
|
<template
|
|
v-if="
|
|
matchedAttribute.type == 'text'
|
|
|| matchedAttribute.type == 'price'
|
|
|| matchedAttribute.type == 'decimal'
|
|
|| matchedAttribute.type == 'integer'
|
|
|| matchedAttribute.type == 'email'
|
|
|| matchedAttribute.type == 'phone'
|
|
"
|
|
>
|
|
<v-field
|
|
:name="`conditions[${index}][value]`"
|
|
v-slot="{ field, errorMessage }"
|
|
label="<?php echo app('translator')->get('admin::app.settings.workflows.create.value'); ?>"
|
|
:id="`conditions[${index}][value]`"
|
|
:rules="
|
|
matchedAttribute.type == 'price' ? 'regex:^[0-9]+(\\.[0-9]+)?$' : ''
|
|
|| matchedAttribute.type == 'decimal' ? 'regex:^[0-9]+(\\.[0-9]+)?$' : ''
|
|
|| matchedAttribute.type == 'integer' ? 'regex:^[0-9]+$' : ''
|
|
|| matchedAttribute.type == 'text' ? 'regex:^.*$' : ''
|
|
|| matchedAttribute.type == 'email' ? 'email' : ''
|
|
"
|
|
v-model="condition.value"
|
|
>
|
|
<input
|
|
type="text"
|
|
v-bind="field"
|
|
:class="{ 'border border-red-500': errorMessage }"
|
|
class="min:w-1/3 flex h-10 w-1/3 rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
/>
|
|
</v-field>
|
|
|
|
<v-error-message
|
|
:name="`conditions[${index}][value]`"
|
|
class="mt-1 text-xs italic text-red-500"
|
|
as="p"
|
|
>
|
|
</v-error-message>
|
|
</template>
|
|
|
|
<!-- Date -->
|
|
<template v-if="matchedAttribute.type == 'date'">
|
|
<?php if (isset($component)) { $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.flat-picker.date','data' => ['class' => '!w-1/3',':allowInput' => 'false']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::flat-picker.date'); ?>
|
|
<?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(['class' => '!w-1/3',':allow-input' => 'false']); ?>
|
|
<input
|
|
type="date"
|
|
class="min:w-1/3 flex min-h-[39px] w-full rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
:name="['conditions[' + index + '][value]']"
|
|
v-model="condition.value"
|
|
/>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $attributes = $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $component = $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
</template>
|
|
|
|
<!-- Datetime -->
|
|
<template v-if="matchedAttribute.type == 'datetime'">
|
|
<?php if (isset($component)) { $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.flat-picker.date','data' => ['class' => '!w-1/3',':allowInput' => 'false']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::flat-picker.date'); ?>
|
|
<?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(['class' => '!w-1/3',':allow-input' => 'false']); ?>
|
|
<input
|
|
type="datetime"
|
|
class="min:w-1/3 flex w-full rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
:name="['conditions[' + index + '][value]']"
|
|
v-model="condition.value"
|
|
/>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $attributes = $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $component = $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
</template>
|
|
|
|
<!-- Boolean -->
|
|
<template v-if="matchedAttribute.type == 'boolean'">
|
|
<select
|
|
:name="['conditions[' + index + '][value]']"
|
|
class="custom-select inline-flex h-10 w-1/3 items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="condition.value"
|
|
>
|
|
<option value="1">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.yes'); ?>
|
|
</option>
|
|
|
|
<option value="0">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.no'); ?>
|
|
</option>
|
|
</select>
|
|
</template>
|
|
|
|
<!-- Lookup Type -->
|
|
<template
|
|
v-if="
|
|
matchedAttribute.type == 'select'
|
|
|| matchedAttribute.type == 'radio'
|
|
|| matchedAttribute.type == 'lookup'
|
|
"
|
|
>
|
|
<template v-if="! matchedAttribute.lookup_type">
|
|
<select
|
|
:name="['conditions[' + index + '][value]']"
|
|
class="custom-select inline-flex h-10 w-1/3 items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
v-model="condition.value"
|
|
>
|
|
<option
|
|
v-for='option in matchedAttribute.options'
|
|
:value="option.id"
|
|
:text="option.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
|
|
<template v-else>
|
|
<div class="w-1/3">
|
|
<v-lookup-component
|
|
:attribute="{'code': 'conditions[' + index + '][value]', 'name': matchedAttribute?.name, 'lookup_type': matchedAttribute.lookup_type}"
|
|
validations="required"
|
|
:value="{
|
|
id: condition.value
|
|
}"
|
|
can-add-new="true"
|
|
></v-lookup-component>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => [':name' => '`conditions[${index}][value]`']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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' => '`conditions[${index}][value]`']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
<!-- Multiselect and Checkbox -->
|
|
<template
|
|
v-if="matchedAttribute.type == 'multiselect'
|
|
|| matchedAttribute.type == 'checkbox'"
|
|
>
|
|
<select
|
|
:name="['conditions[' + index + '][value][]']"
|
|
class="min:w-1/3 inline-flex h-20 w-1/3 items-center justify-between gap-x-1 rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
v-model="condition.value"
|
|
multiple
|
|
>
|
|
<option
|
|
v-for='option in matchedAttribute.options'
|
|
:value="option.id"
|
|
:text="option.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
|
|
<!-- Textarea -->
|
|
<template v-if="matchedAttribute.type == 'textarea'">
|
|
<textarea
|
|
:name="['conditions[' + index + '][value]']"
|
|
:id="['conditions[' + index + '][value]']"
|
|
v-model="condition.value"
|
|
class="min:w-1/3 w-1/3 rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
></textarea>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
|
|
<!-- Remove Conditions -->
|
|
<span
|
|
class="icon-delete max-h-9 max-w-9 cursor-pointer rounded-md p-1.5 text-2xl transition-all hover:bg-gray-100 dark:hover:bg-gray-950 max-sm:place-self-center"
|
|
@click="removeCondition"
|
|
></span>
|
|
</div>
|
|
</script>
|
|
|
|
<script
|
|
type="text/x-template"
|
|
id="v-workflow-action-item-template"
|
|
>
|
|
<!-- Table Body -->
|
|
<?php if (isset($component)) { $__componentOriginal95a122c91c33f6d66a15a82d7ca67172 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal95a122c91c33f6d66a15a82d7ca67172 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.thead.tr','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.thead.tr'); ?>
|
|
<?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 if (isset($component)) { $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.td','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.td'); ?>
|
|
<?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([]); ?>
|
|
<select
|
|
:name="['actions[' + index + '][id]']"
|
|
:id="['actions[' + index + '][id]']"
|
|
class="custom-select flex h-10 w-full rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="action.id"
|
|
>
|
|
<option
|
|
v-for='action in actions[entityType]'
|
|
:value="action.id"
|
|
:text="action.name"
|
|
></option>
|
|
</select>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $attributes = $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $component = $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.td','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.td'); ?>
|
|
<?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([]); ?>
|
|
<div class="flex w-full justify-between gap-4">
|
|
<template v-if="matchedAction && matchedAction.attributes">
|
|
<!-- Mattched Attribute -->
|
|
<select
|
|
:name="['actions[' + index + '][attribute]']"
|
|
:id="['actions[' + index + '][attribute]']"
|
|
class="custom-select inline-flex h-10 w-full items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="action.attribute"
|
|
>
|
|
<option
|
|
v-for='attribute in matchedAction.attributes'
|
|
:value="attribute.id"
|
|
:text="attribute.name"
|
|
></option>
|
|
</select>
|
|
|
|
<template v-if="matchedAttribute">
|
|
<input
|
|
type="hidden"
|
|
:name="['actions[' + index + '][attribute_type]']"
|
|
v-model="matchedAttribute.type"
|
|
>
|
|
|
|
<!-- Text, Price, Decimal and Integer -->
|
|
<template
|
|
v-if="
|
|
matchedAttribute.type == 'text'
|
|
|| matchedAttribute.type == 'price'
|
|
|| matchedAttribute.type == 'decimal'
|
|
|| matchedAttribute.type == 'integer'
|
|
"
|
|
>
|
|
<v-field
|
|
:name="`actions[${index}][value]`"
|
|
v-slot="{ field, errorMessage }"
|
|
:id="`actions[${index}][value]`"
|
|
:rules="
|
|
matchedAttribute.type == 'price' ? 'regex:^[0-9]+(\\.[0-9]+)?$' : ''
|
|
|| matchedAttribute.type == 'decimal' ? 'regex:^[0-9]+(\\.[0-9]+)?$' : ''
|
|
|| matchedAttribute.type == 'integer' ? 'regex:^[0-9]+$' : ''
|
|
|| matchedAttribute.type == 'text' ? 'regex:^.*$' : ''
|
|
"
|
|
v-model="action.value"
|
|
>
|
|
<input
|
|
type="text"
|
|
v-bind="field"
|
|
:class="{ 'border border-red-500': errorMessage }"
|
|
class="flex h-10 w-full rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
/>
|
|
</v-field>
|
|
|
|
<v-error-message
|
|
:name="`actions[${index}][value]`"
|
|
class="mt-1 text-xs italic text-red-500"
|
|
as="p"
|
|
>
|
|
</v-error-message>
|
|
</template>
|
|
|
|
<!-- Email and Phone -->
|
|
<template
|
|
v-if="
|
|
matchedAttribute.type == 'email'
|
|
|| matchedAttribute.type == 'phone'
|
|
"
|
|
>
|
|
<input
|
|
type="hidden"
|
|
:name="['actions[' + index + '][value][0][value]']"
|
|
value="work"
|
|
/>
|
|
|
|
<input
|
|
type="email"
|
|
:name="`actions[${index}][value][0][value]`"
|
|
:id="`actions[${index}][value][0][value]`"
|
|
class="flex h-10 w-full rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
v-model="action.value[0].value"
|
|
/>
|
|
</template>
|
|
|
|
<!-- Textarea -->
|
|
<template v-if="matchedAttribute.type == 'textarea'">
|
|
<textarea
|
|
:name="['actions[' + index + '][value]']"
|
|
:id="['actions[' + index + '][value]']"
|
|
v-model="action.value"
|
|
class="w-full rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
></textarea>
|
|
</template>
|
|
|
|
<!-- Date Picker -->
|
|
<template v-if="matchedAttribute.type == 'date'">
|
|
<?php if (isset($component)) { $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.flat-picker.date','data' => ['class' => '!w-full',':allowInput' => 'false']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::flat-picker.date'); ?>
|
|
<?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(['class' => '!w-full',':allow-input' => 'false']); ?>
|
|
<input
|
|
type="date"
|
|
class="flex min-h-[39px] w-full rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
:name="['actions[' + index + '][value]']"
|
|
v-model="action.value"
|
|
/>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $attributes = $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $component = $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
</template>
|
|
|
|
<!-- Date Time Picker -->
|
|
<template v-if="matchedAttribute.type == 'datetime'">
|
|
<?php if (isset($component)) { $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.flat-picker.date','data' => ['class' => '!w-full',':allowInput' => 'false']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::flat-picker.date'); ?>
|
|
<?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(['class' => '!w-full',':allow-input' => 'false']); ?>
|
|
<input
|
|
type="datetime"
|
|
class="flex min-h-[39px] w-full rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
:name="['actions[' + index + '][value]']"
|
|
v-model="action.value"
|
|
/>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $attributes = $__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__attributesOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b)): ?>
|
|
<?php $component = $__componentOriginalfb6be9e824dd35fb24e37e299d255b9b; ?>
|
|
<?php unset($__componentOriginalfb6be9e824dd35fb24e37e299d255b9b); ?>
|
|
<?php endif; ?>
|
|
</template>
|
|
|
|
<!-- Boolean -->
|
|
<template v-if="matchedAttribute.type == 'boolean'">
|
|
<select
|
|
:name="['actions[' + index + '][value]']"
|
|
class="custom-select inline-flex h-10 w-full items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="action.value"
|
|
>
|
|
<option value="1">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.yes'); ?>
|
|
</option>
|
|
|
|
<option value="0">
|
|
<?php echo app('translator')->get('admin::app.settings.workflows.create.no'); ?>
|
|
</option>
|
|
</select>
|
|
</template>
|
|
|
|
<!-- Select, Radio and Lookup -->
|
|
<template
|
|
v-if="
|
|
matchedAttribute.type == 'select'
|
|
|| matchedAttribute.type == 'radio'
|
|
|| matchedAttribute.type == 'lookup'
|
|
"
|
|
>
|
|
<!-- Attribute Options -->
|
|
<template v-if="! matchedAttribute.lookup_type">
|
|
<select
|
|
:name="['actions[' + index + '][value]']"
|
|
class="custom-select inline-flex h-10 w-full items-center justify-between gap-x-1 rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400"
|
|
v-model="action.value"
|
|
>
|
|
<option
|
|
v-for='option in matchedAttribute.options'
|
|
:value="option.id"
|
|
:text="option.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
|
|
<!-- Look vue component -->
|
|
<template v-else>
|
|
<div class="w-full">
|
|
<v-lookup-component
|
|
:attribute="{'code': 'actions[' + index + '][value]', 'name': matchedAttribute?.name, 'lookup_type': matchedAttribute.lookup_type}"
|
|
validations="required"
|
|
:value="{
|
|
id: action.value
|
|
}"
|
|
can-add-new="true"
|
|
></v-lookup-component>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => [':name' => '`actions[${index}][value]`']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::form.control-group.error'); ?>
|
|
<?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' => '`actions[${index}][value]`']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $attributes = $__attributesOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__attributesOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal8da25fb6534e2ef288914e35c32417f8)): ?>
|
|
<?php $component = $__componentOriginal8da25fb6534e2ef288914e35c32417f8; ?>
|
|
<?php unset($__componentOriginal8da25fb6534e2ef288914e35c32417f8); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
<!-- Attribute Options -->
|
|
<template v-if="this.matchedAttribute.type === 'multiselect' || this.matchedAttribute.type === 'checkbox'">
|
|
<select
|
|
:name="`actions[${index}][value][]`"
|
|
class="inline-flex h-20 w-full items-center justify-between gap-x-1 rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
v-model="action.value"
|
|
multiple
|
|
>
|
|
<option
|
|
v-for="option in matchedAttribute.options"
|
|
:key="option.id"
|
|
:value="option.id"
|
|
:text="option.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
|
|
<template v-if="matchedAction && matchedAction.options">
|
|
<select
|
|
:name="`actions[${index}][value]`"
|
|
class="custom-select flex h-10 w-full rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 max-sm:max-w-full max-sm:flex-auto"
|
|
v-model="action.value"
|
|
>
|
|
<option
|
|
v-for='option in matchedAction.options'
|
|
:value="option.id"
|
|
:text="option.name"
|
|
></option>
|
|
</select>
|
|
</template>
|
|
|
|
<template
|
|
v-if="
|
|
matchedAction
|
|
&& ! matchedAction.attributes
|
|
&& ! matchedAction.options
|
|
&& ! matchedAction.request_methods
|
|
"
|
|
>
|
|
<v-field
|
|
:name="`actions[${index}][value]`"
|
|
:id="`actions[${index}][value]`"
|
|
v-slot="{ field, errorMessage }"
|
|
v-model="action.value"
|
|
>
|
|
<input
|
|
type="text"
|
|
v-bind="field"
|
|
:class="{ 'border border-red-500': errorMessage }"
|
|
class="flex h-10 w-full rounded-md border px-3 py-2.5 text-sm text-gray-600 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
|
|
/>
|
|
</v-field>
|
|
|
|
<v-error-message
|
|
:name="`actions[${index}][value]`"
|
|
class="mt-1 text-xs italic text-red-500"
|
|
as="p"
|
|
>
|
|
</v-error-message>
|
|
</template>
|
|
</div>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $attributes = $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $component = $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.table.td','data' => ['class' => 'text-right']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('admin::table.td'); ?>
|
|
<?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(['class' => 'text-right']); ?>
|
|
<span
|
|
class="icon-delete cursor-pointer rounded-md p-1.5 text-2xl transition-all hover:bg-gray-100 dark:hover:bg-gray-950"
|
|
@click="removeAction"
|
|
></span>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $attributes = $__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__attributesOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc)): ?>
|
|
<?php $component = $__componentOriginal7bda9cdc3924faf4607e2df004a89fbc; ?>
|
|
<?php unset($__componentOriginal7bda9cdc3924faf4607e2df004a89fbc); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal95a122c91c33f6d66a15a82d7ca67172)): ?>
|
|
<?php $attributes = $__attributesOriginal95a122c91c33f6d66a15a82d7ca67172; ?>
|
|
<?php unset($__attributesOriginal95a122c91c33f6d66a15a82d7ca67172); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal95a122c91c33f6d66a15a82d7ca67172)): ?>
|
|
<?php $component = $__componentOriginal95a122c91c33f6d66a15a82d7ca67172; ?>
|
|
<?php unset($__componentOriginal95a122c91c33f6d66a15a82d7ca67172); ?>
|
|
<?php endif; ?>
|
|
</script>
|
|
|
|
<script type="module">
|
|
app.component('v-workflow', {
|
|
template: '#v-workflow-template',
|
|
|
|
data() {
|
|
return {
|
|
events: <?php echo json_encode(app('\Webkul\Automation\Helpers\Entity')->getEvents(), 15, 512) ?>,
|
|
|
|
event: '',
|
|
|
|
conditionType: '1',
|
|
|
|
conditions: [],
|
|
|
|
actions: [],
|
|
|
|
activeTab: 'basic-details',
|
|
|
|
tabs: [
|
|
{ id: 'basic-details', label: '<?php echo app('translator')->get('admin::app.settings.workflows.create.basic-details'); ?>' },
|
|
{ id: 'event', label: '<?php echo app('translator')->get('admin::app.settings.workflows.create.event'); ?>' },
|
|
{ id: 'conditions', label: '<?php echo app('translator')->get('admin::app.settings.workflows.create.conditions'); ?>' },
|
|
{ id: 'actions', label: '<?php echo app('translator')->get('admin::app.settings.workflows.create.actions'); ?>' }
|
|
],
|
|
};
|
|
},
|
|
|
|
computed: {
|
|
/**
|
|
* Get the entity type.
|
|
*
|
|
* @return {String}
|
|
*/
|
|
entityType: function () {
|
|
if (this.event == '') {
|
|
return '';
|
|
}
|
|
|
|
var entityType = '';
|
|
|
|
for (let id in this.events) {
|
|
this.events[id].events.forEach((eventTemp) => {
|
|
if (eventTemp.event == this.event) {
|
|
entityType = id;
|
|
}
|
|
});
|
|
}
|
|
|
|
return entityType;
|
|
}
|
|
},
|
|
|
|
watch: {
|
|
/**
|
|
* Watch the entity Type.
|
|
*
|
|
* @return {void}
|
|
*/
|
|
entityType(newValue, oldValue) {
|
|
this.conditions = [];
|
|
|
|
this.actions = [];
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
/**
|
|
* Add the condition.
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
addCondition() {
|
|
this.conditions.push({
|
|
'attribute': '',
|
|
'operator': '==',
|
|
'value': '',
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Remove the condition.
|
|
*
|
|
* @param {Object} condition
|
|
* @returns {void}
|
|
*/
|
|
removeCondition(condition) {
|
|
let index = this.conditions.indexOf(condition);
|
|
|
|
this.conditions.splice(index, 1);
|
|
},
|
|
|
|
/**
|
|
* Add the action.
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
addAction() {
|
|
this.actions.push({
|
|
'id': '',
|
|
'attribute': '',
|
|
'value': '',
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Remove the action.
|
|
*
|
|
* @param {Object} action
|
|
* @returns {void}
|
|
*/
|
|
removeAction(action) {
|
|
let index = this.actions.indexOf(action)
|
|
|
|
this.actions.splice(index, 1);
|
|
},
|
|
|
|
/**
|
|
* Scroll to the section.
|
|
*
|
|
* @param {String} tabId
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
scrollToSection(tabId) {
|
|
const section = document.getElementById(tabId);
|
|
|
|
if (section) {
|
|
section.scrollIntoView({ behavior: 'smooth' });
|
|
}
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<script type="module">
|
|
app.component('v-workflow-condition-item', {
|
|
template: '#v-workflow-condition-item-template',
|
|
|
|
props: ['index', 'entityType', 'condition'],
|
|
|
|
emits: ['onRemoveCondition'],
|
|
|
|
data() {
|
|
return {
|
|
conditions: <?php echo json_encode(app('\Webkul\Automation\Helpers\Entity')->getConditions(), 15, 512) ?>,
|
|
|
|
conditionOperators: {
|
|
'price': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '>=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-greater-than'); ?>'
|
|
}, {
|
|
'operator': '<=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-less-than'); ?>'
|
|
}, {
|
|
'operator': '>',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.greater-than'); ?>'
|
|
}, {
|
|
'operator': '<',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.less-than'); ?>'
|
|
}],
|
|
'decimal': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '>=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-greater-than'); ?>'
|
|
}, {
|
|
'operator': '<=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-less-than'); ?>'
|
|
}, {
|
|
'operator': '>',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.greater-than'); ?>'
|
|
}, {
|
|
'operator': '<',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.less-than'); ?>'
|
|
}],
|
|
'integer': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '>=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-greater-than'); ?>'
|
|
}, {
|
|
'operator': '<=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-less-than'); ?>'
|
|
}, {
|
|
'operator': '>',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.greater-than'); ?>'
|
|
}, {
|
|
'operator': '<',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.less-than'); ?>'
|
|
}],
|
|
'text': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.contain'); ?>'
|
|
}, {
|
|
'operator': '!{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.does-not-contain'); ?>'
|
|
}],
|
|
'boolean': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}],
|
|
'date': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '>=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-greater-than'); ?>'
|
|
}, {
|
|
'operator': '<=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-less-than'); ?>'
|
|
}, {
|
|
'operator': '>',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.greater-than'); ?>'
|
|
}, {
|
|
'operator': '<',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.less-than'); ?>'
|
|
}],
|
|
'datetime': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}, {
|
|
'operator': '>=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-greater-than'); ?>'
|
|
}, {
|
|
'operator': '<=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.equals-or-less-than'); ?>'
|
|
}, {
|
|
'operator': '>',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.greater-than'); ?>'
|
|
}, {
|
|
'operator': '<',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.less-than'); ?>'
|
|
}],
|
|
'select': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}],
|
|
'radio': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}],
|
|
'multiselect': [{
|
|
'operator': '{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.contains'); ?>'
|
|
}, {
|
|
'operator': '!{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.does-not-contain'); ?>'
|
|
}],
|
|
'checkbox': [{
|
|
'operator': '{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.contains'); ?>'
|
|
}, {
|
|
'operator': '!{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.does-not-contain'); ?>'
|
|
}],
|
|
'email': [{
|
|
'operator': '{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.contains'); ?>'
|
|
}, {
|
|
'operator': '!{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.does-not-contain'); ?>'
|
|
}],
|
|
'phone': [{
|
|
'operator': '{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.contains'); ?>'
|
|
}, {
|
|
'operator': '!{}',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.does-not-contain'); ?>'
|
|
}],
|
|
'lookup': [{
|
|
'operator': '==',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-equal-to'); ?>'
|
|
}, {
|
|
'operator': '!=',
|
|
'name': '<?php echo app('translator')->get('admin::app.settings.workflows.create.is-not-equal-to'); ?>'
|
|
}],
|
|
}
|
|
};
|
|
},
|
|
|
|
computed: {
|
|
/**
|
|
* Get the matched attribute.
|
|
*
|
|
* @returns {Object}
|
|
*/
|
|
matchedAttribute: function () {
|
|
if (this.condition.attribute == '') {
|
|
return;
|
|
}
|
|
|
|
var self = this;
|
|
|
|
let matchedAttribute = this.conditions[this.entityType].filter(function (attribute) {
|
|
return attribute.id == self.condition.attribute;
|
|
});
|
|
|
|
if (matchedAttribute[0]['type'] == 'multiselect' || matchedAttribute[0]['type'] == 'checkbox') {
|
|
this.condition.operator = '{}';
|
|
|
|
this.condition.value = [];
|
|
} else if (matchedAttribute[0]['type'] == 'email' || matchedAttribute[0]['type'] == 'phone') {
|
|
this.condition.operator = '{}';
|
|
}
|
|
|
|
return matchedAttribute[0];
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
/**
|
|
* Remove the condition.
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
removeCondition() {
|
|
this.$emit('onRemoveCondition', this.condition);
|
|
},
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="module">
|
|
app.component('v-workflow-action-item', {
|
|
template: '#v-workflow-action-item-template',
|
|
|
|
props: ['index', 'entityType', 'action'],
|
|
|
|
data() {
|
|
return {
|
|
actions: <?php echo json_encode(app('\Webkul\Automation\Helpers\Entity')->getActions(), 15, 512) ?>,
|
|
};
|
|
},
|
|
|
|
computed: {
|
|
/**
|
|
* Get the matched action.
|
|
*
|
|
* @returns {Object}
|
|
*/
|
|
matchedAction () {
|
|
if (this.entityType == '') {
|
|
return;
|
|
}
|
|
|
|
return this.actions[this.entityType].find(action => action.id == this.action.id);
|
|
},
|
|
|
|
/**
|
|
* Get the matched attribute.
|
|
*
|
|
* @return {void}
|
|
*/
|
|
matchedAttribute() {
|
|
if (! this.matchedAction) {
|
|
return;
|
|
}
|
|
|
|
let matchedAttribute = this.matchedAction.attributes.find(attribute => attribute.id == this.action.attribute);
|
|
|
|
if (! matchedAttribute) {
|
|
return;
|
|
}
|
|
|
|
if (
|
|
matchedAttribute['type'] == 'multiselect'
|
|
|| matchedAttribute['type'] == 'checkbox'
|
|
) {
|
|
this.action.value = [];
|
|
} else if (
|
|
matchedAttribute['type'] == 'email'
|
|
|| matchedAttribute['type'] == 'phone'
|
|
) {
|
|
this.action.value = [{
|
|
'label': 'work',
|
|
'value': ''
|
|
}];
|
|
} else if (matchedAttribute['type'] == 'text') {
|
|
this.action.value = '';
|
|
}
|
|
|
|
console.log("matchedAttribute", matchedAttribute);
|
|
return matchedAttribute;
|
|
},
|
|
},
|
|
|
|
methods: {
|
|
/**
|
|
* Remove the action.
|
|
*
|
|
* @returns {void}
|
|
*/
|
|
removeAction() {
|
|
this.$emit('onRemoveAction', this.action);
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
<?php $__env->stopPush(); endif; ?>
|
|
|
|
<?php if (! $__env->hasRenderedOnce('b8d4a7f4-dd1d-4990-a38b-0acd9fb5c6ca')): $__env->markAsRenderedOnce('b8d4a7f4-dd1d-4990-a38b-0acd9fb5c6ca');
|
|
$__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/settings/workflows/create.blade.php ENDPATH**/ ?>
|