File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/storage/framework/views/2be183a12b59cdd34a3ce7f45f5da43d.php
Back
<?php $__env->startSection('title', 'Rooms'); ?> <?php $__env->startSection('content'); ?> <?php if (isset($component)) { $__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b = $attributes; } ?> <?php $component = App\View\Components\ContentDiv::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('content-div'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\ContentDiv::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['heading' => 'Manage Rooms']); ?> <?php if (isset($component)) { $__componentOriginalf15f58babc161460cb960b695c603e73 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf15f58babc161460cb960b695c603e73 = $attributes; } ?> <?php $component = App\View\Components\CardElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['header' => 'Add Rooms']); ?> <?php if (isset($component)) { $__componentOriginal314d63240b25fefade26e0a3d7cb8cb9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9 = $attributes; } ?> <?php $component = App\View\Components\FormElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FormElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['method' => 'POST','enctype' => 'multipart/form-data','id' => 'submitForm','action' => 'javascript:']); ?> <?php if (isset($component)) { $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input','data' => ['type' => 'hidden','name' => 'id','id' => 'id','value' => '']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input'); ?> <?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' => 'id','id' => 'id','value' => '']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $attributes = $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $component = $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input','data' => ['type' => 'hidden','name' => 'action','id' => 'action','value' => 'insert']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input'); ?> <?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' => 'action','id' => 'action','value' => 'insert']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $attributes = $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $component = $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'title','label' => 'Room Title','placeholder' => 'Room Title','name' => 'title','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['div_id' => 'service_image_div','id' => 'service_image','label' => 'Multiple Rooms Images','type' => 'file','accept' => 'image/*','placeholder' => 'Room Images','name' => 'images[]','required' => 'true','multiple' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['div_id' => 'banner_image_div','id' => 'banner_image','label' => 'Banner Image','type' => 'file','accept' => 'image','placeholder' => 'Banner Image','name' => 'banner_image']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal450570cc6c4e74e7c828af9b649d080c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal450570cc6c4e74e7c828af9b649d080c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.select-with-label','data' => ['id' => 'category','name' => 'category','label' => 'Select Category','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('select-with-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(['id' => 'category','name' => 'category','label' => 'Select Category','required' => 'true']); ?> <?php if($category): ?> <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($item->category_name); ?>"><?php echo e($item->category_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal450570cc6c4e74e7c828af9b649d080c)): ?> <?php $attributes = $__attributesOriginal450570cc6c4e74e7c828af9b649d080c; ?> <?php unset($__attributesOriginal450570cc6c4e74e7c828af9b649d080c); ?> <?php endif; ?> <?php if (isset($__componentOriginal450570cc6c4e74e7c828af9b649d080c)): ?> <?php $component = $__componentOriginal450570cc6c4e74e7c828af9b649d080c; ?> <?php unset($__componentOriginal450570cc6c4e74e7c828af9b649d080c); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'slug','label' => 'Room Slug (Do not use special characters)','placeholder' => 'Room Slug','name' => 'slug','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal18161117c06f3e17ec26fb8524374b15 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18161117c06f3e17ec26fb8524374b15 = $attributes; } ?> <?php $component = App\View\Components\TextAreaWithLabel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-area-with-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\TextAreaWithLabel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['div_class' => 'col-md-12 col-sm-12 mb-3','id' => 'service_details','placeholder' => 'Room Details','label' => 'Room Details','name' => 'details']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $attributes = $__attributesOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__attributesOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($__componentOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $component = $__componentOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__componentOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal18161117c06f3e17ec26fb8524374b15 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18161117c06f3e17ec26fb8524374b15 = $attributes; } ?> <?php $component = App\View\Components\TextAreaWithLabel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-area-with-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\TextAreaWithLabel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['div_class' => 'col-md-12 col-sm-12 mb-3','id' => 'short_description','placeholder' => 'Amenities','label' => 'Write About Amenities','name' => 'amenities']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $attributes = $__attributesOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__attributesOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($__componentOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $component = $__componentOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__componentOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal18161117c06f3e17ec26fb8524374b15 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18161117c06f3e17ec26fb8524374b15 = $attributes; } ?> <?php $component = App\View\Components\TextAreaWithLabel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-area-with-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\TextAreaWithLabel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['div_class' => 'col-md-12 col-sm-12 mb-3','id' => 'features','placeholder' => 'Features','label' => 'Write About Features','name' => 'features']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $attributes = $__attributesOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__attributesOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($__componentOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $component = $__componentOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__componentOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'size','label' => 'Room Size (in square meter)','placeholder' => 'Room Size','name' => 'size','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'video_link','label' => 'Room video Link','placeholder' => 'You tube Video Link','name' => 'video_link']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'person_allow','label' => 'Person Allow','placeholder' => 'Person Allow','name' => 'person_allow','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalaec4e6c11b019d144a9ab2982f3b684f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f = $attributes; } ?> <?php $component = App\View\Components\FormButtons::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form-buttons'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FormButtons::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($__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f)): ?> <?php $attributes = $__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f; ?> <?php unset($__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f); ?> <?php endif; ?> <?php if (isset($__componentOriginalaec4e6c11b019d144a9ab2982f3b684f)): ?> <?php $component = $__componentOriginalaec4e6c11b019d144a9ab2982f3b684f; ?> <?php unset($__componentOriginalaec4e6c11b019d144a9ab2982f3b684f); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9)): ?> <?php $attributes = $__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9; ?> <?php unset($__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9); ?> <?php endif; ?> <?php if (isset($__componentOriginal314d63240b25fefade26e0a3d7cb8cb9)): ?> <?php $component = $__componentOriginal314d63240b25fefade26e0a3d7cb8cb9; ?> <?php unset($__componentOriginal314d63240b25fefade26e0a3d7cb8cb9); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf15f58babc161460cb960b695c603e73)): ?> <?php $attributes = $__attributesOriginalf15f58babc161460cb960b695c603e73; ?> <?php unset($__attributesOriginalf15f58babc161460cb960b695c603e73); ?> <?php endif; ?> <?php if (isset($__componentOriginalf15f58babc161460cb960b695c603e73)): ?> <?php $component = $__componentOriginalf15f58babc161460cb960b695c603e73; ?> <?php unset($__componentOriginalf15f58babc161460cb960b695c603e73); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalf15f58babc161460cb960b695c603e73 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf15f58babc161460cb960b695c603e73 = $attributes; } ?> <?php $component = App\View\Components\CardElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['header' => 'Rooms Data']); ?> <?php if (isset($component)) { $__componentOriginalb539fdd4bceece4a667dd360eb69c7ae = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae = $attributes; } ?> <?php $component = App\View\Components\DataTable::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('data-table'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\DataTable::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($__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae)): ?> <?php $attributes = $__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae; ?> <?php unset($__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae); ?> <?php endif; ?> <?php if (isset($__componentOriginalb539fdd4bceece4a667dd360eb69c7ae)): ?> <?php $component = $__componentOriginalb539fdd4bceece4a667dd360eb69c7ae; ?> <?php unset($__componentOriginalb539fdd4bceece4a667dd360eb69c7ae); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf15f58babc161460cb960b695c603e73)): ?> <?php $attributes = $__attributesOriginalf15f58babc161460cb960b695c603e73; ?> <?php unset($__attributesOriginalf15f58babc161460cb960b695c603e73); ?> <?php endif; ?> <?php if (isset($__componentOriginalf15f58babc161460cb960b695c603e73)): ?> <?php $component = $__componentOriginalf15f58babc161460cb960b695c603e73; ?> <?php unset($__componentOriginalf15f58babc161460cb960b695c603e73); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b)): ?> <?php $attributes = $__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b; ?> <?php unset($__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b); ?> <?php endif; ?> <?php if (isset($__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b)): ?> <?php $component = $__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b; ?> <?php unset($__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script type="text/javascript"> $('#service_details').summernote({ placeholder: 'Rooms Details', tabsize: 2, height: 100 }); $('#features').summernote({ placeholder: 'Rooms Features', tabsize: 2, height: 100 }); $('#short_description').summernote({ placeholder: 'Room Details', tabsize: 2, height: 100 }); let site_url = '<?php echo e(url('/')); ?>'; let table = ""; $(function () { table = $('.data-table').DataTable({ processing: true, serverSide: true, "scrollX": true, ajax: { url: "<?php echo e(route('roomData')); ?>", type: 'POST', data: { '_token': '<?php echo e(csrf_token()); ?>' } }, columns: [{ data: "DT_RowIndex", orderable: false, searchable: false, title: "Sr.No." }, { data: 'action', name: 'action', orderable: false, searchable: false, title: 'Action', width: '20%' }, { data: 'title', name: 'title', title: 'Title', width: '20%' }, { data: 'banner_image', render: function (data, type, row) { let image = ''; if (data) { image = '<image class="img-thumbnail" src="' + data + '">' } return image; }, orderable: false, searchable: false, title: "Banner Image", width: '30%' }, { data: 'images', render: function (data, type, row) { let images = ''; if (data) { try { let cleanData = data.replace(/"/g, '"'); if (!cleanData.startsWith('[') || !cleanData.endsWith(']')) { cleanData = `[${cleanData}]`; } let imageArray = JSON.parse(cleanData); images += '<div style="display: flex; flex-wrap: wrap;">'; imageArray.forEach(function (image) { images += '<img class="img-thumbnail" src="' + image + '" alt="Image" style="width: 100px; margin-right: 5px; height: auto;">'; }); } catch (e) { images = '<span class="text-danger">Invalid image data</span>'; } } return images; }, orderable: false, searchable: false, title: "Room Images", }, /* { data: 'details', name: 'details', title: 'Room Details', width: '30%' }, { data: 'features', name: 'features', title: 'Features', }, { data: 'amenities', name: 'amenities', title: 'Amenities', }, */ { data: 'video_link', name: 'video_link', title: 'Video Link', }, { data: 'size', name: 'size', title: 'Size', }, { data: 'person_allow', name: 'person_allow', title: 'Person Allow', }, { data: 'category', name: 'category', title: 'Category', }, ], order: [ [1, "desc"] ] }); }); $(document).on("click", ".edit", function () { let row = $.parseJSON(atob($(this).data("row"))); // console.log('row', row); if (row['id']) { $("#service_image_old_div").remove(); $("#id").val(row['id']); $("#service_image").attr("required", false); $("#banner_image").attr("required", false); $("#title").val(row['title']); $('#slug').val(row['slug']); $("#service_image_div").parent().append(` <div class="col-md-4 col-sm-12 mb-3" id="service_image_old_div"> <label class="form-label" for="service_image_old">Current Banner Image</label> <input class="form-control" type="image" src="${row['banner_image']}" id="service_image_old" label=" Old Banner Image " > </div>`); $("#sorting_number").val(row['position']); $("#size").val(row['size']); $("#video_link").val(row['video_link']); $("#person_allow").val(row['person_allow']); $("#service_details").val(row['details']); $('#service_details').summernote('destroy'); $('#service_details').summernote({ focus: true }); $("#short_description").val(row['amenities']); $('#short_description').summernote('destroy'); $('#short_description').summernote({ focus: true }); $("#features").val(row['features']); $('#features').summernote('destroy'); $('#features').summernote({ focus: true }); $("#category").val(row['category']); $("#action").val("update"); scrollToDiv(); } else { errorMessage("Something went wrong. Code 101"); } }); function Disable(id) { changeAction(id, "disable", "This item will be disabled!", "Yes, disable it!"); } function Enable(id) { changeAction(id, "enable", "This item will be enabled!", "Yes, enable it!"); } function changeAction(id, action, text, confirmButtonText) { if (id) { Swal.fire({ title: 'Are you sure?', text: text, icon: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: confirmButtonText }).then((result) => { if (result.isConfirmed) { $.ajax({ type: 'POST', url: '<?php echo e(route('saveRoom')); ?>', data: { id: id, action: action, '_token': '<?php echo e(csrf_token()); ?>' }, success: function (response) { if (response.status) { successMessage(response.message, true); table.ajax.reload(); } else { errorMessage(response.message); } }, failure: function (response) { errorMessage(response.message); } }); } }); } else { errorMessage("Something went wrong. Code 102"); } } $(document).ready(function () { $("#submitForm").on("submit", function () { var form = new FormData(this); $.ajax({ type: 'POST', url: '<?php echo e(route('saveRoom')); ?>', data: form, cache: false, contentType: false, processData: false, success: function (response) { if (response.status) { successMessage(response.message, "reload"); } else { errorMessage(response.message); } }, failure: function (response) { errorMessage(response.message); } }); }); function formatIcon(icon) { console.log(icon); var $iconImg = $( '<span><i class="' + icon.text + '"></i>' + icon.text + '</span>' ); return $iconImg; } }); </script> <?php echo $__env->make('Dashboard.include.dataTablesScript', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.dashboardLayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/resources/views/Dashboard/Pages/manageRooms.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings