@php($app_name ="Estatech")
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Allotment Rights</title>

@if(EF::getUrl() != "letterdata")
<style type="text/css">
  

 .container{
  
  /*border: 1px solid #000;*/
  width: 100%;
  margin-left: 2%;
  margin-right: 5%;
  margin-top:2%;
  font-size: 13px;
  font-family: "Calibri"!important;
  text-align: justify;
  text-justify:inter-word;
  line-height: 15pt;



 }
.letterimage
 {
 
    
    width:100px;
    height:100px; 
    border:1px solid;
    margin-top:-14px;


 }
  .right_div
 {
      float:right;
 }
 .date_style
 {
 	margin-top: -41px;
    margin-right: 20px;
 }
 
.ref_style
 {
 	
 	margin-top: -25px;
    margin-right: 27px; 
 }
 .hrstyle
 {
 	 border: 1px solid black;
 }

</style>
@endif

@if(EF::getUrl() == "letterdata")
<style type="text/css">
.letterimage
 {
 
  
    width:120px;
    height:100px; 
    border:1px solid;  
    margin-right:-109px;
   

 }
 .right_div
 {
      float:right;
 }
 .date_style
 {
 	float:right;
 	margin-top: -41px;
    margin-right: 20px;
 }
 .ref_style
 {
 	float:right;
 	margin-top: -25px;
    margin-right: 27px; 
 }
  .hrstyle
 {
 	 border: 1px solid black;
 }
</style>
@endif
</head>
 
 
<body class="pdf-body" >
  <div style="margin-top: 10%;"></div>
	
	 
  <div class="container">
@if(EF::getUrl() == "letterdata")

<div class = "card  mb-2"  style = "width:793.92px; height:1122.24px;  float: none;">
@include('letters.header_letter') 
  @endif
	<div class = "row "  style = "   text-align: justify; margin-top:5%; margin-left: 5%; margin-right:5%;">
	<div class = "col-md-12" >
	<div class = "right_div">
			<p class = "date_style">Date:{{EF::dateFormat($booking->created_at)}}<br>			
			 <b>{{strtoupper($booking->ref)}}</b></p>
			 <img class = "letterimage" src="{{EF::getFile($booking->user->dp)}}"  ></div>
	   <div style="width: 50%;">@if($user->relation == "S/O")Mr. @elseif($user->relation == "D/O") Miss. @else Mrs. @endif {{$user->name}} <br>
		{{-- @if($user->relation == "S/O")Father Name: @elseif($user->relation == "D/O")Father Name: @else Husband Name: @endif {{$user->fname}}  <br> --}}
		CNIC No. {{$user->cnic}}  <br>
		R/O {{ucwords($user->temp_address)}} <br>

		Mobile: {{$user->contact}} <br></div>
	
		<div class = "subject_div">Subject: <b><u>ALLOTMENT RIGHTS OF {{strtoupper($booking->branch->location)}}</u></b></div>
		<br>
 		<div><b>Dear {{ucwords($user->name)}} </b></div>
		
		<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference the transfer application form bearing No. {{$booking->file_number}}, dated {{EF::dateFormat($booking->created_at)}}, on the above noted subject,it is to inform you that competent authority has considered and decided to transfer the allotment rights to your name/s with all rights, deposits and liabilities.</div>
		
	    <ol>
             <li>You will have to pay annual ground Tax's as per C.D.A or concern authorities decide.</li>
             <li>Other terms and conditions will remain the same as per agreement/Reservation form</li>
        </ol> 
		<br>
		
		<br>
		<div>Yours faithfully,</div>
		<br>
		<br> 
		<br>
		<br>
		
	    <hr align="left" width="25%" class = "hrstyle">
	    <div>Authorized Signature</div>
	    <div><u>Copy to:- Skylite Builders</u></div>
	  
            
          
          

	  </div>


	</div>
	
	

@if(EF::getUrl() == "letterdata")
<div class = "row">
<div class = "col-md-12" style ="text-align:center;">
<button type = "submit" style =" margin-right: 4%; margin-top: 4%; font-size: 16px; font-weight: bolder; width:120px;" class = "btn btn-primary fa fa-print"> Print</button>
</div>
 </div>
</div>
@endif
</div>  
    
</body>

</html>