<?php
include_once "invoice_includes.php";
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
include_once('tcpdf_vars.php');

include_once('tcpdf_proposal_fetch.php');

require_once('tcpdf_include.php');



$file_title="i2d_hosting_invoice";
$doc_title="i2d Technologies - Client Hosting Invoice";
$inv_title="WEB DEVELOPMENT INVOICE";
$doc_keywords="web hosting";
$doc_sub="Cloud Linux - Hosting Services";


$rec_id = $id;
$refno = $rec_id;


include_once('tcpdf_bottom.php');



$heading1="Service Name";
$package_title="Pro HOST 1 GB";
$package_term="12 Months / 1 Year Plan";

$hosting_price="15,000";
$hosting_header_type="Business Starter Website";


$hosting_features1=
'
<ul>
      <li><strong>20 -25 Pages<br />
      </strong>Mobile Ready Design</li>
      <li>Home Page Slideshow Banner</li>
      <li>Company Profile Page</li>
      <li>Services Page</li>
    </ul>            
';

$hosting_features2=
'
<ul>
      <li>Clients Page </li>
      <li>Photo Gallery </li>
      <li>Contact Page</li>
      <li>Google Map</li>
      <li>Social Media Links</li>
    </ul>    
';

$app_header_type="Website Application Coding / Programming";
$app_price="12,000";

$app_features1=
'
<ul>
      <li><strong>Website Control Panel<br />
        (Webmaster Login)</strong></li>
      <li>Products Manager</li>
      <li>Orders Manager</li>
      <li>Promotions Manager</li>
    </ul>            
';

$app_features2=
'
<ul>
      <li>Basic SEO </li>
      <li>Password &amp; Security</li>
    </ul>    
';
$time_header_type="Delivery / Completion Time :";

$time_features1=
'
<ul>
      <li><strong>8 Weeks<br />
        (SAT/SUN Excluded)</strong></li>
    </ul>            
';

$time_features2=
'
<ul>
      <li>IMPORTANT : delivery is subject to <strong>complete data provision</strong> &amp; <strong>important feedback</strong> by the client.</li>
    </ul>    
';


$s_price1="23000";
$s_price2="12000";
$schedule_header_type="Payement Schedule :";
$schedule_header_type2="70 % Upfront / 30 % After Project Delivery";
$schedule_price1=$unit." ".$s_price1;
$schedule_price2=$unit." ".$s_price2;

$schedule_features1=
'
<ul>
      <li><strong>Upfront Payment</strong> :</li>
      <li>Balance / Pending :</li>
    </ul>            
';

$schedule_features2=
'
<p><strong>'.$schedule_price1.'</strong><br />'.$schedule_price2.' </p>
    
';



$package_price="9500";
$tax_value=$package_price*$tax_rate1;
$price_with_tax=$package_price+$tax_value;


$inv_header='<p>&nbsp;</p><p>&nbsp;</p>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td width="290" rowspan="2" align="left">ATTN : <br />
    '. $person_name .' <br />
    '. $company_name .'<br /> 
    '. $address .',<br /> 
	  '. $city_name .',.</td>
    <td width="330" align="right"><h2>'. $inv_title .'</h2></td>
  </tr>
  <tr>
    <td align="right"><b>Tracking / Ref: '. $ref_suffix .''. $ref_series .''. $refno .'</b><br />
Invoice Date: '. $dated1 .'<br />
<span style="color:red;">Due Date: '. $dated2 .'</span><br />
Sales Tax # '. $stn_number .'</td>
  </tr>
  
</table><br /><br />




';



$package_feature1='
<!--table Starts-->
<table width="660" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td width="302" height="10" align="center" bgcolor="#000000"><span style="color:white;"><strong>Details / Description</strong></span></td>
    <td width="318" align="center" bgcolor="#000000"><span style="color:white;"><strong>Cost /Price</strong></span></td>
  </tr>
</table>


';

