<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>DataWindow</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
</head>
<?php $row = $records['0']; ?>
<body style="font-family: 'Open Sans', sans-serif;">
  <div class="site_-content" style="padding: 20px 0;">

    <div class="container" style="width: 800px;margin-right: auto;margin-left: auto;">
   <!--    <div class="row" style="margin-right: -15px;margin-left: -15px;">
        <header style="display: block;">
          <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 46%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 0px;padding-left: 15px;">
            <div class="row">
              <div class="col-md-3" style="width: 25%;float: left;position: relative;box-sizing: border-box;">
                <div class="logo" style="margin-top: 70px;">
                  <img src="<?php echo base_url(); ?>assets/images/memo-icon.png" style="width: 100%;">
                </div>
              </div>
              <div class="col-md-9" style="width: 75%;float: left;position: relative;box-sizing: border-box;">
                <div class="co-name" style="text-align: center;">
                  <h1 class="custom-heading" style="border: 1px solid;font-size: 27px;line-height: 18px; box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4); box-sizing: border-box;font-weight: bold;margin: auto;padding: 7px;width: 50%;">
                    MEMO
                  </h1>
                  <h2 style="font-size: 20px;line-height: 22px;margin-top: 5px;margin-bottom: 0px;font-weight: bold;">
                    <?php echo $row->Comp_Name; ?>
                  </h2>
                  <P style="font-size: 15px;line-height: 15px;margin-top: 5px;margin-bottom: 0px; font-weight: bold;"><?php echo $row->Comp_Add1; ?></P>
                  <P style="font-size: 15px;line-height: 15px;margin-top: 5px;margin-bottom: 0px; font-weight: bold;">
                  <?php echo $row->Comp_City; ?>, 
                  <?php echo $row->Comp_State; ?> - 
                  <?php echo $row->Comp_Zip; ?>, 
                  <?php echo $row->Comp_Country; ?>
                </P>
                  <P style="font-size: 14px;line-height: 29px;margin-top: 2px;margin-bottom: 0px;"><NOBR>Phone :<?php echo $row->Acrep_Phone; ?></NOBR> Ext.:<?php echo $row->Acrep_Ext; ?></P>
                  <P style="font-size: 14px;line-height: 29px;margin-top: 0px;margin-bottom: 0px;"><?php echo $row->Acrep_EMAIL; ?></P>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12" style="width: 100%;float: left;position: relative;box-sizing: border-box;">
                <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 5px;width: 90%;text-align: center;margin-top: 10px;
                margin-bottom: 0px;">
                Customer:
              </h5>
              <div style="border: 1px solid #000;    width: 88%;border-radius: 10px;padding: 0px 5px; margin-bottom: 2px; margin-top: 6px;">
                <p style="font-size: 14px; line-height:16px; font-weight: 600;margin-top: 4px; margin-bottom: 18px;">
                  <?php echo $row->NM_AC; ?>  <br/>
                  <?php echo $row->NM_ADDRESS1; ?> <?php echo ($row->NM_ADDRESS2) ? ', '.$row->NM_ADDRESS2 : ''; ?>
                </p>
                <p style="font-size: 14px; line-height:16px; font-weight: 600;    margin-bottom: 4px;">
                  <?php echo $row->NM_CITY; ?>, <?php echo $row->NM_STATE; ?>,<?php echo $row->ZIP; ?>,<?php echo $row->NM_COUNTRY; ?><br />
                  Phone : <?php echo $row->AD_PHONE1; ?> 
                  <?php echo ($row->AD_FAX) ? 'Fax: '.$row->AD_FAX : ''; ?> 
                </p>
              </div>
            </div>
          </div>


        </div>

        <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 54%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px;">

          <div class="row">
            <div class="col-md-6" style="width: 50%;float: left;position: relative;box-sizing: border-box;">
              <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 4px;width: 77%;text-align: center;margin-top: 0px;
              margin-bottom: 0px;">
              SPECIAL DEALS
            </h5>
            <div class="date_m" style="border: 1px solid #000;border-radius: 12px;line-height: 35px;margin: 6px  27px 0 0;padding: 7px;text-align: right;">
              <table style="background-color: transparent;width: 100%;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;line-height: 27px;text-align: left">
                <?php foreach ($records_sd as $sd_arr): ?>                  
                  <tr style="border-bottom: 2px solid #333;border-collapse: collapse;box-sizing: border-box;">
                    <td colspan=2 style="font-size: 13px;font-weight: bold;padding: 0px; line-height: 18px;"> <?php echo $sd_arr->NM_REMARK; ?> <br/> <?php echo $sd_arr->NM_REMARK1; ?></td>
                  </tr>
                <?php endforeach ?>
              </table>
            </div>
          </div>
          <div class="col-md-6" style="width: 50%;float: left;position: relative;box-sizing: border-box;">
            <div class="date_m" style="border: 1px solid;border-radius: 8px;line-height: 27px;margin: 30px auto 0;padding: 3px;text-align: right;">
              <table style="background-color: transparent;width: 100%;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;line-height: 27px;text-align: left;">
                <tr style="border-bottom: 2px solid #ccc;border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> MEMO NO : </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px;"><?php echo $row->SN_DOCUMENT; ?></td>
                </tr>
                <tr style="border-bottom: 2px solid #ccc;border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> MEMO DATE: </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px;"><?php echo date('m/d/Y',strtotime(str_replace('Z', "", $row->DT_DOC))); ?></td>
                </tr>
                <tr style="border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> ANSWER DATE: </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px; color: #ff0000;"><?php echo date('m/d/Y',strtotime(str_replace('Z', "", $row->Due_Date))); ?></td>
                </tr>
              </table>
            </div>
          </div>
        </div>

        <div class="row">

          <div class="col-md-12" style="width: 100%;float: right;position: relative;box-sizing: border-box;    padding-left: 30px;">
            <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 5px;text-align: center;margin-top: 10px;margin-bottom: 0px;">
              Ship To:
            </h5>
            <p style="font-size: 14px; font-weight: 600;  margin-top: 6px;     margin-bottom: 2px;   border: 1px solid #000;width: 97%;border-radius: 10px;padding: 5px 5px 8px;">
              <?php echo $row->NM_STORE; ?><br />
              <?php echo $row->ADDRESS1; ?>,<?php echo $row->ADDRESS2; ?><br />
              <?php echo $row->CITY; ?>, <?php echo $row->STATE; ?>, <?php echo $row->ZIP; ?>, <?php echo $row->COUNTRY; ?>,<br />
              Phone: <?php echo $row->PHONE1; ?>
              <?php echo ($row->FAX) ? 'Fax: '.$row->FAX : ''; ?>
            </p>
          </div>
        </div>
      </div>

    </header>
  </div> -->

   <div class="row" style="margin-right: -15px;margin-left: -15px;">
        <header style="display: block;">
          <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 46%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 0px;padding-left: 15px;">
            <div class="row">
              <div class="col-md-3" style="width: 25%;float: left;position: relative;box-sizing: border-box;">
                <div class="logo" style="margin-top: 70px;">
                  <img src="<?php echo base_url(); ?>assets/images/memo-icon.png" style="width: 100%;">
                </div>
              </div>
              <div class="col-md-9" style="width: 75%;float: left;position: relative;box-sizing: border-box;">
                <div class="co-name" style="text-align: center;">
                  <h1 class="custom-heading" style="border: 1px solid;font-size: 27px;line-height: 18px; box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4); box-sizing: border-box;font-weight: bold;margin: auto;padding: 7px;width: 50%;">
                    MEMO
                  </h1>
                  <h2 style="font-size: 20px;line-height: 22px;margin-top: 5px;margin-bottom: 0px;font-weight: bold;">
                    <?php echo $row->Comp_Name; ?>
                  </h2>
                  <P style="font-size: 15px;line-height: 15px;margin-top: 5px;margin-bottom: 0px; font-weight: bold;"><?php echo $row->Comp_Add1; ?></P>
                  <P style="font-size: 15px;line-height: 15px;margin-top: 5px;margin-bottom: 0px; font-weight: bold;">
                  <?php echo $row->Comp_City; ?>, 
                  <?php echo $row->Comp_State; ?> - 
                  <?php echo $row->Comp_Zip; ?>, 
                  <?php echo $row->Comp_Country; ?>
                </P>
                  <P style="font-size: 14px;line-height: 29px;margin-top: 2px;margin-bottom: 0px;"><NOBR>Phone :<?php echo $row->Acrep_Phone; ?></NOBR> Ext.:<?php echo $row->Acrep_Ext; ?></P>
                  <P style="font-size: 14px;line-height: 29px;margin-top: 0px;margin-bottom: 0px;"><?php echo $row->Acrep_EMAIL; ?></P>
                </div>
              </div>
            </div>
           


        </div>

        <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 54%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px;">

          <div class="row">
            <div class="col-md-6" style="width: 50%;float: left;position: relative;box-sizing: border-box;">
              <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 4px;width: 77%;text-align: center;margin-top: 0px;
              margin-bottom: 0px;">
              SPECIAL DEALS
            </h5>
            <div class="date_m" style="border: 1px solid #000;border-radius: 12px;line-height: 35px;margin: 6px  27px 0 0;padding: 7px;text-align: right;">
              <table style="background-color: transparent;width: 100%;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;line-height: 27px;text-align: left">
                <?php foreach ($records_sd as $sd_arr): ?>                  
                  <tr style="border-bottom: 2px solid #333;border-collapse: collapse;box-sizing: border-box;">
                    <td colspan=2 style="font-size: 13px;font-weight: bold;padding: 0px; line-height: 18px;"> <?php echo $sd_arr->NM_REMARK; ?> <br/> <?php echo $sd_arr->NM_REMARK1; ?></td>
                  </tr>
                <?php endforeach ?>
              </table>
            </div>
          </div>
          <div class="col-md-6" style="width: 50%;float: left;position: relative;box-sizing: border-box;">
            <div class="date_m" style="border: 1px solid;border-radius: 8px;line-height: 27px;margin: 30px auto 0;padding: 3px;text-align: right;">
              <table style="background-color: transparent;width: 100%;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;line-height: 27px;text-align: left;">
                <tr style="border-bottom: 2px solid #ccc;border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> MEMO NO : </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px;"><?php echo $row->SN_DOCUMENT; ?></td>
                </tr>
                <tr style="border-bottom: 2px solid #ccc;border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> MEMO DATE: </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px;"><?php echo date('m/d/Y',strtotime(str_replace('Z', "", $row->DT_DOC))); ?></td>
                </tr>
                <tr style="border-collapse: collapse;box-sizing: border-box;">
                  <td style="font-size: 13px; line-height:13px; font-weight: bold;padding: 5px 1px;"> ANSWER DATE: </td>
                  <td style="font-size: 12px; line-height:13px; font-weight: bold;padding: 5px 1px; color: #ff0000;"><?php echo date('m/d/Y',strtotime(str_replace('Z', "", $row->Due_Date))); ?></td>
                </tr>
              </table>
            </div>
          </div>
        </div>

    
      </div>

    </header>
  </div>


   <div class="row" style="margin-right: -15px;margin-left: -15px;">
        <header style="display: block;">
          <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 46%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 0px;padding-left: 15px;">
        
            <div class="row">
              <div class="col-md-12" style="width: 100%;float: left;position: relative;box-sizing: border-box;">
                <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 5px;width: 90%;text-align: center;margin-top: 10px;
                margin-bottom: 0px;">
                Customer:
              </h5>
              <div style="border: 1px solid #000;    width: 88%;border-radius: 10px;padding: 0px 5px; margin-bottom: 2px; margin-top: 6px;">
                <p style="font-size: 14px; line-height:16px; font-weight: 600;margin-top: 4px; margin-bottom: 18px;">
                  <?php echo $row->NM_AC; ?>  <br/>
                  <?php echo $row->NM_ADDRESS1; ?> <?php echo ($row->NM_ADDRESS2) ? ', '.$row->NM_ADDRESS2 : ''; ?>
                </p>
                <p style="font-size: 14px; line-height:16px; font-weight: 600;    margin-bottom: 4px;">
                  <?php echo $row->NM_CITY; ?>, <?php echo $row->NM_STATE; ?>,<?php echo $row->ZIP; ?>,<?php echo $row->NM_COUNTRY; ?><br />
                  Phone : <?php echo $row->AD_PHONE1; ?> 
                  <?php echo ($row->AD_FAX) ? 'Fax: '.$row->AD_FAX : ''; ?> 
                </p>
              </div>
            </div>
          </div>


        </div>

        <div class="col-sm-6 col-md-6 col-xs-12 col-lg-6" style="width: 54%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px;">

        <div class="row">

          <div class="col-md-12" style="width: 100%;float: right;position: relative;box-sizing: border-box;    padding-left: 30px;">
            <h5 class="custom-heading" style="border: 1px solid;font-size: 15px;line-height: 15px;box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);box-sizing: border-box;font-weight: bold;padding: 5px;text-align: center;margin-top: 10px;margin-bottom: 0px;">
              Ship To:
            </h5>
            <p style="font-size: 14px; font-weight: 600;  margin-top: 6px;     margin-bottom: 2px;   border: 1px solid #000;width: 97%;border-radius: 10px;padding: 5px 5px 8px;">
              <?php echo $row->NM_STORE; ?><br />
              <?php echo $row->ADDRESS1; ?>,<?php echo $row->ADDRESS2; ?><br />
              <?php echo $row->CITY; ?>, <?php echo $row->STATE; ?>, <?php echo $row->ZIP; ?>, <?php echo $row->COUNTRY; ?>,<br />
              Phone: <?php echo $row->PHONE1; ?>
              <?php echo ($row->FAX) ? 'Fax: '.$row->FAX : ''; ?>
            </p>
          </div>
        </div>
      </div>

    </header>
  </div>







  <div style="clear: both;"></div>
  <div class="row table-layout spacer table-responsive" style="margin: 0px;min-height: .01%;box-sizing: border-box;font-family: !arial important;color: #211a50;overflow-x: auto;">
    <div class="table-content">
      <table class="table table-bordered table-hover" style="border: 1px solid #333;width: 100%;max-width: 100%;margin-bottom: 0px;background-color: transparent;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;">
        <thead>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">PO # </th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Sales Person</th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Memo Terms </th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Payment Terms</th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Desp. Date</th>
        </thead>
        <tbody>
          <tr style="border-collapse: collapse;box-sizing: border-box;">
            <td style="border: 1px solid #333;padding: 8px;line-height: 10px;vertical-align: top;text-align: center;font-size: 13px; color:#000;font-weight: 600;"> <?php echo $row->Po; ?></td>
            <td style="border: 1px solid #333;padding: 8px;line-height: 10px;vertical-align: top;text-align: center;font-size: 13px; color:#000;font-weight: 600;"><?php echo $row->Sales_Person; ?></td>
            <td style="border: 1px solid #333;padding: 8px;line-height: 10px;vertical-align: top;text-align: center;font-size: 13px; color:#000;font-weight: 600;"><?php echo $row->MEMO_TERMS; ?></td>
            <td style="border: 1px solid #333;padding: 8px;line-height: 10px;vertical-align: top;text-align: center;font-size: 13px; color:#000;font-weight: 600;"><?php echo $row->Terms; ?></td>
            <td style="border: 1px solid #333;padding: 8px;line-height: 10px;vertical-align: top;text-align: center;font-size: 13px; color:#000;font-weight: 600;"><?php echo date('m/d/Y',strtotime(str_replace('Z', "", $row->DT_SALE))); ?></td>
          </tr>
        </tbody>
      </table>

      <table class="table table-bordered table-hover" style="border: 1px solid #333;width: 100%;max-width: 100%;margin-bottom: 0px;background-color: transparent;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;">
        <thead>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Ship Method :   </th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;"><?php echo $row->Ship_Method; ?></th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Options : </th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: 600; color:#000;"><?php echo $row->M_OPTION; ?></th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;">Tracking # : </th>
          <th style="border: 1px solid #333;padding: 2px;line-height: 20px;vertical-align: top;text-align: center;font-size: 14px;font-weight: bold; color:#000;"><?php echo $row->Tracking; ?></th>
        </thead>
        <tbody>
