<!-- Team Id Field -->





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

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

</div>

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

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

</div>

    <div class="form-group col-sm-6">
        <?php echo Form::label('lead_status', 'Lead From:'); ?>

        <?php echo Form::select('lead_status', ['Social Media' => 'Social Media', 'Ppc' => 'Ppc'], isset($lead->lead_status) ? $lead->lead_status : null, ['class' => 'form-control select2 ', 'placeholder'=>'Enter Lead From']); ?>

    </div>

<div class="form-group col-sm-6">
    <?php echo Form::label('type', 'Lead Type:'); ?>

    <div class="clearfix"></div>
    <?php echo Form::select('type',\App\Models\Lead::$TYPES, null, ['class' => 'form-control select2' ,'required', 'placeholder'=>'Enter Lead Type']); ?>

</div>







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

    <?php echo Form::number('phone', null, ['class' => 'form-control' , isset($lead->phone)? '':'']); ?>

</div>

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

    <?php echo Form::text('name', null, ['class' => 'form-control', 'placeholder'=>'Enter name' , isset($lead)?' ':'']); ?>

</div>

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

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

</div>

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

    <?php echo Form::email('email', null, ['class' => 'form-control' , isset($lead)?'readonly':'']); ?>

</div>






<?php if(\Auth::user()->hasRole('admin') || \Auth::user()->hasRole('super-admin')): ?>
    <div class="form-group col-sm-6">
        <?php echo Form::label('team_id', 'Select Team:'); ?>

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

    </div>
<?php else: ?>

    <input type="hidden" name="team_id" value="<?php echo e(\Auth::user()->details->team_id); ?>">
<?php endif; ?>
<!-- Submit Field -->
<div class="form-group col-sm-12">
    <?php echo Form::submit('Save', ['class' => 'btn btn-primary']); ?>

    <?php if(!isset($lead)): ?>
        <?php echo Form::submit(__('Save And Add Translations'), ['class' => 'btn btn-primary', 'name'=>'translation']); ?>

    <?php endif; ?>
    <?php echo Form::submit(__('Save And Add More'), ['class' => 'btn btn-primary', 'name'=>'continue']); ?>

    <a href="<?php echo route('admin.leads.index'); ?>" class="btn btn-default">Cancel</a>
</div><?php /**PATH C:\laragon\www\student-area\resources\views/admin/leads/fields.blade.php ENDPATH**/ ?>