%PDF- %PDF-
Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/ |
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/ac29aad80d3d92cc080ec92b2354ff0f30d92e72.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startPush('styles'); ?> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.17/css/intlTelInput.css" /> <style> label[for="all_checked"]::before{ border-color: #ffffff !important; } .table:not(.table-dark) thead th, .table:not(.table-dark) tfoot th, .table:not(.table-dark) td, .table:not(.table-dark) th { padding: 0.3em 1em !important; } .table thead th { vertical-align: middle !important; } .filter-row-bg{ background: #0c2e66d1; } td input, td select { height: 24px; padding: 3px 5px; border: 0; width: 100% } input:focus, select:focus{ outline: none; } ul{ list-style: none; } .col-form-label{ font-size: 12px !important; } .text-sm{ font-size: 14px !important; } .contact-ul li{ margin-bottom: 5px; } .v-scroll { width: 100%; max-height: 350px; height: 350px; overflow-y: auto; } .comment-form textarea{ height: 40px; width: 100%; border: 1px solid #ddd; overflow: hidden; } textarea:focus{ outline: none; } .comment-form button { border: 0; width: 40px; color: #fff; height: 40px; text-align: center; } input[type="tel"] { height: 32px; width: 100%; border: 1px solid #dddddd !important; border-radius: 2px; } .iti.iti--allow-dropdown { width: 100%; } tbody tr td a{ min-height: 30px; display: block; line-height: 30px; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <?php if(in_array(Auth::user()->role->slug,['super-admin','admin'])): ?> <form action="<?php echo e(isset($edit) ? route(routeName().'.fresh-lead.update', $edit->id) : route(routeName().'.fresh-lead.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <?php if(isset($edit)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="text-left"> <button class="btn btn-sm btn-primary" type="submit"><i class="fas fa-plus fa-sm"></i> <?php if(isset($edit)): ?> Update Lead <?php else: ?> Save <?php endif; ?> </button> </div> <div class="border rounded p-2 mt-3"> <div class="row"> <div class="col-md-4"> <div class="card"> <div class="card-body"> <div class="agent-box"> <div class="agent-profile d-flex align-items-center"> <img class="rounded-circle" src="https://placehold.co/50x50" alt=""> <div class="agent-content ml-2"> <strong class="d-block text-primary"><?php echo e($edit->name ?? 'N/A'); ?></strong> <span class="d-block text-primary"><?php echo e($edit->reference_id ?? 'N/A'); ?></span> </div> </div> <ul class="m-0 p-0 contact-ul mt-3"> <li><i class="fas fa-phone"></i> <?php echo e($edit->phone ?? 'N/A'); ?></li> <li><i class="fas fa-phone"></i> <?php echo e($edit->number_1 ?? 'N/A'); ?></li> <li><i class="fas fa-envelope"></i> <?php echo e($edit->email ?? 'N/A'); ?></li> </ul> </div> <div class="agent-field mt-4"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'agent','labelName' => 'Agent','error' => 'agent']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'agent','labelName' => 'Agent','error' => 'agent']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($agent->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->agent_id == $agent->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($agent->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if(isset($edit)): ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.inputbox','data' => ['name' => 'ref','disabled' => true,'labelName' => 'Reference','value' => ''.e($edit->reference_id ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.inputbox'); ?> <?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' => 'ref','disabled' => true,'labelName' => 'Reference','value' => ''.e($edit->reference_id ?? '').'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.inputbox','data' => ['name' => 'enquiry_date','disabled' => true,'value' => ''.e(isset($edit) ? date_formats($edit->enquiry_date,'Y-m-d H:i a') : '').'','labelName' => 'Enquiry Date']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.inputbox'); ?> <?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' => 'enquiry_date','disabled' => true,'value' => ''.e(isset($edit) ? date_formats($edit->enquiry_date,'Y-m-d H:i a') : '').'','labelName' => 'Enquiry Date']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.inputbox','data' => ['name' => 'created_by','disabled' => true,'labelName' => 'Created By','value' => ''.e($edit->createdBy->name ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.inputbox'); ?> <?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' => 'created_by','disabled' => true,'labelName' => 'Created By','value' => ''.e($edit->createdBy->name ?? '').'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'lead_type','labelName' => 'Lead Type']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'lead_type','labelName' => 'Lead Type']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $leadTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leadType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($leadType->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->lead_type_id == $leadType->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($leadType->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'status','onchange' => 'select_status(this.value)','labelName' => 'Status','error' => 'status']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'status','onchange' => 'select_status(this.value)','labelName' => 'Status','error' => 'status']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $statuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($status->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->status_id == $status->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($status->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'sub_status','labelName' => 'Sub Status','error' => 'sub_status']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'sub_status','labelName' => 'Sub Status','error' => 'sub_status']); ?> <option value="">-- Select --</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'hot_link','labelName' => 'Hot Link']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'hot_link','labelName' => 'Hot Link']); ?> <option value="">-- Select --</option> <option value="1" <?php if(isset($edit)): ?> <?php echo e($edit->hot_link == 1 ? 'selected' : ''); ?> <?php endif; ?>>Yes</option> <option value="2" <?php if(isset($edit)): ?> <?php echo e($edit->hot_link == 2 ? 'selected' : ''); ?> <?php endif; ?>>No</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> </div> </div> <div class="col-md-4"> <div id="accordion"> <div class="border mb-2 bg-light"> <div class="" id="property-head2"> <h5 class="mb-0"> <button type="button" class="btn btn-sm w-100 text-sm text-left shadow-none collapsed" data-toggle="collapse" data-target="#property2" aria-expanded="false" aria-controls="property2"> Client Details </button> </h5> </div> <div id="property2" class="collapse show px-2" aria-labelledby="property-head2" data-parent="#accordion"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.inputbox','data' => ['name' => 'name','labelName' => 'Name','value' => ''.e($edit->name ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.inputbox'); ?> <?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' => 'name','labelName' => 'Name','value' => ''.e($edit->name ?? '').'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.inputbox','data' => ['type' => 'email','name' => 'email','labelName' => 'Email','value' => ''.e($edit->email ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.inputbox'); ?> <?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' => 'email','name' => 'email','labelName' => 'Email','value' => ''.e($edit->email ?? '').'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="form-group row"> <label for="" class="col-md-4 col-4 col-form-label">Phone</label> <div class="col-md-8 col-8"> <input id="phone_number" type="tel" placeholder="Phone Number" value="<?php echo e($edit->phone ?? ''); ?>"> <input id="phone_dialing" type="hidden"> <input id="phone" name="phone" type="hidden" value="<?php echo e($edit->phone ?? ''); ?>"> <input type="hidden" id="phone_country_code" name="phone_country_code" value="<?php echo e($edit->phone_country ?? 'ae'); ?>"> </div> </div> <div class="form-group row"> <label for="" class="col-md-4 col-4 col-form-label">Number1</label> <div class="col-md-8 col-8"> <input id="number1" type="tel" placeholder="Number1" value="<?php echo e($edit->number_1 ?? ''); ?>" > <input id="number1_dialing" type="hidden"> <input name="number1" type="hidden" value="<?php echo e($edit->number_1 ?? ''); ?>"> <input type="hidden" id="number1_country_code" name="number1_country_code" value="<?php echo e($edit->number_1_country ?? 'ae'); ?>"> <?php $__errorArgs = ['number1']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="d-block text-danger"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group row"> <label for="" class="col-md-4 col-4 col-form-label">Number2</label> <div class="col-md-8 col-8"> <input id="number2" type="tel" placeholder="Number2" value="<?php echo e($edit->number_2 ?? ''); ?>"> <input id="number2_dialing" type="hidden"> <input name="number2" type="hidden" value="<?php echo e($edit->number_2 ?? ''); ?>"> <input type="hidden" id="number2_country_code" name="number2_country_code" value="<?php echo e($edit->number_1_country ?? 'ae'); ?>"> </div> </div> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'country','labelName' => 'Country']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'country','labelName' => 'Country']); ?> <option value="">-- Select --</option> <?php echo $__env->make('layouts.include.country', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'potential','labelName' => 'Potential']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'potential','labelName' => 'Potential']); ?> <option value="">-- Select --</option> <?php $__currentLoopData = POTENTIAL; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->potential == $key ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> <div class="border bg-light"> <div class="" id="property-head1"> <h5 class="mb-0"> <button type="button" class="btn btn-sm w-100 text-sm text-left shadow-none collapsed" data-toggle="collapse" data-target="#property1" aria-expanded="false" aria-controls="property1"> Property Details </button> </h5> </div> <div id="property1" class="collapse show px-2" aria-labelledby="property-head1" data-parent="#accordion"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'category','labelName' => 'Category']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'category','labelName' => 'Category']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($category->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->category_id == $category->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'campaign','labelName' => 'Campaign','error' => 'campaign']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'campaign','labelName' => 'Campaign','error' => 'campaign']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $campaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($campaign->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->campaign_id == $campaign->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($campaign->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'emirate','labelName' => 'Emirate']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'emirate','labelName' => 'Emirate']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $emirates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emirate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($emirate->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->emirate_id == $emirate->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($emirate->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'channel','labelName' => 'Channel']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'channel','labelName' => 'Channel']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $channels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $channel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($channel->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->channel_id == $channel->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($channel->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'source','labelName' => 'Source']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'source','labelName' => 'Source']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $sources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $source): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($source->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->marketing_source_id == $source->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($source->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'location','onchange' => 'subLocation(this.value)','labelName' => 'Location']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'location','onchange' => 'subLocation(this.value)','labelName' => 'Location']); ?> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($location->id); ?>" <?php if(isset($edit)): ?> <?php echo e($edit->location_id == $location->id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($location->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.vertical.selectbox','data' => ['name' => 'sub_location','labelName' => 'Sub-Location']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.vertical.selectbox'); ?> <?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' => 'sub_location','labelName' => 'Sub-Location']); ?> <option value="">-- Select --</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> </div> </div> <div class="col-md-4"> <div class="card"> <div class="card-body"> <div class="v-scroll"> </div> <?php if(isset($edit)): ?> <div class="comment-form d-flex mt-2"> <textarea rows="3" type="text" name="comment" class="px-2" placeholder="Write comment.."></textarea> <input type="hidden" value="<?php echo e($edit->id); ?>" name="calling_id"> <button class="comment-submit bg-primary" type="button"><i class="far fa-paper-plane"></i></button> </div> <?php endif; ?> </div> </div> </div> </div> </div> </form> <?php endif; ?> <div class="row mt-3"> <div class="col-12"> <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.fresh-lead.bulk-operation')): ?> <div id="bulk-card" class="d-none"> <form method="POST" id="bulk-form"> <?php echo csrf_field(); ?> <div class="d-flex align-items-center mb-3"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'operation','divClass' => 'mb-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?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' => 'operation','divClass' => 'mb-0']); ?> <option value="">-- Select --</option> <option value="delete">Delete</option> <option value="mtlp">Move to Lead Pool</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="bulk-apply"> <button class="btn btn-md btn-primary rounded-0 ml-2 px-3">Apply</button> </div> </div> </form> </div> <?php endif; ?> <div class="card"> <div class="card-body px-0"> <div class="table-responsive"> <table class="table table-sm table-bordered table-hover table-style" id="fresh-datatables"> <thead> <tr class="filter-row-bg text-light"> <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.fresh-lead.bulk-operation')): ?> <td></td> <?php endif; ?> <td> <input type="text" name="filter_reference_id"> </td> <td> <select name="filter_campaign"> <option value="">-- Select --</option> <?php $__currentLoopData = $campaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($campaign->id); ?>"><?php echo e($campaign->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </td> <td> <input type="input" placeholder="YY-MM-DD" autocomplete="off" id="date_range"> <input type="hidden" name="start_date"> <input type="hidden" name="end_date"> </td> <td> <select name="filter_agent"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($agent->id); ?>"><?php echo e($agent->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <input type="text" name="filter_name"> </td> <?php if(Auth::user()->role->slug != 'manager'): ?> <td> <input type="email" name="filter_email"> </td> <td> <input type="text" name="filter_phone"> </td> <td> <input type="text" name="filter_number1"> </td> <td> <input type="text" name="filter_number2"> </td> <?php endif; ?> <td> <select name="filter_lead_type"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $leadTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leadType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($leadType->id); ?>"><?php echo e($leadType->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_hot_link"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = HOT_LINK; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_status" onchange="filterSubStatus(this.value)"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $statuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($status->id); ?>"><?php echo e($status->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_sub_status"> <option value="">-- Select --</option> </select> </td> <td> <select name="filter_category"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_channel"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $channels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $channel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($channel->id); ?>"><?php echo e($channel->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_emirate"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $emirates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emirate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($emirate->id); ?>"><?php echo e($emirate->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_source"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $sources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $source): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($source->id); ?>"><?php echo e($source->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_location" onchange="filterSubLocation(this.value)"> <option value="">-- Select --</option> <?php $__empty_1 = true; $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($location->id); ?>"><?php echo e($location->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </td> <td> <select name="filter_sub_location"> <option value="">-- Select --</option> </select> </td> <td> <select name="filter_potential"> <option value="">-- Select --</option> <?php $__currentLoopData = POTENTIAL; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </td> <td></td> </tr> <tr class="bg-primary text-light"> <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.fresh-lead.bulk-operation')): ?> <th> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="all_checked"> <label class="custom-control-label" for="all_checked"></label> </div> </th> <?php endif; ?> <th style="min-width: 90px">Ref</th> <th style="min-width: 130px">Campaign Name</th> <th style="min-width: 150px">Date</th> <th style="min-width: 100px">Agent</th> <th style="min-width: 130px">Name</th> <?php if(Auth::user()->role->slug != 'manager'): ?> <th style="min-width: 150px">Email</th> <th style="min-width: 100px">Phone</th> <th style="min-width: 100px">Number 1</th> <th style="min-width: 100px">Number 2</th> <?php endif; ?> <th style="min-width: 120px">Lead Type</th> <th style="min-width: 120px">Hot Link</th> <th style="min-width: 120px">Status</th> <th style="min-width: 140px">Sub Status</th> <th style="min-width: 140px">Category</th> <th style="min-width: 140px">Channel</th> <th style="min-width: 140px">Emirate</th> <th style="min-width: 140px">Source</th> <th style="min-width: 140px">Location</th> <th style="min-width: 140px">Sub Location</th> <th style="min-width: 120px">Potential</th> <th class="text-right" style="min-width: 60px">Action</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> </div> <?php echo $__env->make('backend.modal.import', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('backend.modal.calling-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.17/js/intlTelInput.min.js"></script> <script> var calling_id = $('input[name="calling_id"]').val(); table = $('#fresh-datatables').DataTable({ processing: true, serverSide: true, order: [], //Initial no order bInfo: true, //TO show the total number of data bFilter: false, //For datatable default search box show/hide responsive: false, ordering: false, lengthMenu: [ [5, 10, 15, 25, 50, 100, 1000, 10000, -1], [5, 10, 15, 25, 50, 100, 1000, 10000, "All"] ], pageLength: 10, //number of data show per page ajax: { url: "<?php echo e(route(routeName().'.fresh-lead.index')); ?>", type: "GET", dataType: "JSON", data: function(d) { d._token = _token; d.reference = $('input[name="filter_reference_id"]').val(); d.campaign = $('select[name="filter_campaign"]').val(); d.start_date = $('input[name="start_date"]').val(); d.end_date = $('input[name="end_date"]').val(); d.agent = $('select[name="filter_agent"]').val(); d.name = $('input[name="filter_name"]').val(); d.email = $('input[name="filter_email"]').val(); d.phone = $('input[name="filter_phone"]').val(); d.number1 = $('input[name="filter_number1"]').val(); d.number2 = $('input[name="filter_number2"]').val(); d.lead_type = $('select[name="filter_lead_type"]').val(); d.hot_link = $('select[name="filter_hot_link"]').val(); d.status = $('select[name="filter_status"]').val(); d.sub_status = $('select[name="filter_sub_status"]').val(); d.category = $('select[name="filter_category"]').val(); d.channel = $('select[name="filter_channel"]').val(); d.emirate = $('select[name="filter_emirate"]').val(); d.source = $('select[name="filter_source"]').val(); d.location = $('select[name="filter_location"]').val(); d.sub_location = $('select[name="filter_sub_location"]').val(); d.potential = $('select[name="filter_potential"]').val(); }, }, columns: [ <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.fresh-lead.bulk-operation')): ?> {data: 'bulk_check',orderable: false, searchable: true}, <?php endif; ?> {data: 'reference_id'}, {data: 'campaign_name'}, {data: 'enquiry_date'}, {data: 'agent'}, {data: 'name'}, <?php if(Auth::user()->role->slug != 'manager'): ?> {data: 'email'}, {data: 'phone'}, {data: 'number_1'}, {data: 'number_2'}, <?php endif; ?> {data: 'lead_type'}, {data: 'hot_link'}, {data: 'status'}, {data: 'sub_status'}, {data: 'category'}, {data: 'channel'}, {data: 'emirate'}, {data: 'source'}, {data: 'location'}, {data: 'sub_location'}, {data: 'potential'}, {data: 'action', orderable: false, searchable: false}, ], language: { processing: '<img src="<?php echo e(asset("uploads/images/table-loading.svg")); ?>">', emptyTable: '<strong class="text-danger">No Data Found</strong>', infoEmpty: '', zeroRecords: '<strong class="text-danger">No Data Found</strong>', oPaginate: { sPrevious: "Previous", // This is the link to the previous page sNext: "Next", // This is the link to the next page }, lengthMenu: "_MENU_" }, dom: "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6' <'float-right pr-15'B>>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'<'float-right pr-15'p>>>", buttons: { buttons: [ { extend: 'excel', filename: 'fresh_leads<?php echo e(date("d_m_d")); ?>', title: 'Fresh Leads', className: 'excelButton btn btn-sm btn-primary', exportOptions: { columns: function (index, data, node) { return table.column(index).visible(); } }, }, { extend: 'csv', filename: 'fresh_leads<?php echo e(date("d_m_d")); ?>', title: 'Fresh Leads', className: 'csvButton btn btn-sm btn-primary', exportOptions: { columns: function (index, data, node) { return table.column(index).visible(); } }, } ] } }); $(document).on('click', 'button.comment-submit', function(){ var comment = $('textarea[name="comment"]').val(); var calling_id = $('input[name="calling_id"]').val(); if (comment != '') { $.ajax({ url: '<?php echo e(route(routeName().".comments.store")); ?>', type: 'POST', data:{_token:_token,calling_id:calling_id,comment:comment}, dataType: 'JSON', success: function(response){ if (response.status == 'success') { $('textarea[name="comment"]').val(''); leadComment(); }else{ flashMessage(response.status,response.message); } }, error: function(error){ console.log(error); } }); }else{ flashMessage('error','Comment field is required.'); } }); $(document).on('keyup keypress', 'textarea[name="comment"]', function(){ leadComment(); }); function leadComment(){ $.ajax({ url: '<?php echo e(route(routeName().".comments.get")); ?>', type: 'POST', data:{_token:_token,calling_id:calling_id}, dataType: 'JSON', success: function(response){ $('.v-scroll').html(''); if (response) { $('.v-scroll').html(response); }else{ } }, error: function(error){ console.log(error); } }); } leadComment(); $(document).on('keyup keypress', '.filter-row-bg td input', function(){ table.ajax.reload(); }); $(document).on('change', '.filter-row-bg td select', function(){ table.ajax.reload(); }); // deletable btn $(document).on('click', 'button.confirm-deletable-action', function(){ // modal data let data_id = $('#deletable-modal input.datatable').val(); const url = "<?php echo e(route(routeName().'.fresh-lead.destroy')); ?>"; deletable_action(data_id,url); // define function }); <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.fresh-lead.bulk-operation')): ?> // user bulk operation $(document).on('click', 'button.bulk-deletable-action', function(){ var data_id = $('#deletable-modal input.datatable').val(); var operation_type = $('#deletable-modal .modal-body input.operation-type').val(); const url = "<?php echo e(route(routeName().'.fresh-lead.bulk-operation')); ?>"; var assign_user = $('#deletable-modal .modal-body input.manager-select').val(); bulk_deletable_action(data_id,operation_type,assign_user,url); }); <?php endif; ?> // operation assign manager $(document).on('change','select[name="operation"]', function(){ let selected_value = $(this).val(); if (selected_value == 'assign') { $('.manager-list').removeClass('d-none'); }else{ $('.manager-list').addClass('d-none'); } }); // datepicker $('input#date_range').daterangepicker({ opens: 'right', autoUpdateInput: false, locale: { cancelLabel: 'Clear' }, ranges: { 'Today' : [moment(), moment()], 'Last 7 Days' : [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month' : [moment().startOf('month'), moment().endOf('month')], 'Last Month' : [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')], } }, function(start, end, label) { $('input[name="start_date"]').val(start.format('YYYY-MM-DD')); $('input[name="end_date"]').val(end.format('YYYY-MM-DD')); }); $('input#date_range').on('apply.daterangepicker', function(ev, picker) { $(this).val(picker.startDate.format('YYYY-MM-DD') + ' - ' + picker.endDate.format('YYYY-MM-DD')); table.ajax.reload(); }); $('input#date_range').on('cancel.daterangepicker', function(ev, picker) { $(this).val(''); $('input[name="start_date"]').val(''); $('input[name="end_date"]').val(''); table.ajax.reload(); }); // sub status get function select_status(status){ $.ajax({ type: "POST", url: "<?php echo e(route(routeName().'.callings.status.get-data')); ?>", data: {_token:_token,status:status}, dataType: "JSON", success: function (response) { $('select[name="sub_status"]').html(''); if (response) { $('select[name="sub_status"]').html(response); } } }); } // filter sub status get function filterSubStatus(status){ $.ajax({ type: "POST", url: "<?php echo e(route(routeName().'.callings.status.get-data')); ?>", data: {_token:_token,status:status}, dataType: "JSON", success: function (response) { $('select[name="filter_sub_status"]').html(''); if (response) { $('select[name="filter_sub_status"]').html(response); } } }); } <?php if(isset($edit)): ?> // sub status selected function statusSelected(){ $.ajax({ url: "<?php echo e(route(routeName().'.fresh-lead.sub-status.selected')); ?>", type: "POST", data: {_token:_token,data_id:<?php echo e($edit->id); ?>,status_id:<?php echo e($edit->status_id); ?>}, dataType: "JSON", success: function (response) { if (response) { $('select[name="sub_status"]').html(response); } } }); } statusSelected(); // sub location selected function subLocationSelected(){ $.ajax({ url: "<?php echo e(route(routeName().'.fresh-lead.sub-location.selected')); ?>", type: "POST", data: {_token:_token,data_id:<?php echo e($edit->id); ?>,location_id:<?php echo e($edit->location_id); ?>}, dataType: "JSON", success: function (response) { if (response) { $('select[name="sub_location"]').html(response); } } }); } subLocationSelected(); <?php endif; ?> // sub location get function subLocation(location_id){ $.ajax({ type: "POST", url: "<?php echo e(route(routeName().'.locations.sub-location.get')); ?>", data: {_token:_token,location:location_id}, dataType: "JSON", success: function (response) { $('select[name="sub_location"]').html(''); if (response) { $('select[name="sub_location"]').html(response); } } }); } // filter sub location get function filterSubLocation(location_id){ $.ajax({ type: "POST", url: "<?php echo e(route(routeName().'.locations.sub-location.get')); ?>", data: {_token:_token,location:location_id}, dataType: "JSON", success: function (response) { $('select[name="filter_sub_location"]').html(''); if (response) { $('select[name="filter_sub_location"]').html(response); } } }); } var phone_number = document.querySelector("#phone_number"); window.intlTelInput(phone_number,({ separateDialCode: true, initialCountry: 'ae' })); $('.iti__flag-container').click(function() { var pCountryCode = $(this).children('.iti__selected-flag').attr('title'); var pCountryCode = pCountryCode.replace(/[^0-9]/g,'') var pCountryName = $(this).children('.iti__selected-flag').attr('aria-activedescendant'); var pCountryArray = pCountryName.split('-'); $('input#phone_country_code').val(""); $('input#phone_dialing').val(''); $('#phone_number').val('') $('input#phone_number').val($('#phone_number').val()); $('input#phone_dialing').val(pCountryCode); $('input#phone_country_code').val(pCountryArray[2]); }); $('input#phone_dialing').val('971'); $(document).on('keyup keypress', 'input#phone_number', function(){ let code = $('input#phone_dialing').val(); let phone = $(this).val(); $('input#phone').val('+'+code+phone); }); // number1 var number1 = document.querySelector("#number1"); window.intlTelInput(number1,({ separateDialCode: true, initialCountry: 'ae' })); $('.iti__flag-container').click(function() { var n1CountryCode = $(this).children('.iti__selected-flag').attr('title'); var n1CountryCode = n1CountryCode.replace(/[^0-9]/g,'') var n1CountryName = $(this).children('.iti__selected-flag').attr('aria-activedescendant'); var n1CountryArray = n1CountryName.split('-'); $('input#number1_country_code').val(""); $('input#number1_dialing').val(''); $('#number1').val('') $('input#number1').val($('#number1').val()); $('input#number1_dialing').val(n1CountryCode); $('input#number1_country_code').val(n1CountryArray[2]); }); $('input#number1_dialing').val('971'); $(document).on('keyup keypress', 'input#number1', function(){ let number1_code = $('input#number1_dialing').val(); let number1 = $(this).val(); $('input[name="number1"]').val('+'+number1_code+number1); }); // number2 var number2 = document.querySelector("#number2"); window.intlTelInput(number2,({ separateDialCode: true, initialCountry: 'ae' })); $('.iti__flag-container').click(function() { var n2CountryCode = $(this).children('.iti__selected-flag').attr('title'); var n2CountryCode = n2CountryCode.replace(/[^0-9]/g,'') var n2CountryName = $(this).children('.iti__selected-flag').attr('aria-activedescendant'); var n2CountryArray = n2CountryName.split('-'); $('input#number2_country_code').val(""); $('input#number2_dialing').val(''); $('input#number2').val('') $('input#number2').val($('input#number2').val()); $('input#number2_dialing').val(n2CountryCode); $('input#number2_country_code').val(n2CountryArray[2]); }); $('input#number2_dialing').val('971'); $(document).on('keyup keypress', 'input#number2', function(){ let number2_code = $('input#number2_dialing').val(); let number2 = $(this).val(); $('input[name="number2"]').val('+'+number2_code+number2); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/crm-dub-code/resources/views/backend/modules/fresh/create.blade.php ENDPATH**/ ?>