@extends('../shared/default')

@section('content')
@include('errors.errors')
<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="{{ 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">
        			 {!! Form::model($visitor, ['method' => 'put' ,
                                               	 'url' => action('VisitorsController@update' , $visitor),
                                               	 'id'   =>  'defaultForm',
                                               	 'class' => 'form-horizontal']) !!}
                       <input type="hidden" name="id" value="{{ $visitor->id }}">
        					<div class="form-group">
        						<label class="col-sm-2 control-label">First name</label>
        						<div class="col-sm-4">
        						{!! Form::text("first_name" , null, ['class' => 'form-control',
        						                                    'placeholder'   =>  'First name']) !!}
        							{{--<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">
        						{!! Form::text("last_name" , null, ['class' => 'form-control',
                                                                   'placeholder'   =>  'Last name']) !!}
        							{{--<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">
                                {!! Form::text("cin" , null, ['class' => 'form-control ',
                                                              'placeholder'      =>  'CIN']) !!}
                                    {{--<input type="text" class="form-control" placeholder="CIN">--}}
                                </div>
                                <label class="col-sm-2 control-label">Date Visit</label>
                                <div class="col-sm-4">
                                {!! Form::text("date_visit" , null, ['class' => 'form-control',
                                                                     'placeholder'   =>  'Visit date',
                                                                     'id'  =>  'input_date_visit']) !!}
                                    {{--<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">
        						{!! Form::text("mobile" , null, ['class' => 'form-control',
        						                                'placeholder'   =>  'Phone number']) !!}
        							{{--<input type="text" class="form-control" placeholder="Phone number">--}}
        						</div>
        						<label class="col-sm-2 control-label">Email</label>
        						<div class="col-sm-4">
        						{!! Form::text("email" , null, ['class' => 'form-control',
                                        						 'placeholder'   =>  'Email']) !!}
        							{{--<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>
        				{!! Form::close() !!}
        			</div>
        		</div>
        	</div>
        </div>

@stop