<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>
    <div class="title-add">
        <div class="page-bar"> 
            <ul class="page-breadcrumb"> 
                <li> <a class="ng-binding" href="#"><i class="fa fa-dashboard"></i> Dashboard</a> </li>
                <li><a href="#">Operation</a></li>
                <li><a href="#">Manage Client</a></li>
                <li><a href="#">Manage CRM</a></li>
                <li><a href="#">Add Lead</a></li>
            </ul> 
        </div>
    </div>
    <div class="page">
            <div class="top-content">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="title-add">
                            <div class="pull-left">
                                <h3><?php echo e(__('administrator.add_lead')); ?></h3>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php echo Form::open(array('route' => 'lead.store','method'=>'POST')); ?>

            <div class="row">

                <div class="col-sm-12  col-xs-12">
                    <div class="master-form">
                        <div class="title-note">
                            <h3><span class="fa fa-exclamation-triangle"></span>​​​​<?php echo e(__('administrator.add_lead')); ?> <i>
                                    (<?php echo e(__('administrator.fields_in_red_are_required')); ?>)</i></h3>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="form-group col-sm-4 col-xs-12">
                                <div class="col-sm-4 col-xs-12 ">
                                    <label for="name" class="required"><?php echo e(__('administrator.follower')); ?></label>
                                </div>
                                <div class="col-sm-8">
                                    <?php echo Form::select('agent', $agent, null,array('class' => 'select2 form-control input-sm','required')); ?>

                                </div>
                            </div>
                            <div class="form-group col-sm-4 col-xs-12">
                                <div class="col-sm-4 col-xs-12 ">
                                    <label for="name" class="required"><?php echo e(__('administrator.lead_source')); ?></label>
                                </div>
                                <div class="col-sm-8">
                                    <?php echo Form::select('lead_source', $lead_source, null,array('placeholder' => __('administrator.please_select'),'class' => 'select2 form-control   input-sm','required')); ?>

                                </div>
                            </div>
                            <div class="form-group col-sm-4 col-xs-12">
                                <div class="col-sm-4 col-xs-12 ">
                                    <label for="name" class="required"><?php echo e(__('administrator.date')); ?></label>
                                </div>
                                <div class="col-sm-8">
                                    <?php echo Form::text('date', date('d-m-Y'), array('placeholder' => __('administrator.date'),'class' => 'form-control date_picker input-sm','required')); ?>

                                </div>
                            </div>
                        </div>
                        <div class="form-group co-sm-12 col-xs-12">
                            <fieldset>
                                <legend>​​​​<?php echo e(__('administrator.lead_info')); ?></legend>
                            </fieldset>
                            <div class="row">
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label class="required" for="name"><?php echo e(__('administrator.family_name')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::text('family_name', null, array('placeholder' => __('administrator.family_name'),'class' => 'form-control input-sm','required','maxlength'=>'50')); ?>

                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label class="required" for="name"><?php echo e(__('administrator.last_name')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::text('name', null, array('placeholder' => __('administrator.last_name'),'class' => 'form-control   input-sm','required','maxlength'=>'50')); ?>

                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label for="name" class="required"><?php echo e(__('administrator.gender')); ?></label>
                                    </div>
                                    <div class="col-sm-8">

                                        <?php echo Form::select('sex', [''=>__('administrator.please_select'),'Female'=>__('administrator.female'),'Male'=>__('administrator.male') ], null,array('class' => 'select2 form-control','required')); ?>


                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label class="required" for="name"><?php echo e(__('administrator.contact')); ?></label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" class="form-control number-only" name="contact" data-inputmask="'mask': ['999-999-9999', '+099 99 99 9999[9]-9999']" data-mask placeholder="Phone Number">
                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label for="name"><?php echo e(__('administrator.email')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::email('email', null, array('placeholder' => __('administrator.email'),'class' => 'form-control   input-sm','maxlength'=>'30')); ?>

                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label for="name"><?php echo e(__('administrator.address')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::text('address', null, array('placeholder' => __('administrator.address'),'class' => 'form-control   input-sm','maxlength'=>'255')); ?>

                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label for="name"><?php echo e(__('administrator.workplace')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::text('workplace', null, array('placeholder' => __('administrator.workplace'),'class' => 'form-control   input-sm','maxlength'=>'50')); ?>

                                    </div>
                                </div>
                                <div class="form-group col-sm-6 col-xs-12">
                                    <div class="col-sm-4 col-xs-12 ">
                                        <label for="name"><?php echo e(__('administrator.job')); ?> </label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <?php echo Form::text('job', null, array('placeholder' => __('administrator.job'),'class' => 'form-control input-sm','maxlength'=>'50')); ?>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-12 col-xs-12">
                            <div class="form-group footer-save">
                                <button type="submit" class="button_sm button_primary pull-right"><span
                                            class="fa fa-save"></span> <?php echo e(__('administrator.save')); ?></button>
                                <button type="button" onClick="javascript:history.go(-1)"
                                        class="button_sm button_warning pull-right">
                                    <span class=" fa fa-arrow-circle-left"></span> <?php echo e(__('administrator.back')); ?></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php echo Form::close(); ?>

    </div>
        <?php $__env->stopSection(); ?>
        <?php $__env->startSection('script'); ?>
            <script type="text/javascript">
                $(document).ready(function () {

                });
            </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>