|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<div id="edit_lead_modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Edit Lead</h4>
</div>
<form method="post" action="<?php echo e(route('leads.update',Request::segment(3))); ?>">
<?php echo csrf_field(); ?>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<label>Course</label>
<select class="form-control" name="product_id" >
<option>Select Course</option>
<?php if(!$products_list->isEmpty()): ?>
<?php $__currentLoopData = $products_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $products_li): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($products_li->id); ?>" <?php echo e(($leads->products == $products_li->id)?"selected":""); ?>><?php echo e($products_li->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
</div>
<div class="col-md-6">
<label>User</label>
<select class="form-control " name="user_id" id="user_id">
<option>Select User</option>
<?php if(!$users->isEmpty()): ?>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($user->id); ?>" <?php echo e(($user->id == $leads->user_id)?"selected":""); ?>><?php echo e($user->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
<?php if($errors->has('user_id')): ?>
<div class="error">
<?php echo e($errors->first('user_id')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-6">
<label> Name</label>
<input required type="text" value="<?php echo e($leads->name); ?>" name="name" class="form-control">
</div>
<div class="col-md-6">
<label> Email </label>
<input required type="email" value="<?php echo e($leads->email); ?>" name="email" class="form-control">
</div>
<div class="col-md-2">
<label>Country Code</label>
<select class="form-control" name="phonecode">
<?php if(!$country_codes->isEmpty()): ?>
<?php $__currentLoopData = $country_codes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country_code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($country_code->phonecode); ?>" <?php echo e(($country_code->phonecode == $leads->phonecode)?"selected":""); ?>><?php echo e($country_code->phonecode); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
</div>
<div class="col-md-6">
<label> Phone </label>
<input required type="number" value="<?php echo e($leads->phone); ?>" name="mobile" class="form-control">
</div>
<div class="col-md-4">
<label> Pipeline </label>
<select class="form-control " name="pipeline_id" id="pipeline_id">
<option>Select Pipeline</option>
<?php if(!$pipelines->isEmpty()): ?>
<?php $__currentLoopData = $pipelines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pipeline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($pipeline->id); ?>" <?php echo e(($pipeline->id == $leads->pipeline_id)?"selected":""); ?>><?php echo e($pipeline->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
<?php if($errors->has('pipeline_id')): ?>
<div class="error">
<?php echo e($errors->first('pipeline_id')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-6">
<label>Stage</label>
<select class="form-control " name="stage_id" id="stage_id">
<option>Select Stage</option>
<?php if(!$lead_stage->isEmpty()): ?>
<?php $__currentLoopData = $lead_stage; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($stage->id); ?>" <?php echo e(($stage->id == $leads->stage_id)?"selected":""); ?>><?php echo e($stage->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
<?php if($errors->has('stage_id')): ?>
<div class="error">
<?php echo e($errors->first('stage_id')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-6">
<label>Source</label>
<select class="form-control" name="source_id" >
<option>Select Source</option>
<?php if(!$sources->isEmpty()): ?>
<?php $__currentLoopData = $sources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $source): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($source->id); ?>" <?php echo e(($leads->sources == $source->id)?"selected":""); ?>><?php echo e($source->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
</div>
<div class="col-md-8">
<label> Notes </label>
<input type="text" value="<?php echo e($leads->notes); ?>" name="notes" class="form-control">
</div>
</div>
<input type="hidden" name="lead_id" value="<?php echo e($leads->id); ?>">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary" >Submit</button>
</div>
</form>
</div>
</div>
</div>
<?php /**PATH /var/www/leadai/admin.leadai.co.in/resources/views/leads/modal/edit_lead_modal.blade.php ENDPATH**/ ?>