Viewing file: 455194d177ea630ac982ae97f009d093.php (24.9 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', __('step3')); ?>
<?php $__env->startSection('post-ad-content'); ?> <div x-data="{ whatsapp: false }"> <form action="<?php echo e(route('frontend.post.step3.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="sm:p-8 p-4 flex flex-col gap-8"> <div class="flex flex-col gap-4"> <div> <div class="w-full flex flex-wrap gap-4 justify-between items-center mb-1.5"> <div> <label for="phone" class="tc-label mb-0"> <?php echo e(__('phone_number')); ?>
<span class="text-red-600">*</span> </label> </div> <div> <div class="tc-checkbox"> <input @change="whatsapp = !whatsapp" type="checkbox" name="" id="whatsapp"> <label for="whatsapp"> <?php echo e(__('i_have_different_phone_number_for_whatsapp')); ?>
</label> </div> </div> </div> <div> <input required type="text" placeholder="<?php echo e(__('phone')); ?>" class="tc-input <?php $__errorArgs = ['phone']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <?php echo twMerge('focus:border-red-500 hover:border-red-500 border-red-500'); ?> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" name="phone" value="<?php echo e(old('phone', $ad?->phone)); ?>" id="phone">
<?php $__errorArgs = ['phone']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div x-show="whatsapp" x-cloak> <?php if (isset($component)) { $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.flabel','data' => ['name' => 'whatsapp_number','for' => 'whatsapp_number']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.flabel'); ?> <?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' => 'whatsapp_number','for' => 'whatsapp_number']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $attributes = $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <?php if (isset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $component = $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <input type="text" placeholder="<?php echo e(__('whatsapp_number')); ?>" class="tc-input" :name="whatsapp ? 'whatsapp' : ''" value="<?php echo e(old('whatsapp', $ad?->whatsapp)); ?>"> </div> <div> <label for="email" class="tc-label"><?php echo e(__('email_address')); ?></label> <input type="email" name="email" id="email" class="tc-input" value="<?php echo e(old('email', $ad?->email ?? auth()->user()->email)); ?>" placeholder="<?php echo e(__('email_address')); ?>"> </div> </div>
<!--Promotions Selecting Option --> <div class="promotions-wrapper">
<div class="flex items-center mb-2"> <h6 class="heading-06"><?php echo e(__('promote_listing')); ?></h6> <p class="text-sm"> (<a href="<?php echo e(route('frontend.promotions')); ?>" class="pl-1 underline text-blue-500" target="_blank"><?php echo e(__('know_more_about_promotion')); ?></a>): </p> </div>
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="featured" type="hidden" value="0"> <?php if($user_plan_data->featured_limit > 0): ?> <label for="featured" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if(old('featured', $ad?->featured ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/featured-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('featured_listing')); ?></h3> <p class="leading-6"> <?php echo e(__('select_this_promotion_to_make_listing_featured')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->featured_duration < 1 ? __('lifetime') : $plan->featured_duration); ?>
<?php if($plan->featured_duration == 1): ?> <?php echo e(__('day')); ?>. <?php else: ?> <?php echo e(__('days')); ?>. <?php endif; ?> </p> <p class="leading-6"><?php echo e($user_plan_data->featured_limit); ?> <?php echo e(__('featured_listing')); ?> <?php echo e(__('remaining')); ?>.</p> </div> </div> </label> <?php else: ?> <label for="featured" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('featured', $ad?->featured ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/featured-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('featured_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('featured_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_featured')); ?>.</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="urgent" type="hidden" value="0"> <?php if($user_plan_data->urgent_limit > 0): ?> <label for="urgent" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if(old('urgent', $ad?->urgent ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="urgent" id="urgent" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/urgent-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('urgent_listing')); ?></h3> <p class="leading-6""><?php echo e(__('select_this_promotion_to_make_listing_urgent')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->urgent_duration < 1 ? __('lifetime') : $plan->urgent_duration); ?>
<?php if($plan->urgent_duration == 1): ?> <?php echo e(__('day')); ?>. <?php else: ?> <?php echo e(__('days')); ?>. <?php endif; ?> </p> <p class="leading-6"><?php echo e($user_plan_data->urgent_limit); ?> <?php echo e(__('urgent_listing')); ?> <?php echo e(__('remaining')); ?>.</p> </div> </div> </label> <?php else: ?> <label for="urgent" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('urgent', $ad?->urgent ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="urgent" id="urgent" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/urgent-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('urgent_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('urgent_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_urgent')); ?>.</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="highlight" type="hidden" value="0"> <?php if($user_plan_data->highlight_limit > 0): ?> <label for="highlight" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if(old('highlight', $ad?->highlight ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="highlight" id="highlight" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/highlight-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('highlight_listing')); ?></h3> <p class="leading-6"> <?php echo e(__('select_this_promotion_to_make_listing_highlight')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->highlight_duration < 1 ? __('lifetime') : $plan->highlight_duration); ?>
<?php if($plan->highlight_duration == 1): ?> <?php echo e(__('day')); ?>. <?php else: ?> <?php echo e(__('days')); ?>. <?php endif; ?> </p> <p class="leading-6"><?php echo e($user_plan_data->highlight_limit); ?> <?php echo e(__('highlight_listing')); ?> <?php echo e(__('remaining')); ?>.</p> </div> </div> </label> <?php else: ?> <label for="highlight" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('highlight', $ad?->highlight ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/highlight-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('highlight_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('highlight_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_highlight')); ?>.</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="top" type="hidden" value="0"> <?php if($user_plan_data->top_limit > 0): ?> <label for="top" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if(old('top', $ad?->top ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="top" id="top" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/top-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('top_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_top')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->top_duration < 1 ? __('lifetime') : $plan->top_duration); ?>
<?php if($plan->top_duration == 1): ?> <?php echo e(__('day')); ?>. <?php else: ?> <?php echo e(__('days')); ?>. <?php endif; ?> </p> <p class="leading-6"><?php echo e($user_plan_data->top_limit); ?> <?php echo e(__('top_listing')); ?> <?php echo e(__('remaining')); ?>.</p> </div> </div> </label> <?php else: ?> <label for="top" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('top', $ad?->top ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="top" id="top" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/top-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('top_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('top_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_top')); ?>.</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="bump_up" type="hidden" value="0"> <?php if($user_plan_data->bump_up_limit > 0): ?> <label for="bump_up" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if(old('bump_up', $ad?->bump_up ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="bump_up" id="bump_up" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/bumpup-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('bump_up_listing')); ?></h3> <p class="leading-6"> <?php echo e(__('select_this_promotion_to_make_listing_bump_up')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->bump_up_duration < 1 ? __('lifetime') : $plan->bump_up_duration); ?>
<?php if($plan->bump_up_duration == 1): ?> <?php echo e(__('day')); ?>. <?php else: ?> <?php echo e(__('days')); ?>. <?php endif; ?> </p> <p class="leading-6"><?php echo e($user_plan_data->bump_up_limit); ?> <?php echo e(__('bump_up_listing')); ?> <?php echo e(__('remaining')); ?>.</p> </div> </div> </label> <?php else: ?> <label for="bump_up" class="cursor-pointer flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('bump_up', $ad?->bump_up ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="bump_up" id="bump_up" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/bumpup-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('bump_up_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('bump_up_listing')); ?></h3> <p class="leading-6"><?php echo e(__('select_this_promotion_to_make_listing_bump_up')); ?>.</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
</div> <!--Promotions Selecting Option -->
</div> <div class="post-footer"> <input type="submit" name="draft" class="btn-secondary cursor-pointer py-3 px-5" value="<?php echo e(__('save_on_draft')); ?>" /> <div> <a href="<?php echo e(route('frontend.post.step2.back')); ?>" onclick="return confirm('<?php echo e(__('are_you_sure_to_go_back')); ?>')" class="py-3 px-5"><?php echo e(__('back')); ?></a> <button type="submit" class="btn-primary py-3 px-5"><?php echo e(__('post_listing')); ?></button> </div> </form> </div> <?php $__env->stopSection(); ?>
<?php $__env->startPush('css'); ?> <style> .promote-ad { min-width: 150px; text-align: center; } .promote-ad:has(input:checked) { border-color: var(--primary-500); background: var(--primary-50); } </style> <?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.postad.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\resources\views/frontend/postad/step3.blade.php ENDPATH**/ ?>
|