<?php
// source: C:\wamp64\www\hra1\app\presenters/templates/First/outcome.latte

class Template1915227e2159d4a74e7679c74a321280 extends Latte\Template {
function render() {
foreach ($this->params as $__k => $__v) $$__k = $__v; unset($__k, $__v);
// prolog Latte\Macros\CoreMacros
list($_b, $_g, $_l) = $template->initialize('7f97223c4f', 'html')
;
// prolog Latte\Macros\BlockMacros
//
// block content
//
if (!function_exists($_b->blocks['content'][] = '_lba206d24fb6_content')) { function _lba206d24fb6_content($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><div id="first">
<table class="outcome">
<thead>

<tr class="required">

	<th>Issues and Projects - Stage 1</th>
	<th>Invested</th>
	<th class="leftie">Gained</th>
	
</tr>


</thead>

<tbody>
<tr class="required">
	<th>Issue 1: Lawsuit, Harmful Effects</th>

	<td><?php echo $vals->LAWSUIT ?></td>
	<td class="<?php if ($outcome->LAWSUIT) { ?> green <?php } else { ?> red <?php } ?>
" ><?php echo Latte\Runtime\Filters::escapeHtml($results->LAWSUIT, ENT_NOQUOTES) ?></td>
	

	
</tr>

<tr class="required">
	<th>Issue 2: PR Campaign, Image</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->PR, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->PR) { ?> green <?php } else { ?> red <?php } ?>" ><?php echo Latte\Runtime\Filters::escapeHtml($results->PR, ENT_NOQUOTES) ?></td>
	

</tr>

<tr class="required">
	<th>Issue 3: Advertisement</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->ADS, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->ADS) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->ADS, ENT_NOQUOTES) ?></td>

</tr>

<tr class="required">
	<th>Issue 4: Financial Audit</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->AUDIT, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->AUDIT) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->AUDIT, ENT_NOQUOTES) ?></td>
	
			
</tr>

<tr class="required">
	<th>Issue 5: Competion Is Headhunting</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->HEADHUNT, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->HEADHUNT) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->HEADHUNT, ENT_NOQUOTES) ?></td>
	
	
</tr>

<tr class="required">
	<th>Issue 6: Workers on Strike</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->WORKERS, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->WORKERS) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->WORKERS, ENT_NOQUOTES) ?></td>
	
		
</tr>

<tr class="required">
	<th>Issue 7: New Trucks</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->TRUCKS, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->TRUCKS) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->TRUCKS, ENT_NOQUOTES) ?></td>
	
	
</tr>

<tr class="required">
	<th>Issue 8: IT Network</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->IT, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->IT) { ?> green <?php } else { ?> red <?php } ?>"><?php echo Latte\Runtime\Filters::escapeHtml($results->IT, ENT_NOQUOTES) ?></td>
	
	
</tr>

<tr class="required">
	<th>Issue 9: New Features, R&amp;D</th>

	<td><?php echo Latte\Runtime\Filters::escapeHtml($vals->FEATURES, ENT_NOQUOTES) ?></td>
	<td class="<?php if ($outcome->FEATURES) { ?> green <?php } else { ?> red <?php } ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($results->FEATURES, ENT_NOQUOTES) ?></td>
	
	
</tr>

<tr>
	<th>Total</th>
	<td><?php echo Latte\Runtime\Filters::escapeHtml($total_vals, ENT_NOQUOTES) ?></td>
	<td><?php echo Latte\Runtime\Filters::escapeHtml($total_res, ENT_NOQUOTES) ?></td>
</tr>

</tbody></table>
</div>

