<?php $__env->startSection('content'); ?>
<?php echo $__env->make('errors.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="row">
                	<div id="breadcrumb" class="col-xs-12">
                		<a href="#" class="show-sidebar">
                			<i class="fa fa-bars"></i>
                		</a>
                		<ol class="breadcrumb pull-left">
                			<li><a href="<?php echo e(route('visitor.index')); ?>">Visitors</a></li>
                			<li><a href="#">Edit</a></li>
                		</ol>
                	</div>
                </div>



<div class="row">
            	<div class="col-xs-12 col-sm-12">
        		<div class="box">
        			<div class="box-header">
        				<div class="box-name">
        					<i class="fa fa-plus"></i>
        					<span>Edit</span>
        				</div>
        				<div class="box-icons">
        					<a class="collapse-link">
        						<i class="fa fa-chevron-up"></i>
        					</a>
        				</div>
        				<div class="no-move"></div>
        			</div>
        			<div class="box-content">
        			 <?php echo Form::model($visitor, ['method' => 'put' ,
                                               	 'url' => action('VisitorsController@update' , $visitor),
                                               	 'id'   =>  'defaultForm',
                                               	 'class' => 'form-horizontal']); ?>

                       <input type="hidden" name="id" value="<?php echo e($visitor->id); ?>">
        					<div class="form-group">
        						<label class="col-sm-2 control-label">First name</label>
        						<div class="col-sm-4">
        						<?php echo Form::text("first_name" , null, ['class' => 'form-control',
        						                                    'placeholder'   =>  'First name']); ?>

        							<?php /*<input type="text" class="form-control" placeholder="First name">*/ ?>
        						</div>
        						<label class="col-sm-2 control-label">Last name</label>
        						<div class="col-sm-4">
        						<?php echo Form::text("last_name" , null, ['class' => 'form-control',
                                                                   'placeholder'   =>  'Last name']); ?>

        							<?php /*<input type="text" class="form-control" placeholder="Last name">*/ ?>
        						</div>
        					</div>
        					<div class="form-group">
                                <label class="col-sm-2 control-label">CIN</label>
                                <div class="col-sm-4">
                                <?php echo Form::text("cin" , null, ['class' => 'form-control ',
                                                              'placeholder'      =>  'CIN']); ?>

                                    <?php /*<input type="text" class="form-control" placeholder="CIN">*/ ?>
                                </div>
                                <label class="col-sm-2 control-label">Date Visit</label>
                                <div class="col-sm-4">
                                <?php echo Form::text("date_visit" , null, ['class' => 'form-control',
                                                                     'placeholder'   =>  'Visit date',
                                                                     'id'  =>  'input_date_visit']); ?>

                                    <?php /*<input type="text" class="form-control" placeholder="Date Birth" >*/ ?>
                                </div>
                            </div>
        					<div class="form-group">
        						<label class="col-sm-2 control-label">Phone number</label>
        						<div class="col-sm-4">
        						<?php echo Form::text("mobile" , null, ['class' => 'form-control',
        						                                'placeholder'   =>  'Phone number']); ?>

        							<?php /*<input type="text" class="form-control" placeholder="Phone number">*/ ?>
        						</div>
        						<label class="col-sm-2 control-label">Email</label>
        						<div class="col-sm-4">
        						<?php echo Form::text("email" , null, ['class' => 'form-control',
                                        						 'placeholder'   =>  'Email']); ?>

        							<?php /*<input type="text" class="form-control" placeholder="Email">*/ ?>
        						</div>
        					</div>
        					<div class="form-group">
        					    <div class="col-sm-offset-2 col-sm-2">
                                    <button type="submit" class="btn btn-primary btn-label-left">
                                    <span><i class="fa fa-plus"></i></span>
                                    Submit
                                    </button>
                                </div>
                            </div>
        				<?php echo Form::close(); ?>

        			</div>
        		</div>
        	</div>
        </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('../shared/default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>