</tbody>
</table>

<table class="table table-bordered table-hover"  style="border: 1px solid #333;width: 100%;max-width: 100%;margin-bottom: 0px;background-color: transparent;border-spacing: 0;box-sizing: border-box;border-collapse: collapse;">
  <thead style="border: 4px double #333;">
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Sr. #  </th>
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Stone Description</th>
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Wt.</th>
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Rap Price / Cts.</th>
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Disc.%</th>
    <th style="border: 1px solid #333;line-height: 18px;vertical-align: top;text-align: center;font-size: 14px;color: #000;">Total</th>

  </thead>

  <tbody>
<?php $vi = 0; foreach ($records as $valarr): $vi++;  ?>
    <tr style="border-collapse: collapse;box-sizing: border-box;">
      <td style="border: 1px solid #333;vertical-align: top;text-align: center;font-size: 13px;line-height: 50px;color: #000;font-weight: bold;font-weight: 600;"><?php echo $vi; ?></td>
      <td style="border: 1px solid #333;vertical-align: top;text-align: left;font-size: 13px;line-height: 24px;color: #000;font-weight: bold; font-weight: 600; padding-left:5px;">
        <table cellspacing="0" cellpadding="0" border="0" width="100%" style="width: 100%;">
          <tr>
            <td><?php echo $valarr->Item; ?> <br/> <?php echo $valarr->NM_REMARK; ?></td>
            <td align="right"><a href="https://dna.dnalink.in/d/<?php echo $valarr->Item; ?>" target="_blank">
              <span style="background: #333;margin-right:10px;color: #FFF;padding: 7px;text-align: center;width: 67px;height: 10px;">Video Link</span></a></td>
          </tr>
        </table>
      </td>
      <td style="border: 1px solid #333;vertical-align: top;text-align: center;font-size: 13px;line-height: 24px;font-weight: 600;color: #000;"><?php echo $valarr->Wt; ?></td>
      <td style="border: 1px solid #333;vertical-align: top;text-align: center;font-size: 13px;line-height: 24px;font-weight: 600;color: #000;"><?php echo $valarr->Rap_Price; ?></td>
      <td style="border: 1px solid #333;vertical-align: top;text-align: center;font-size: 13px;line-height: 24px;color: #000;font-weight: 600;"><?php echo $valarr->Disc; ?></td>
      <td style="border: 1px solid #333;vertical-align: top;text-align: right;font-size: 13px;line-height: 24px;color: #000;font-weight: 600;padding-right: 5px"> $<?php echo $valarr->Net_Amount; ?></td>
    </tr>
