<style type="text/css">
h1{
	font-weight:normal;
	font-size:60px;
	color:white;
	margin:10px;
}
h2{
	font-size:45px;
	margin:10px;
	color:white;
}
</style>

<page orientation="portrait" format="330x403" backimg="<?php echo URL::base().'/uploads/'.$images[0]; ?>" backimgx="0" backimgy="0" backimgw="1250">
	<div style="width:100%;text-align:center;position:absolute;top:1000px"><br />
		<h1><?php echo  $customer->first_name; ?> <?php echo  strtoupper($customer->last_name) ; ?></h1>
		<?php if($customer->type=="labo"): ?>
			<h2><?php echo $customer->fonction; ?></h2>
			<h2><?php echo  $customer->pharma_nom; ?></h2>
		<?php elseif(isset($customer->pharma_cp) || isset($customer->pharma_city)): ?>
			<h2><?php echo  $customer->pharma_nom; ?></h2>
			<?php if($customer->pharma_city!=''): ?>
			<h2><?php echo $customer->pharma_city; ?> (<?php echo substr($customer->pharma_cp,0,2); ?>)</h2>
			<?php else: ?>
			<h2><?php echo $customer->pharma_cp; ?></h2>
			<?php endif; ?>
		<?php else: ?>
			<h2><?php echo $customer->fonction; ?></h2>
			<h2><?php echo  $customer->pharma_nom; ?></h2>
		<?php endif; ?>
	</div>
</page>
<page  orientation="portrait" format="330x403" backimg="<?php echo URL::base().'/uploads/'.$images[1]; ?>" backimgx="0" backimgy="0" backimgw="1250">
	<div style="width:296px;height:295px;position:absolute;left:774px;top:1012px;padding:0px;"><img src="<?php echo $qr_code; ?>" width="295" ></div>
</page>
