<?php
	Assets::add( 'buy-exam.min.js' );
?>
<?php $__env->startSection( 'content' ); ?>
	<div id="main-content" class="cc padding">
		<h1><?php echo trans( 'exam.buy' ); ?></h1>

		<?php echo error_html( $errors ); ?>


		<?php echo Form::open( array() ); ?>

			<select name="exam_id" id="exam_id">
				<option value="0"><?php echo trans( 'main.select' ); ?></option>

				<?php
					foreach( $exams as $exam ) {
						if( $exam->price > 0 || $exam->getExtraData( 'user_activatable' ) == 1 ) {
							echo "<option value='{$exam->id}' data-price='{$exam->price}'>{$exam->name}</option>";
						}
					}
				?>
			</select>

			<span id="price-container" style="display: none;">
				<?php echo trans( 'order.detail.price' ); ?>

				<span class="field amount" id="price">--</span> <?php echo trans( 'main.currency' ); ?>

			</span>

			<?php echo Form::submit( trans( 'order.add-to-basket' ), array( 'id' => 'submit-buy', 'style' => 'display: none;' ) ); ?>

			<?php echo Form::submit( trans( 'order.free-activate' ), array( 'id' => 'submit-free', 'style' => 'display: none;' ) ); ?>

		<?php echo Form::close(); ?>

	</div>
<?php $__env->stopSection(); ?>