<?php endforeach ?>
    <tr style="border-collapse: collapse;box-sizing: border-box;">
      <td colspan="2" style="border: 1px solid #333;line-height: 24px;font-size: 13px;vertical-align: top;font-weight: bold; "><span style="color: #ff0000; text-align: left;    padding-left: 5px;
      "><?php echo $row->NM_MESSAGE; ?>
    </span> <span style="float: right; color: #000;padding-right: 5px;padding-left: 5px;">Total :</span></td>
    <td style=" color: #000; border: 1px solid #333;line-height: 24px; font-size:13px;vertical-align: top;text-align:center; font-weight: bold"><?php echo $row->WT_TOTAL; ?></td>
    <td style=" color: #000; border: 1px solid #333;line-height: 24px; font-size:13px;vertical-align: top;text-align:center; font-weight: bold">&nbsp;</td>
    <td style=" color: #000; border: 1px solid #333;line-height: 24px; font-size:13px;vertical-align: top;text-align:center; font-weight: bold">&nbsp;</td>
    <td style=" color: #000; border: 1px solid #333;line-height: 24px; font-size:13px;vertical-align: top;text-align:right; font-weight: bold;padding-right: 5px;">$<?php echo $row->AM_ITEM; ?></td>
  </tr>
</tbody>
</table>
</div>
</div>
<div style="clear: both;"></div>
<div class="row spacer" style="margin: 5px 0 0px;box-sizing: border-box;display: inline-block;">
  <div class="col-sm-12 col-md-12 col-xs-12 col-lg-12" style="float: left;position: relative;box-sizing: border-box;min-height: 1px;">
    <div>
      <div class="col-left3" style="border: 2px solid #ccc;border-radius: 10px;display: inline-block;margin: 0 0px 0 0;padding: 5px 8px;">
        <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8" style="width: 66.66666667%;float: left;position: relative;box-sizing: border-box;min-height: 1px;">
          <P  style="font-size: 15px;line-height: 25px;font-weight: bold;border-bottom: 1px solid;width: 205px;text-align: center;display: block;margin: 0px auto 5px;">** Check can be **</P>