<div id="hint">
		<span></span>
		<span><?php if ($outcome->LAWSUIT) { ?>

			You won at the court. What is more, the evidence your lawyers presented were so strong that it helped to maintain a better image of the company
<?php } else { ?>
			Your lawyers have lost at the court. The company had to pay damages to its customers, it was very expensive.
		<?php } ?></span>

		<span><?php if ($outcome->PR) { ?>

			Your campaign was successful, people perceive the company in better light.  
<?php } else { ?>
			The campaign was unsuccessful, it did not get enough publicity and almost no one noticed it.
		<?php } ?></span>

		<span><?php if ($outcome->ADS) { ?>

			The campaign was a huge success; sales rose significantly.
<?php } else { ?>
			The campaign was underpaid; it did not attract many new customers.
		<?php } ?></span>

		<span><?php if ($outcome->AUDIT) { ?>

			The accounts were in a really bad shape, but you have acted just in shape and saved some money.
<?php } else { ?>
			The audit did not discover any inconveniences because it was not funded properly. But the department of taxation found serious flaws and the company has to pay a fine.
		<?php } ?></span>

		<span><?php if ($outcome->HEADHUNT) { ?>

			You motivated your managers to stay and work harder. Enjoy the profit!
<?php } else { ?>
			It was not enough, some of your managers left the company and it will be difficult to replace them.
		<?php } ?></span>

		<span><?php if ($outcome->WORKERS) { ?>

			The strike has been called off; your workers are satisfied and work hard to repay your generosity.
<?php } else { ?>
			Negotiations failed, they went on strike and you lost some skilled employees. Production was poor.
		<?php } ?></span>

		<span><?php if ($outcome->TRUCKS) { ?>

			You invested a lot but it was worth. Transportation works perfectly.
<?php } else { ?>
			Your trucks are in terrible state, goods are distributed with problems. Customers and your business partners are angry.
		<?php } ?></span>

		<span><?php if ($outcome->IT) { ?>

			Hackers attacked your competition rather than your secure network. Your sales have improved. 	
<?php } else { ?>
			The company network has been breached by hackers; you lost a lot of money and credibility.
		<?php } ?></span>

		<span><?php if ($outcome->FEATURES) { ?>

			The product is cutting edge technology, you make the trends.
<?php } else { ?>
			Your competition offers a more innovative product.
		<?php } ?></span>

		<div id="hint2">
		<span></span>
		<span>&ldquo;The Company&rdquo; has been accused by its customers that &ldquo;The Product&rdquo; is harmful. The lawsuit is far from an end.</span>
		<span>&ldquo;The Company&rsquo;s&rdquo; image has been damaged in the eyes of the public; money and a good idea are needed to repair the image.</span>
		<span>How about a new advertising campaign to promote &ldquo;The Product&rdquo;? How much will you invest?</span>
		<span>Are your accounts in a good shape? Would you invest in a financial audit done by a specialized company? How much?</span>
		<span>Your competition is headhunting for your top managers; will you increase salaries and benefits of your managers? How much will you invest? </span>
		<span>Your workers in logistics and production are dissatisfied with their income; they are threatening you with a strike. Would you raise their wages?</span>
		<span>You might need to invest in new trucks to ensure smooth transportation of goods. How much will it be?</span>
		<span>Your IT network needs maintenance and innovation to meet the latest security standards.</span>
		<span>&ldquo;The Product&rdquo; is becoming outdated. You need to invest in development and come up with new features your customers will like.</span>
		
		</div>

</div>

<br>
You have started Stage 1 with <?php echo Latte\Runtime\Filters::escapeHtml($start_res, ENT_NOQUOTES) ?>
 resources and you have ended the stage with <?php echo Latte\Runtime\Filters::escapeHtml($end_res, ENT_NOQUOTES) ?> resources.


<br><br>

<a class="btn" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Second:default"), ENT_COMPAT) ?>
"> Next Stage </a>

<?php
}}

//
// end of blocks
//

// template extending

$_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE;

if ($_l->extends) { ob_start();}

// prolog Nette\Bridges\ApplicationLatte\UIMacros

// snippets support
if (empty($_l->extends) && !empty($_control->snippetMode)) {
	return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars());
}

//
// main template
//
?>

<?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); }
call_user_func(reset($_b->blocks['content']), $_b, get_defined_vars())  ?>

<?php
}}