<style>
    .header {
        text-align: center;
        font-weight: bold;
    }

    .topright {
    float: right;
    padding: 10px;
    }

    .body {
        padding-top: 120px;
    }

    .lineDecor {
    text-decoration: underline;
    }


</style>

<div class="header">
    <u><p>{{$noc->unitNumber->multiProject->name}}</p></u>
        <p>NO OBJECTION CERTIFICATE (NOC)</p>
</div>
<div class="topright">
    <p>NOC No. <span class="lineDecor">{{ $noc->noc_no }}</span></p>
    <p>Date of Issuance <span class="lineDecor">{{ $noc->noc_date }}</span></p>
</div>

@php
	$size=  '';

	if($noc->unitNumber->multiProject->project_type_id== \App\ProjectType::society){
                                               
      		$size=        \App\ProjectType::society_size;
	}

	else
	{
		$size=   \App\ProjectType::high_rise_size;
	}
                                            
@endphp

 

@php
    $na='';
    if(!empty($noc->unitNumber->floor)){
    if($noc->unitNumber->floor->name=='N/A') {
    $na='______';
    }

    else {
    $na = $noc->unitNumber->floor->name;
    }
}
@endphp

<div class="body">
       
    <p>1. It is hereby certified that all dues till today, have been received against the following:- </p>
    <p>
        Name: <span class="lineDecor">{{  $noc->customer?$noc->customer->name:'' }}</span> Plot No. <span
            class="lineDecor">{{ $noc->unitNumber->unit_number }}</span>
            @if(!empty($noc->unitNumber))
        Membership No. <span class="lineDecor">{{ $noc->unitNumber->property?$noc->unitNumber->property->membership_no:'' }}</span>
        @else
        Membership No. <span class="lineDecor"></span>
        @endif
        Sector <span
            class="lineDecor">{{ $na }}</span>
        Size <span class="lineDecor">{{$noc->unitNumber? $noc->unitNumber->size->name:'' }} {{$size}}</span>
</p>
</div>
<div class="footer">
    <p>2. The NOC is valid till <span style="text-decoration: underline; font-weight: bold;"> {{$noc->noc_valid_date}}</span>.


        <br><br>
        Received By: _________________________________________ <br>
        Name: ________________________________________ <br> Contact No. ____________________________  <br>
        Estate Agency ________________________________________
</p>
</div>