</div> 
<div class="col-sm-4 col-md-4 col-xs-4 col-lg-4 pull-right" style="float: left !important;width: 33.33333333%;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">
  <div class="discount" style="text-align: right;">
    <div class="row" style="margin-right: -15px;text-align: right;margin-left: -15px;box-sizing: border-box;">
      <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8" style="width: 66.66666667%;float:left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">
        <label style="display: list-item;list-style: outside none none;text-align: right !important;text-decoration: none;max-width: 100%;  font-weight: 700;font-size: 12px; ">Shipping / Insurance :</label>
      </div>
      <div class="col-sm-4 col-md-4 col-xs-4 col-lg-4" style="width: 33.33333333%;float:left;position: relative;min-height: 1px;box-sizing: border-box; padding-right: 2px;font-size: 12px; line-height: 18px; font-weight: 600; ">
        <?php echo $row->AM_SHIPPING; ?>
      </div>
    </div>

    <div class="row border-bottom" style="margin-right: -15px;text-align: right;margin-left: -15px;">
      <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8" style="width: 66.66666667%;float: left;position: relative;max-width: 100%;display: list-item;list-style: outside none none;text-align: right !important;text-decoration: none;font-weight: 700;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">
        <label style="display: list-item;list-style: outside none none;text-align: right !important;text-decoration: none;max-width: 100%;  font-weight: 700;font-size: 12px; ">Discount  :</label>
      </div>
      <div class="col-sm-4 col-md-4 col-xs-4 col-lg-4" style="width: 33.33333333%;float:left;position: relative;min-height: 1px;box-sizing: border-box; padding-right: 2px;font-size: 12px; line-height: 18px; font-weight: 600; ">
        <?php echo $row->AM_DISCOUNT; ?>
      </div>
    </div>
  </div>

