<?php
	// Assets::add( 'workbook.min.js' );
	Assets::add( 'certificate.css' );
	// Assets::add( 'momentjs' );
	// AMIB::add_js_translation( trans( 'workbook.js-msgs' ) );
?>

<?php $__env->startSection( 'head' ); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection( 'content' ); ?>
	<div class="cc" id="main-content">
		<div id="print-btn-container" class="no-print"><a href="#" class="button" onclick="window.print(); return false;">چاپ گواهینامه...</a></div>

		<div id="certificate">
			<img src="img/cert-bg.jpg" id="cert-bg">
			<div class="pure-g">
				<div class="center pure-u-5-24">
					<?php
						if( $user->Company && $attachment = $user->Company->get_attachment_by_type( 'logo' ) ) {
							echo HTML::image( $attachment->url, 'certificate-logo', array( 'id' => 'certificate-logo' ) );
						}
					?>
				</div>
				<div class="center pure-u-14-24" style="font-size:27px">«گواهینامه پایان دوره آموزشی»</div>
				<div class="small pure-u-5-24">
					<div>شماره: <?php echo en2fa( $exam->extra_data_obj->certificate_number ); ?></div>
					<div>تاریخ: <?php echo en2fa( $exam->extra_data_obj->certificate_date ); ?></div>
				</div>
			</div>

			<div id="certificate-text">
			    <label > گواهی می شود  </label>

				آقای / خانم   <strong><?php echo $user->full_name; ?></strong>



				دارنده کد ملی   <strong><?php echo en2fa( $user->national_code ); ?></strong>

				<?php if( $user->City && $user->City->name !== 'تهران - ستاد مرکزی' ): ?>
					شهر محل خدمت <strong><?php echo $user->City->name; ?></strong>
				<?php endif; ?>
				
					 صادره از   <strong><?php echo en2fa( $user->bc_location ); ?></strong>
				  شاغل در    <strong><?php echo $exam->extra_data_obj->certificate_company; ?></strong>
				  دوره آموزشی   <strong><?php echo $exam->extra_data_obj->certificate_course; ?></strong>
				را به استناد مجوز شماره <strong> <?php echo en2fa( $exam->extra_data_obj->certificate_license ); ?></strong>

				سازمان اداری استخدامی کشور که از تاریخ <strong><?php echo en2fa( $exam->extra_data_obj->certificate_from_date ); ?></strong>
				تا تاریخ  <strong><?php echo en2fa( $exam->extra_data_obj->certificate_to_date ); ?></strong>
				به مدت <strong><?php echo en2fa( $exam->extra_data_obj->certificate_hours ); ?></strong>
				ساعت و با کسب امتیاز <strong><?php echo en2fa( $exam_user->mark ); ?></strong>
				با موفقیت به پایان رسانیده است.
			</div>

			<div class="pure-g">
				<div class="center pure-u-4-24">
					<?php
						if( $user->Company && $attachment = $user->Company->get_attachment_by_type( 'sig2' ) ) {
							echo HTML::image( $attachment->url );
						}
					?>
				</div>
				<div class="pure-u-16-24"></div>
				<div class="center pure-u-4-24">
					<?php
						if( $user->Company && $attachment = $user->Company->get_attachment_by_type( 'sig1' ) ) {
							echo HTML::image( $attachment->url );
						}
					?>
				</div>
			</div>
		</div>
	</div>
<?php $__env->stopSection(); ?>