File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/storage/framework/views/6b98c020990adb0f744b060e572ab337.php
Back
<?php $__env->startSection('title', 'Manage Offer'); ?> <?php $__env->startSection('content'); ?> <?php if (isset($component)) { $__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6 = $attributes; } ?> <?php $component = App\View\Components\DashboardContainer::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dashboard-container'); ?> <?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\DashboardContainer::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['container_header' => 'Manage Offer']); ?> <?php if (isset($component)) { $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $attributes; } ?> <?php $component = App\View\Components\Card::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card'); ?> <?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\Card::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac = $attributes; } ?> <?php $component = App\View\Components\CardHeader::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-header'); ?> <?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\CardHeader::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?>Add Offer Items <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $attributes = $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $component = $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal3524d3ba9aa939234ad194e581be16a5 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3524d3ba9aa939234ad194e581be16a5 = $attributes; } ?> <?php $component = App\View\Components\CardBody::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-body'); ?> <?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\CardBody::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal18ad2e0d264f9740dc73fff715357c28 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18ad2e0d264f9740dc73fff715357c28 = $attributes; } ?> <?php $component = App\View\Components\Form::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form'); ?> <?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\Form::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?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(['type' => 'text','name' => 'title','id' => 'title','placeholder' => '','label' => '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(['type' => 'file','name' => 'image','id' => 'image','placeholder' => '','label' => 'Image','accept' => '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; ?> <div id="image_preview" class="mt-2 mb-3" style="display: none;"> <img id="preview_img" src="" alt="Preview" style="max-width: 200px; max-height: 200px;" /> </div> <?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(['type' => 'number','name' => 'price','id' => 'price','placeholder' => '','label' => 'Price','required' => 'true','step' => '0.01']); ?> <?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(['type' => 'number','name' => 'offer_price','id' => 'offer_price','placeholder' => '','label' => 'Offer Price','step' => '0.01']); ?> <?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)) { $__componentOriginal160fd7d37c53c312729a9b607ed7222b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal160fd7d37c53c312729a9b607ed7222b = $attributes; } ?> <?php $component = App\View\Components\SelectLabelGroup::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('select-label-group'); ?> <?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\SelectLabelGroup::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['required' => true,'name' => 'status','id' => 'view_status','label_text' => 'View Status']); ?> <option value="1">Visibile</option> <option value="0">Hidden</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal160fd7d37c53c312729a9b607ed7222b)): ?> <?php $attributes = $__attributesOriginal160fd7d37c53c312729a9b607ed7222b; ?> <?php unset($__attributesOriginal160fd7d37c53c312729a9b607ed7222b); ?> <?php endif; ?> <?php if (isset($__componentOriginal160fd7d37c53c312729a9b607ed7222b)): ?> <?php $component = $__componentOriginal160fd7d37c53c312729a9b607ed7222b; ?> <?php unset($__componentOriginal160fd7d37c53c312729a9b607ed7222b); ?> <?php endif; ?> <div class="form-group"> <label for="features">Features</label> <div id="features-container"> <div class="input-group mb-2 feature-row"> <input type="text" class="form-control feature-input" name="features[]" placeholder="Enter feature"> <div class="input-group-append"> <button type="button" class="btn btn-danger remove-feature" style="display: none;">Remove</button> </div> </div> </div> <button type="button" class="btn btn-primary" id="add-feature">Add Feature</button> <input type="hidden" name="features_json" id="features_json" value="[]"> </div> <?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($__attributesOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $attributes = $__attributesOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__attributesOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> <?php if (isset($__componentOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $component = $__componentOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__componentOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $attributes = $__attributesOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php if (isset($__componentOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $component = $__componentOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__componentOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $attributes = $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $component = $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $attributes; } ?> <?php $component = App\View\Components\Card::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card'); ?> <?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\Card::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac = $attributes; } ?> <?php $component = App\View\Components\CardHeader::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-header'); ?> <?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\CardHeader::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?>Offer Data <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $attributes = $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $component = $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal3524d3ba9aa939234ad194e581be16a5 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3524d3ba9aa939234ad194e581be16a5 = $attributes; } ?> <?php $component = App\View\Components\CardBody::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-body'); ?> <?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\CardBody::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?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($__attributesOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $attributes = $__attributesOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php if (isset($__componentOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $component = $__componentOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__componentOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $attributes = $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $component = $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6)): ?> <?php $attributes = $__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6; ?> <?php unset($__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6); ?> <?php endif; ?> <?php if (isset($__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6)): ?> <?php $component = $__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6; ?> <?php unset($__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script type="text/javascript"> $('#short_detail').summernote({ placeholder: 'Image Short Details', tabsize: 2, height: 100 }); let site_url = '<?php echo e(url('/')); ?>'; var table = ""; $(function() { table = $('.data-table').DataTable({ processing: true, serverSide: true, ajax: { url: "<?php echo e(route('offerData')); ?>", type: 'POST', data: { '_token': '<?php echo e(csrf_token()); ?>' } }, "scrollX": true, "order": [ [1, 'desc'] ], columns: [{ data: 'action', name: 'action', orderable: false, searchable: false, title: "Action" }, { data: 'id', name: 'id', title: "Id" }, { data: 'title', name: 'title', title: "Title" }, { data: 'price', name: 'price', title: "Price" }, { data: 'offer_price', name: 'offer_price', title: "Offer Price" }, { data: 'features', name: 'features', title: "Features" }, { data: 'image', name: 'image', title: "Image", render: function(data) { return data ? '<img src="' + data + '" height="50" />' : 'No Image'; } }, ] }); }); // Image preview functionality $(document).on('change', '#image', function() { let file = this.files[0]; if (file) { let reader = new FileReader(); reader.onload = function(e) { $('#preview_img').attr('src', e.target.result); $('#image_preview').show(); }; reader.readAsDataURL(file); } else { $('#image_preview').hide(); } }); // Features functionality $(document).ready(function() { // Add new feature field $('#add-feature').click(function() { let newFeatureRow = ` <div class="input-group mb-2 feature-row"> <input type="text" class="form-control feature-input" name="features[]" placeholder="Enter feature"> <div class="input-group-append"> <button type="button" class="btn btn-danger remove-feature">Remove</button> </div> </div> `; $('#features-container').append(newFeatureRow); updateFeaturesJson(); }); // Remove feature field $(document).on('click', '.remove-feature', function() { $(this).closest('.feature-row').remove(); updateFeaturesJson(); }); // Update features when input changes $(document).on('input', '.feature-input', function() { updateFeaturesJson(); }); // Function to update hidden JSON field function updateFeaturesJson() { let features = []; $('.feature-input').each(function() { if($(this).val().trim() !== '') { features.push($(this).val()); } }); $('#features_json').val(JSON.stringify(features)); } }); $(document).on("click", ".edit", function() { let row = $.parseJSON(atob($(this).data("row"))); if (row['id']) { $("#id").val(row['id']); $("#title").val(row['title']); $("#view_status").val(row['status']); $("#price").val(row['price']); $("#offer_price").val(row['offer_price']); $("#action").val("update"); // Clear existing feature fields except the first one $('.feature-row:not(:first)').remove(); $('.feature-input').val(''); // If features exist, populate the fields if (row['features']) { let features = []; try { features = JSON.parse(row['features']); } catch(e) { console.error("Error parsing features JSON"); } if (features.length > 0) { // Set first feature $('.feature-input:first').val(features[0]); // Add fields for remaining features for (let i = 1; i < features.length; i++) { $('#add-feature').click(); $('.feature-input:last').val(features[i]); } } // Update the hidden JSON field $('#features_json').val(row['features']); } // Show image preview if it exists if (row['image']) { $('#preview_img').attr('src', row['image']); $('#image_preview').show(); } else { $('#image_preview').hide(); } scrollToDiv(); } }); $(document).ready(function() { $("#submit_form").on("submit", function(e) { e.preventDefault(); // Update the features JSON before submission updateFeaturesJson(); var form = new FormData(this); $.ajax({ type: 'POST', url: '<?php echo e(route('saveOffer')); ?>', data: form, cache: false, contentType: false, processData: false, success: function(response) { if (response.status) { successMessage(response.message, true); table.ajax.reload(); } else { errorMessage(response.message); } }, failure: function(response) { errorMessage(response.message); } }); }); // Helper function to update features JSON function updateFeaturesJson() { let features = []; $('.feature-input').each(function() { if($(this).val().trim() !== '') { features.push($(this).val()); } }); $('#features_json').val(JSON.stringify(features)); } }); 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('saveOffer')); ?>', 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"); } } </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/manageOffers.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings