add: full multi-tenancy control
This commit is contained in:
523
storage/framework/views/18c5f1bc083f99b64516be1508c99fa6.php
Executable file
523
storage/framework/views/18c5f1bc083f99b64516be1508c99fa6.php
Executable file
@@ -0,0 +1,523 @@
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal8001c520f4b7dcb40a16cd3b411856d1 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal8001c520f4b7dcb40a16cd3b411856d1 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.layouts.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('admin::layouts'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
||||
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes([]); ?>
|
||||
<!-- Page Title -->
|
||||
<?php $__env->slot('title', null, []); ?>
|
||||
<?php echo app('translator')->get('admin::app.settings.email-template.edit.title'); ?>
|
||||
<?php $__env->endSlot(); ?>
|
||||
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.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.email_templates.update', $emailTemplate->id),'method' => 'PUT']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('admin::form'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
||||
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.settings.email_templates.update', $emailTemplate->id)),'method' => 'PUT']); ?>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
|
||||
<div class="flex flex-col gap-2">
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.breadcrumbs.before'); ?>
|
||||
|
||||
|
||||
<!-- Breadcrumbs -->
|
||||
<?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.email_templates.edit','entity' => $emailTemplate]] + (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.email_templates.edit','entity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($emailTemplate)]); ?>
|
||||
<?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.email_template.edit.breadcrumbs.after'); ?>
|
||||
|
||||
|
||||
<div class="text-xl font-bold dark:text-white">
|
||||
<?php echo app('translator')->get('admin::app.settings.email-template.edit.title'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-x-2.5">
|
||||
<!-- Create button for person -->
|
||||
<div class="flex items-center gap-x-2.5">
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.save_button.before'); ?>
|
||||
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="primary-button"
|
||||
>
|
||||
<?php echo app('translator')->get('Save Email Template'); ?>
|
||||
</button>
|
||||
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.save_button.before'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<v-email-template></v-email-template>
|
||||
</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.email_template.edit.form.after'); ?>
|
||||
|
||||
|
||||
<?php if (! $__env->hasRenderedOnce('61c2e3ca-35f1-4243-9e20-37202843de1d')): $__env->markAsRenderedOnce('61c2e3ca-35f1-4243-9e20-37202843de1d');
|
||||
$__env->startPush('scripts'); ?>
|
||||
<script
|
||||
type="text/x-template"
|
||||
id="v-email-template-template"
|
||||
>
|
||||
<div class="flex gap-2.5 max-xl:flex-wrap">
|
||||
<!-- Left sub-component -->
|
||||
<div class="flex flex-1 flex-col gap-2 max-xl:flex-auto">
|
||||
<div class="box-shadow rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900">
|
||||
<div class="mb-4 flex items-center justify-between gap-4">
|
||||
<p class="text-base font-semibold text-gray-800 dark:text-white">
|
||||
<?php echo app('translator')->get('admin::app.settings.email-template.edit.email-template'); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.subject.before'); ?>
|
||||
|
||||
|
||||
<?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.email-template.edit.subject'); ?>
|
||||
<?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; ?>
|
||||
|
||||
<div class="flex">
|
||||
<?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' => 'subject','id' => 'subject','class' => 'rounded-r-none','rules' => 'required','label' => trans('admin::app.settings.email-template.edit.subject'),'placeholder' => trans('admin::app.settings.email-template.edit.subject'),'vModel' => 'subject','@focusout' => 'saveCursorPosition']] + (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' => 'subject','id' => 'subject','class' => 'rounded-r-none','rules' => 'required','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.subject')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.subject')),'v-model' => 'subject','@focusout' => 'saveCursorPosition']); ?>
|
||||
<?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)) { $__componentOriginal53af403f6b2179a3039d488b8ab2a267 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal53af403f6b2179a3039d488b8ab2a267 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.control','data' => ['type' => 'select','name' => 'placeholder','id' => 'placeholder','class' => '!w-1/3 rounded-l-none','label' => trans('admin::app.settings.email-template.edit.subject-placeholder'),'vModel' => 'selectedPlaceholder','@change' => 'insertPlaceholder']] + (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','name' => 'placeholder','id' => 'placeholder','class' => '!w-1/3 rounded-l-none','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.subject-placeholder')),'v-model' => 'selectedPlaceholder','@change' => 'insertPlaceholder']); ?>
|
||||
<optgroup
|
||||
v-for="entity in placeholders"
|
||||
:key="entity.text"
|
||||
:label="entity.text"
|
||||
>
|
||||
<option
|
||||
v-for="placeholder in entity.menu"
|
||||
:key="placeholder.value"
|
||||
:value="placeholder.value"
|
||||
:text="placeholder.text"
|
||||
></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; ?>
|
||||
|
||||
</div>
|
||||
<?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)) { $__componentOriginal8da25fb6534e2ef288914e35c32417f8 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal8da25fb6534e2ef288914e35c32417f8 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.control-group.error','data' => ['controlName' => 'subject']] + (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' => 'subject']); ?>
|
||||
<?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 view_render_event('admin.settings.email_template.edit.subject.after'); ?>
|
||||
|
||||
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.content.before'); ?>
|
||||
|
||||
|
||||
<!-- Event Name -->
|
||||
<?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' => ['class' => '!mb-0']] + (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(['class' => '!mb-0']); ?>
|
||||
<?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.email-template.edit.content'); ?>
|
||||
<?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','id' => 'content','name' => 'content','rules' => 'required','value' => old('content') ?? $emailTemplate->content,'tinymce' => true,'placeholders' => json_encode($placeholders),'label' => trans('admin::app.settings.email-template.edit.content'),'placeholder' => trans('admin::app.settings.email-template.edit.content')]] + (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','id' => 'content','name' => 'content','rules' => 'required','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('content') ?? $emailTemplate->content),'tinymce' => true,'placeholders' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(json_encode($placeholders)),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.content')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.content'))]); ?>
|
||||
<?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' => 'content']] + (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' => 'content']); ?>
|
||||
<?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 echo view_render_event('admin.settings.email_template.edit.content.after'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right sub-component -->
|
||||
<div class="flex w-[360px] max-w-full flex-col gap-2 max-sm:w-full">
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.accordion.general.before'); ?>
|
||||
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginale6717d929d3edd1e7d9927d6c11ccc02 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginale6717d929d3edd1e7d9927d6c11ccc02 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.accordion.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('admin::accordion'); ?>
|
||||
<?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('header', null, []); ?>
|
||||
<div class="flex items-center justify-between">
|
||||
<p class="p-2.5 text-base font-semibold text-gray-800 dark:text-white">
|
||||
<?php echo app('translator')->get('admin::app.settings.email-template.edit.general'); ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php $__env->endSlot(); ?>
|
||||
|
||||
<?php $__env->slot('content', null, []); ?>
|
||||
<?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' => ['class' => '!mb-0']] + (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(['class' => '!mb-0']); ?>
|
||||
<?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.email-template.edit.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') ?? $emailTemplate->name,'rules' => 'required','label' => trans('admin::app.settings.email-template.edit.name'),'placeholder' => trans('admin::app.settings.email-template.edit.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') ?? $emailTemplate->name),'rules' => 'required','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.name')),'placeholder' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(trans('admin::app.settings.email-template.edit.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 $__env->endSlot(); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginale6717d929d3edd1e7d9927d6c11ccc02)): ?>
|
||||
<?php $attributes = $__attributesOriginale6717d929d3edd1e7d9927d6c11ccc02; ?>
|
||||
<?php unset($__attributesOriginale6717d929d3edd1e7d9927d6c11ccc02); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginale6717d929d3edd1e7d9927d6c11ccc02)): ?>
|
||||
<?php $component = $__componentOriginale6717d929d3edd1e7d9927d6c11ccc02; ?>
|
||||
<?php unset($__componentOriginale6717d929d3edd1e7d9927d6c11ccc02); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo view_render_event('admin.settings.email_template.edit.accordion.general.after'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="module">
|
||||
app.component('v-email-template', {
|
||||
template: '#v-email-template-template',
|
||||
|
||||
data() {
|
||||
return {
|
||||
subject: '<?php echo e(old('subject') ?? $emailTemplate->subject); ?>',
|
||||
|
||||
selectedPlaceholder: '',
|
||||
|
||||
cursorPosition: 0,
|
||||
|
||||
placeholders: <?php echo json_encode($placeholders, 15, 512) ?>,
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
/**
|
||||
* Save the cursor position when the input is focused.
|
||||
*
|
||||
* @param {Event} event
|
||||
* @returns {void}
|
||||
*/
|
||||
saveCursorPosition(event) {
|
||||
this.cursorPosition = event.target.selectionStart;
|
||||
},
|
||||
|
||||
/**
|
||||
* Insert the selected placeholder into the subject.
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
insertPlaceholder() {
|
||||
const placeholder = this.selectedPlaceholder;
|
||||
|
||||
if (this.cursorPosition >= 0) {
|
||||
const before = this.subject.substring(0, this.cursorPosition);
|
||||
|
||||
const after = this.subject.substring(this.cursorPosition);
|
||||
|
||||
this.subject = `${before}${placeholder}${after}`;
|
||||
|
||||
this.cursorPosition += placeholder.length;
|
||||
} else if (placeholder) {
|
||||
this.subject += placeholder;
|
||||
}
|
||||
|
||||
this.selectedPlaceholder = '';
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<?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/email-templates/edit.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user