<style>
    .list{
        margin-top: 50px; list-style: none; font-weight: bold;
    }

    .sub {
        font-weight: bold;
        text-align: center;
        text-decoration: underline;

    }

    * {
    box-sizing: border-box;
    }

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

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

    .sign {
        float: left;
        padding-top: 85px;
    }

    .topleft {
        padding-top: 50px;
    }

    .lineDecor {
        text-decoration: underline;
    }


    
</style>
<div>
    <div class="header">
    <center>
        <h3>{{env('APP_NAME')}}</h3>
    </center>

    <div class="topright">
        <p>From: <span class="lineDecor">{{ $noc->customer?$noc->customer->name:'' }}</span><br>
           Date: <span class="lineDecor">{{ $noc->noc_date }}</span></p>
    </div>
    <div class="topleft" >
        <p>To:</p>
        <p>Secretary <br>
           {{ env('APP_NAME') }} <br></p>
    </div>



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

else {
    $na='______';
    }

}
   
@endphp


<div class="body">
    <h4 class="sub">Issue of NOC</h4>
    <p>
        I/We Mr./Mrs./Ms. <span class="lineDecor">{{ $noc->customer?$noc->customer->name:'' }}</span> S/O,D/O,W/O <span
            class="lineDecor">{{ $noc->customer?$noc->customer->father_name:'' }}</span>
        CNIC No. <span class="lineDecor">{{ $noc->customer?$noc->customer->cnic:'' }}</span> Contact No. <span
            class="lineDecor">{{ $noc->customer?$noc->customer->mobile_number:'' }}</span> want to sell Property No. <span
                class="lineDecor">{{ $noc->unitNumber->unit_number }}</span>
            Sector <span
                class="lineDecor">{{ $na }}</span>
                @if(!empty( $noc->unitNumber->floor))
        Phase <span
            class="lineDecor">{{ $noc->unitNumber->floor->unit_block ? $noc->unitNumber->floor->unit_block->name : '________' }}</span>
        @else
        Phase <span
        class="lineDecor">________</span>
            @endif
            Membership
        No. <span class="lineDecor">{{  $noc->unitNumber?$noc->unitNumber->property->membership_no:'' }}</span> .
        Please issue NOC of said property. <br><br>
    </p>
        
        
            <div class="sign">
                <p>_______________ <br>
                    (Seller / Donor Signature)</p>
            </div>
            <div class="sincerely"> 
                <p>Your's Sincerely</p><br>
                <p>___________________ <br>
                    Thumb Impression <br>
                    Male - Left Thumb <br>
                    Female - Right Thumb</p>
            </div>
        





        
        <div style="padding-top: 120px;">
            <ul>
                <li class="list">Finance Branch _________________________</li>
                <li class="list">Manager Sales  __________________________</li>
                <li class="list">General Manager <br> Sales and
                    Admin ________________________</li>
            </ul>
        </div>

        
    
</div>

<div class="footer">
    <p><b><u><center>DOCUMENTS TO BE ATTACHED</center></u></b>
        <ol>
            <li >&nbsp; 1 X Photocopy of CNIC / NICOP</li>
            <li>&nbsp; 1 X Photocopy of Membership Letter / Allocation / Intimation / Allotment / Transfer Letters</li>
            <li>&nbsp; Paid Copy of Processing Fee/ Transfer Fee and other dues to be submitted on account of pending installments before applying for NOC.</li>
            <li>&nbsp; 1 X Photocopy of Last Payment Voucher(Installment Files Only)</li>
        </ol>
       
</p>
</div>
</div>