<script src="<?php echo e(asset('js/modal_custom.js')); ?>"></script>

<!-- Source Id Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('source_id', 'Source:'); ?>

    <?php echo Form::select('source_id', $sources,null, ['class' => 'form-control form-select select2 ']); ?>


</div>

<!-- Name Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('name', 'Name:'); ?>

    <?php echo Form::text('name', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255]); ?>

</div>

<!-- Email Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('email', 'Email:'); ?>

    <?php echo Form::email('email', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255]); ?>

</div>

<!-- Phone Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('phone', 'Phone:'); ?>

    <?php echo Form::text('phone', null, ['class' => 'form-control', 'maxlength' => 100, 'maxlength' => 100]); ?>

</div>



<!-- Address Field -->
<div class="form-group col-sm-8">
    <?php echo Form::label('address', 'Address:'); ?>

    <?php echo Form::text('address', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255]); ?>

</div>

<!-- Country Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('country', 'Country:'); ?>

    <?php echo Form::select('country', $countries, $leads->country??IConstants::COUNTRY, ['class' => 'form-control form-select select2 ']); ?>

</div>

<!-- Cities Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('city', 'City:'); ?>

    <?php echo Form::select('city', $cities,$leads->city??IConstants::CITY,['class' => 'select2 form-select ','id'=>'cities']); ?>

</div>
<!-- Occupation Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('occupation', 'Occupation:'); ?>

    <?php echo Form::text('occupation', null, ['class' => 'form-control', 'maxlength' => 100, 'maxlength' => 100]); ?>

</div>
   <h5 class="mt-2 mb-0">Inquiry Information</h5>
   <!-- Country Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('inquiry_country', 'Inquiry Country:'); ?>

    <?php echo Form::select('inquiry_country', $countries, $leads->inquiry_country??IConstants::COUNTRY, ['class' => 'form-control form-select select2 ']); ?>

</div>
<!-- Service Id Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('service_id', 'Service:'); ?>

   <select name="service_id" id="service_id" class="form-control form-select select2">    
        <?php echo Common::getServices($leads->inquiry_country??IConstants::COUNTRY,@$leads->service_id); ?>       
    </select>
</div>


<!-- Budget Field -->
<div class="form-group col-sm-4">
    <?php echo Form::label('budget', 'Budget:'); ?>

    <?php echo Form::text('budget', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255]); ?>

</div>



<!-- Detail Field -->
<div class="form-group col-sm-12">
   
    <?php echo Form::label('detail', 'Detail:'); ?>

    <?php echo Form::textarea('detail', null, ['class' => 'form-control', 'rows'=>5]); ?>

</div>
<?php if(request()->get('request') == 'q'): ?>
<input type="hidden" name="assigned_to" value="<?php echo e(auth()->user()->id); ?>" />
<input type="hidden" name="assigned_date" value="<?php echo e(now()); ?>" />
<?php endif; ?>
<?php /**PATH D:\projects\maksoft\saadahsan\resources\views/leads/fields.blade.php ENDPATH**/ ?>