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

@section('content')

<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="#">Profile</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-user"></i>
        					<span>Visitor</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">
        				<h4 class="page-header">Profile</h4>
        				<div class="form-horizontal" role="form">
        					<div class="form-group">
        						<label class="col-sm-2 control-label">First name</label>
        						<div class="col-sm-4">
        							<label class="form-control">{{ $visitor->first_name   }}</label>
        						</div>
        						<label class="col-sm-2 control-label">Last name</label>
        						<div class="col-sm-4">
        							<label class="form-control">{{ $visitor->last_name   }}</label>
        						</div>
        					</div>
        					<div class="form-group">
                                <label class="col-sm-2 control-label">CIN</label>
                                <div class="col-sm-4">
                                    <label class="form-control">{{ $visitor->cin  }}</label>
                                </div>
                                <label class="col-sm-2 control-label">Date Visit</label>
                                <div class="col-sm-4">
                                    <label class="form-control">{{ $visitor->date_visit->toDateString()   }}</label>
                                </div>
                            </div>
        					<div class="form-group">
        						<label class="col-sm-2 control-label">Phone number</label>
        						<div class="col-sm-4">
        							<label class="form-control">{{ $visitor->mobile   }}</label>
        						</div>
        						<label class="col-sm-2 control-label">Email</label>
        						<div class="col-sm-4">
        							<label class="form-control">{{ $visitor->email   }}</label>
        						</div>
        					</div>
        					<div class="form-group">
                                <div class="col-sm-offset-2 col-sm-2">
                            	    <a  href="{{ route('visitor.edit' , $visitor)  }}" class="btn btn-info btn-label-left">
                            		<span><i class="fa fa-edit "></i></span>
                            		    Edit
                            		</a>
                            	</div>
                            	{!! Form::open(array('method' => 'DELETE', 'route' => array('visitor.destroy' , $visitor))) !!}
                            	    <div class="col-sm-2">
                                        <button type="submit" class="btn btn-danger btn-label-left">
                                        <span><i class="fa fa-trash"></i></span>
                                            Delete
                                        </button>
                                    </div>
                                {!! Form::close() !!}
                            </div>
        				</div>
        			</div>
        		</div>
        	</div>
        </div>

@stop