</div>
<div class="row">
  <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8" style="width: 100%;float: left;position: relative;box-sizing: border-box;min-height: 1px;">
    <P style=" display:inline-block; margin: 0px; font-size: 11px; font-weight: bold;line-height: 20px;">Emailed :- accounts@belgiumgroup.net</P>
    <P style=" display:inline-block; margin: 0px; font-size: 11px; font-weight: bold;line-height: 20px;">OR</P>
    <p style=" display:inline-block; margin: 0px; font-size: 11px; font-weight: bold;line-height: 20px;">Texted / WhatsApp :- 718-675-2114</p>
    <P style=" display:inline-block; margin: 0px; font-size: 11px; font-weight: bold;line-height: 20px;">OR</P>
    <P style=" display:inline-block; margin: 0px; font-size: 11px; font-weight: bold;line-height: 20px;"> Faxed :- 646-843-4966 </P>
</div> 
</div>
<div class="row border-bottom" style="margin-right: -15px;text-align: right;margin-left: -15px;">
  <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8 pull-right" style="float: left !important;width: 66.66666667%;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">

    <p style=" font-weight:600;   margin: 0px;font-size: 11px;text-align: left;">Our bank allows us to deposit copies of checks. * Please confirm receipt of check before destroying check. <br/> We do not need original after receipt of copy.</p>
  </div>
  <div class="col-sm-4 col-md-4 col-xs-4 col-lg-4 pull-right" style="float: left !important;width: 33.33333333%;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">

    <div class="discount" style="text-align: right;">
      <div class="col-sm-8 col-md-8 col-xs-8 col-lg-8" style="width: 66.66666667%;float: left;position: relative;max-width: 100%;display: list-item;list-style: outside none none;text-align: right !important;text-decoration: none;font-weight: 700;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">
        <label style="display: list-item;list-style: outside none none;text-align: right !important; text-decoration: none;max-width: 65%;font-weight: 700;border: 2px solid;padding: 0px 2px 0px 2px;line-height: 20px;
        font-size: 13px;float: right;margin: 5px 0px 5px;">Memo Total :</label>
      </div>
      <div class="col-sm-4 col-md-4 col-xs-4 col-lg-4" style="    width: 33.33333333%;
      float: left;position: relative;min-height: 1px;box-sizing: border-box;border: 2px solid;text-align: right;padding: 0px 2px 0px 0px;line-height: 20px;font-weight: 700;font-size: 13px;display: list-item;list-style: outside none none;text-decoration: none;
      margin: 5px 0px 5px;">
      $41,761.12
    </div>


  </div>