$package_feature2='
<table width="660" border="0" align="left" cellpadding="4" cellspacing="0">
  
  <tr>
    <td colspan="2" bgcolor="#E6E6E6"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$hosting_header_type.'</strong> </td>
    <td width="174" align="center" bgcolor="#E6E6E6">&nbsp;</td>
  </tr>
  <!-- <tr>&nbsp;<br /></tr> -->
  <tr>
    <td width="215">'.$hosting_features1.'</td>
    <td width="171">'.$hosting_features2.'</td>
    <td width="174" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$unit.'&nbsp;'.$hosting_price.'</td>
  </tr>
</table>

';

$package_feature3='
<table width="660" border="0" align="left" cellpadding="4" cellspacing="0">
  
  <tr>
    <td colspan="2" bgcolor="#E6E6E6"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$app_header_type.'</strong> </td>
    <td width="174" align="center" bgcolor="#E6E6E6">&nbsp;</td>
  </tr>
  <!-- <tr>&nbsp;<br /></tr> -->
  <tr>
    <td width="215">'.$app_features1.'</td>
    <td width="171">'.$app_features2.'</td>
    <td width="174" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$unit.'&nbsp;'.$app_price.'</td>
  </tr>
</table>

';

$package_feature4='
<table width="660" border="0" align="left" cellpadding="4" cellspacing="0">
  
  <tr>
    <td colspan="2" bgcolor="#E6E6E6"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$time_header_type.'</strong> </td>
    <td width="174" align="center" bgcolor="#E6E6E6">&nbsp;</td>
  </tr>
  <tr>&nbsp;<br /></tr>
  <tr>
    <td width="215">'.$time_features1.'</td>
    <td width="400">'.$time_features2.'</td>
  </tr>
</table>

';

$costing='
<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" width="660" align="left">'.$line.'</td>
  </tr>
</table>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>&nbsp;<br /></tr>
  <tr>
    <td width="413" height="10"><strong>Project Total Charges :</strong></td>
    <td width="177" align="center"><strong>'.$unit.' '.$package_price.' +Tax</strong></td>
  </tr>
</table>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" width="660" align="left">'.$line.'</td>
  </tr>
</table>

';

$costing2='

<table width="660" border="0" align="left" cellpadding="4" cellspacing="0">
  
  <tr>
    <td width="174" bgcolor="#E6E6E6"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$schedule_header_type.'</strong> </td>
    <td width="445" align="center" bgcolor="#E6E6E6">'.$schedule_header_type2.'</td>
  </tr>
  <tr>&nbsp;<br /></tr>
  <tr>
    <td width="245">'.$schedule_features1.'</td>
    <td width="500" align="center">'.$schedule_features2.'</td>
  </tr>
</table>
';

$costing3='
<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" width="660" align="left">'.$line.'</td>
  </tr>
</table>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>&nbsp;<br /></tr>
  <tr>
    <td width="413" height="10" align="left">Project Advance Payment :</td>
    <td width="177" align="center">'.$unit.' '.$s_price1.'+Tax</td>
  </tr>
  <tr>
    <td height="10" align="left">General Sales Tax ('.$tax_rate.' %)* :</td>
    <td align="center">'.$unit.'&nbsp;'.$tax_value.'*</td>
  </tr>
  <tr>
    <td height="10" align="left">Amount</td>
    <td align="center">'.$unit.'&nbsp;'.$price_with_tax.'*</td>
  </tr>
</table>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" width="660" align="left">'.$line.'</td>
  </tr>
</table>



<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>&nbsp;<br /></tr>
  <tr>
    <td width="355" height="10">'.$img2.'</td>
    <td width="235" align="right">Generated By : <br />
      i2d Billing &amp; Accounts Department<br />
    <strong>billing@i2dtechnologies.com</strong></td>
  </tr>
  <tr>
    <td height="10" align="left">'.$tax_note.'</td>
    <td align="right">&nbsp;</td>
  </tr>
</table>';



$html = ''.$inv_header.'';

$html .='
'.$package_feature1.''.$package_feature2.''.$package_feature3.''.$package_feature4.'


<!--table Ends-->
';

$html .='
'.$costing.''.$costing2.''.$costing3.'
';





// output the HTML content
$pdf->writeHTML(utf8_encode($html), true, 0, true, 0);


include_once('tcpdf_bottom_2.php');



?>