<?php
$date_birth = "";

if($guardian->id){
	 $date_birth = $guardian->date_birth->toDateString();
}

?>

@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('guardian.index')  }}">Guardians</a></li>
            			<li><a href="#">Profile</a></li>
            		</ol>
            	</div>
            </div>




<div class="row-fluid">
			<div class="row">


			<div class="col-xs-6 col-sm-6 col-md-8">
				<br>
				<br>
				<div class="form-group ">
						<label class="col-sm-2 control-label">ID</label>
						<div class="col-md-4">
							<label class="form-control">{{ $guardian->id  }}</label>
						</div>
				</div>
                <br>
                <br>
				<div class="form-group ">
						<label class="col-sm-2 control-label">CIN</label>
						<div class="col-sm-4">
							<label class="form-control">{{ $guardian->cin  }}</label>
						</div>
				</div>

				<br>
                <br>
				<div class="form-group ">
                						<label class="col-sm-2 control-label">First name</label>
                						<div class="col-sm-4">
                							<label class="form-control">{{ $guardian->first_name  }}</label>
                						</div>
                				</div>

                <br>
                <br>
                <div class="form-group ">
                						<label class="col-sm-2 control-label">Last name</label>
                						<div class="col-sm-4">
                							<label class="form-control">{{ $guardian->last_name  }}</label>
                						</div>
                				</div>
				<br>
                <br>

					<div class="form-group ">
						<label class="col-sm-2 control-label">Birth Date</label>
						<div class="col-md-4">
							<label class="form-control">{{ $date_birth  }}</label>
						</div>
					</div>
                    <br>
                    <br>
					<div class="form-group  ">
						<label class="col-sm-2 control-label">Mobile</label>
						<div class="col-sm-4">
							<label class="form-control">{{ $guardian->mobile  }}</label>
						</div>
					</div>
					<br>
                    <br>
                    <div class="form-group">
                                                    <div class="col-sm-offset-2 col-sm-2">
                                                	    <a  href="{{ route('guardian.edit' , $guardian)  }}" class="btn btn-info btn-label-left">
                                                		<span><i class="fa fa-edit "></i></span>
                                                		    Edit
                                                		</a>
                                                	</div>
			</div>

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

</div>
@stop