</div>
</div>



<div class="col-sm-5 col-md-4 col-xs-12 col-lg-4 pull-right" style="float: left !important;width: 100%;position: relative;min-height: 1px;padding-right: 2px;padding-left: 2;box-sizing: border-box;">
  <p style="margin: 0px; font-size: 10px;line-height: 15px; font-weight:600;">Any dispute, controversy, or claim between you and/or your company and SHALIBHADRA KOTHARI AND/OR BELGIUM NEWYORK LLC, arising out of or relating to
    this memo and/or the goods described therein,or any past or future transactions in which SHALIBHADRA KOTHARI AND/OR BELGIUM NEWYORK LLC has sold,
    transferred, or delivered goods to you or your company, shall be exclusively determined by arbitration administered by the Diamond Dealers Club, Inc.(“DDC”) in New
    York City under its By-Laws and Rules and Regulations.The parties to this memo submit themselves to the jurisdiction of the DDC, and judgment on any award
    rendered by the arbitrators may be entered in any court having jurisdiction thereof.You agree to be personally responsible for any awards rendered by the arbitrators.
    You hereby waive any claim or objection relating to forum non conveniens.
  </p>

</div>

<div class="col-sm-12 col-md-12 col-xs-12 col-lg-12" style="width: 100%;float: left;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px;">
  <div class="row margin-bottom" style="margin-right: -15px;box-sizing: border-box;margin-left: -15px;">
    <div class="col-sm-9 col-md-9 col-xs-12 col-lg-9" style="width: 100%;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px; text-align: right; float: right;"></div>
    <div class="col-sm-3 col-md-3 col-xs-12 col-lg-3" style="width: 25%;position: relative;box-sizing: border-box;min-height: 1px;padding-right: 15px;padding-left: 15px; text-align: right; float: right;">
      <div id="signature1">

        <div style="padding:0 !important;margin:0 !important;width: 100% !important; height: 0 !important;margin-top:-1.5em !important;margin-bottom:1.5em !important;"></div></div>
      </div>
    </div>
    <div class="row margin-bottom" style="margin-right: -15px;box-sizing: border-box;margin-left: -15px;">

      <div class="col-sm-9 col-md-9 col-xs-9 col-lg-9" style="width: 75%;text-align: center; float: right;">
      </div>
      <div class="col-sm-3 col-md-3 col-xs-3 col-lg-3" style="width: 98%;text-align: right;float: right;padding-right: 18px;">
        <label style="box-sizing: border-box;font-size: 14px;line-height: 1.42857143;color: #000;max-width: 100%;margin-bottom: 5px;font-weight: 700;margin-bottom: 5px; text-align: center;">Customer Signature</label>
      </div>

    </div>
  </div>



  <div class="col-sm-12 col-md-12 col-xs-12 col-lg-12 pull-right" style="float: left !important;width: 100%;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;box-sizing: border-box;">
    <p style="text-align: center; margin: 5px 0px 5px; font-size: 11px; font-weight:600;">The diamonds herein on memo are purchased from legitimate sources not involved in funding confict and are in compliance with United Nations Resolutions. i
      hereby guarentee that these diamonds are exclusively of natural origin and untreated based on personal knowledge and/or written guarentees provided by the
    supplier of these diamonds.</p>
  </div>
</div>
</div>
</div>

</div>

<div style="clear:both;"></div>

<div class="row spacer" style="margin: 0px;box-sizing: border-box;">
  <div class="container" style="width: 800px;margin-right: auto;margin-left: auto;">
    <div class="col-md-12" style="text-align: center; width: 100%; float: left;">
      <p style="margin: 0px;font-size: 10px; font-weight:bold; padding-left: 15px; padding-right: 15px;">ALL DELINQENT ACCOUNTS WILL BE CHARGED 18% pa INTEREST. WE ARE MEMBER OF JBT INTERCHNAGE. LATE PAYMENTS
      ARE REPORTED TO JBT MONTHLY.</p>
    </div>
    <div class="col-md-12" style="text-align: center; width: 100%; float: left;">
      <p style="margin: 0px;font-size: 10px; font-weight:600; line-height: 18px;">WARNING : DO NOT SHIP BACK PACKAGES USING USPS MULTIPLE PACKAGES HAVE BEEN LOST BY OUR CUSTOMERS.</p>
    </div>


  </div>

</div>

</div>





</div>

</body>
</html>
