<script>

var printhisopt = {

			importCSS: true,

      importStyle: true,

      loadCSS: "<?php echo ULP_URL . 'assets/css/public.css';?>",

      debug: false,

      printContainer: true,

      pageTitle: "",

      removeInline: true,

      printDelay: 333,

      header: null,

      formValues: false,

};

</script>

<style>

		<?php echo @$data['ulp_invoices_custom_css'];?>

</style>

<div class="ulp-invoice-bttn-wrapp">

	<div class="ulp-popup-print-bttn" onClick="jQuery('<?php echo '#' . $data['wrapp_id'];?>').printThis(printhisopt);"><?php _e('Print Invoice', 'ulp');?></div>

</div>





<div class="ulp-invoice-wrapp <?php echo $data['ulp_invoices_template'];?>" id="<?php echo $data['wrapp_id'];?>" >

	<div class="ulp-invoice-logo"><img src="https://azdui.growthstudio.org/wp-content/uploads/2019/09/azduilogo-main@0.5x.png" /></div>

	<div class="ulp-invoice-title"><?php echo $data['ulp_invoices_title'];?></div>

	<div class="ulp-clear"></div>

	<div class="ulp-invoice-company-field"><?php echo $data['ulp_invoices_company_field'];?></div>

	<div class="ulp-invoice-invoice-code">

		<?php if (!empty($data['order_details']['code'])):?>

			<div><b><?php _e('Invoice code:', 'ulp');?></b> <?php echo $data['order_details']['code'];?></div>

		<?php endif;?>

		<?php if (!empty($data['order_details']['txn_id'])):?>

			<div><b><?php _e('Transaction ID:', 'ulp');?></b> <?php echo $data['order_details']['txn_id'];?></div>

		<?php endif;?>

		<?php if (!empty($data['order_details']['create_date'])):?>

			<div><b><?php _e('Date:', 'ulp');?></b> <?php echo $data['order_details']['create_date'];?></div>

		<?php endif;?>

	</div>

	<div class="ulp-clear"></div>

	<div class="ulp-invoice-client-details"><?php echo $data['ulp_invoices_bill_to'];?></div>

	<div class="ulp-clear"></div>



	<div class="ulp-invoice-list-details">

		<table>

			<thead>

				<tr>

					<td width="5%">#</td>

					<td width="75%"><?php _e('Description', 'ulp');?></td>

					<td width="20%"><?php _e('Amount', 'ulp');?></td>

				</tr>

			</thead>

			<tbody>

				<?php $i = 1; ?>

				<?php if (!empty($data['course_price']) && !empty($data['course_label'])):?>

					<tr <?php echo ($i%2==0) ? 'class="alternate"' : ''; ?> >

						<td><?php echo $i;$i++;?></td>

						<td><?php echo $data['course_label'];?></td>

						<td><?php echo $data['course_price'];?></td>

					</tr>

				<?php endif;?>

				<?php if (!empty($data['total_discount'])):?>

					<tr <?php echo ($i%2==0) ? 'class="alternate"' : ''; ?> >

						<td><?php echo $i;$i++;?></td>

						<td><?php _e('Total Discount:', 'ulp');?></td>

						<td><?php echo $data['total_discount'];?></td>

					</tr>

				<?php endif;?>

				<?php if (!empty($data['total_taxes'])):?>

					<tr <?php echo ($i%2==0) ? 'class="alternate"' : ''; ?> >

						<td><?php echo $i;$i++;?></td>

						<td><?php _e('Total Taxes:', 'ulp');?></td>

						<td><?php echo $data['total_taxes'];?></td>

					</tr>

				<?php endif;?>

				<?php if (!empty($data['total_amount'])):?>

				<?php if($i < 3){

						do{ ?>

						<tr <?php echo ($i%2==0) ? 'class="alternate"' : ''; ?> >

							<td>&nbsp;</td>

							<td>&nbsp;</td>

							<td>&nbsp;</td>

						</tr>

						<?php

							$i++;

						}while($i < 3);

					}

				?>

					<tr class="ulp-invoice-total">

						<td></td>

						<td align="right";><?php _e('Total Amount:', 'ulp');?></td>

						<td><?php echo $data['total_amount'];?></td>

					</tr>

				<?php endif;?>

			</tbody>

		</table>

	</div>



	<?php if (!empty($data['ulp_invoices_footer'])):?>

		<div class="ulp-invoice-footer"><?php echo $data['ulp_invoices_footer'];?></div>

	<?php endif;?>



</div>

