add: full multi-tenancy control
This commit is contained in:
241
storage/framework/views/645b117505eaf328b063b457f0a7e171.php
Executable file
241
storage/framework/views/645b117505eaf328b063b457f0a7e171.php
Executable file
@@ -0,0 +1,241 @@
|
||||
<?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.contacts.persons.create.title'); ?>
|
||||
<?php $__env->endSlot(); ?>
|
||||
|
||||
<?php echo view_render_event('admin.persons.create.form.before'); ?>
|
||||
|
||||
|
||||
<!--Create Page Form -->
|
||||
<?php if (isset($component)) { $__componentOriginal81b4d293d9113446bb908fc8aef5c8f6 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81b4d293d9113446bb908fc8aef5c8f6 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.form.index','data' => ['action' => route('admin.contacts.persons.store'),'enctype' => 'multipart/form-data']] + (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.contacts.persons.store')),'enctype' => 'multipart/form-data']); ?>
|
||||
<div class="flex flex-col gap-4">
|
||||
<!-- Header -->
|
||||
<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.persons.create.breadcrumbs.before'); ?>
|
||||
|
||||
|
||||
<!-- Breadcrumb -->
|
||||
<?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' => 'contacts.persons.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' => 'contacts.persons.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.persons.create.breadcrumbs.after'); ?>
|
||||
|
||||
|
||||
<div class="text-xl font-bold dark:text-white">
|
||||
<?php echo app('translator')->get('admin::app.contacts.persons.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.persons.create.create_button.before'); ?>
|
||||
|
||||
|
||||
<!-- Create button for Person -->
|
||||
<button
|
||||
type="submit"
|
||||
class="primary-button"
|
||||
>
|
||||
<?php echo app('translator')->get('admin::app.contacts.persons.create.save-btn'); ?>
|
||||
</button>
|
||||
|
||||
<?php echo view_render_event('admin.persons.create.create_button.after'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form fields -->
|
||||
<div class="box-shadow rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900">
|
||||
<?php echo view_render_event('admin.persons.create.form_controls.before'); ?>
|
||||
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal454997736aeabbf070177223ed7ce374 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal454997736aeabbf070177223ed7ce374 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.index','data' => ['customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
||||
['code', 'NOTIN', ['organization_id']],
|
||||
'entity_type' => 'persons',
|
||||
]),'customValidations' => [
|
||||
'name' => [
|
||||
'min:2',
|
||||
'max:100',
|
||||
],
|
||||
'job_title' => [
|
||||
'max:100',
|
||||
],
|
||||
]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('admin::attributes'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
||||
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['custom-attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
||||
['code', 'NOTIN', ['organization_id']],
|
||||
'entity_type' => 'persons',
|
||||
])),'custom-validations' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
|
||||
'name' => [
|
||||
'min:2',
|
||||
'max:100',
|
||||
],
|
||||
'job_title' => [
|
||||
'max:100',
|
||||
],
|
||||
])]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal454997736aeabbf070177223ed7ce374)): ?>
|
||||
<?php $attributes = $__attributesOriginal454997736aeabbf070177223ed7ce374; ?>
|
||||
<?php unset($__attributesOriginal454997736aeabbf070177223ed7ce374); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal454997736aeabbf070177223ed7ce374)): ?>
|
||||
<?php $component = $__componentOriginal454997736aeabbf070177223ed7ce374; ?>
|
||||
<?php unset($__componentOriginal454997736aeabbf070177223ed7ce374); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<v-organization></v-organization>
|
||||
|
||||
<?php echo view_render_event('admin.persons.create.form_controls.after'); ?>
|
||||
|
||||
</div>
|
||||
</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.persons.create.form.after'); ?>
|
||||
|
||||
|
||||
<?php if (! $__env->hasRenderedOnce('c1883912-f03d-4f17-9897-888de4ff14a5')): $__env->markAsRenderedOnce('c1883912-f03d-4f17-9897-888de4ff14a5');
|
||||
$__env->startPush('scripts'); ?>
|
||||
<script
|
||||
type="text/x-template"
|
||||
id="v-organization-template"
|
||||
>
|
||||
<div>
|
||||
<?php if (isset($component)) { $__componentOriginal454997736aeabbf070177223ed7ce374 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal454997736aeabbf070177223ed7ce374 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'admin::components.attributes.index','data' => ['customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
||||
['code', 'IN', ['organization_id']],
|
||||
'entity_type' => 'persons',
|
||||
])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
||||
<?php $component->withName('admin::attributes'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
||||
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['custom-attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([
|
||||
['code', 'IN', ['organization_id']],
|
||||
'entity_type' => 'persons',
|
||||
]))]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal454997736aeabbf070177223ed7ce374)): ?>
|
||||
<?php $attributes = $__attributesOriginal454997736aeabbf070177223ed7ce374; ?>
|
||||
<?php unset($__attributesOriginal454997736aeabbf070177223ed7ce374); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal454997736aeabbf070177223ed7ce374)): ?>
|
||||
<?php $component = $__componentOriginal454997736aeabbf070177223ed7ce374; ?>
|
||||
<?php unset($__componentOriginal454997736aeabbf070177223ed7ce374); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<template v-if="organizationName">
|
||||
<?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' => 'hidden','name' => 'organization_name','vModel' => 'organizationName']] + (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' => 'hidden','name' => 'organization_name','v-model' => 'organizationName']); ?>
|
||||
<?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; ?>
|
||||
</template>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="module">
|
||||
app.component('v-organization', {
|
||||
template: '#v-organization-template',
|
||||
|
||||
data() {
|
||||
return {
|
||||
organizationName: null,
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleLookupAdded(event) {
|
||||
this.organizationName = event?.name || null;
|
||||
},
|
||||
},
|
||||
});
|
||||
</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/contacts/persons/create.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user