<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">
		<style type="text/css">
			* {margin:0; padding:0;}
			body {font-family:Lucida Grande,Lucida Sans,Arial,sans-serif; font-size: 9pt; line-height:120%; color:#151515; background:#ffffff; width:800px;}

			h1 {font-size: 18pt; width: 800px; padding-bottom: 4px; border-bottom: 2px solid #1c43a6; color: #1c43a6;}
			h2 {font-weight: bold; font-size: 14pt; color: #990000;}
			h3 {font-weight: bold; font-size: 12pt; color: #0d2458; margin: 0 0 0.5em 0;}

			table {border-collapse: collapse;}

			.line  {border-bottom: 1px solid #7d7b7d;}			
		</style>
	</head>
	<body>
		
		<h1>OSAA Student Eligibility Request Form <?php echo (end($info['object']->data->decisions)->is_eligible) ? 'Approved' : 'Denied'; ?></h1>			

		<p>
			Your OSAA Student Eligibility Request Form has been <?php echo (end($info['object']->data->decisions)->is_eligible) ? 'approved' : 'denied'; ?>.
		</p>

		<?php if ($info['attach']): ?>
			<p>
				Please find attached a notification letter with details of the decision regarding the hardship waiver for <?php echo $info['object']->student->getDisplayName(); ?> to be eligible to participate at <?php echo $info['object']->school->name; ?> for the <?php echo $info['object']->school_year->slug; ?> school year.  (OSAA Form ID # <?php echo $info['object']->waiver->id; ?>)
			</p>
		<?php else: ?>
			<p>
				This is in regards to the hardship waiver for <?php echo $info['object']->student->getDisplayName(); ?> to be eligible to participate at <?php echo $info['object']->school->name; ?> for the <?php echo $info['object']->school_year->slug; ?> school year.  (OSAA Form ID # <?php echo $info['object']->waiver->id; ?>)
			</p>
		<?php endif; ?>

		<p>
			<?php if (end($info['object']->data->decisions)->is_eligible): ?>
				<?php echo $info['object']->student->getDisplayName(); ?> is eligible effective <?php echo date('n/j/Y', strtotime(end($info['object']->data->decisions)->eligible_at)); ?>.
			<?php else: ?>
				<?php echo $info['object']->student->getDisplayName(); ?> is not eligible.
			<?php endif; ?>
		</p>

		<?php if (!end($info['object']->data->decisions)->is_eligible): ?>
			<p>
				<?php /*  Executive Board Appeal  */ ?>
	            <?php if (Helpers::strEqual($info['object']->waiver_type->default_handler_type, 'Executive Director')): ?>
	                Appeals of decisions made by the OSAA Executive Director are heard by the OSAA Executive Board.  To appeal this decision, please make a request via e-mail to the OSAA Executive Director, <a href="mailto:peterw@osaa.org?subject=Eligibility%20Appeal%20Waiver%20ID%20<?php echo $info['object']->waiver->id; ?>">peterw@osaa.org</a>.

	                <br /><br />

	                Any party filing an appeal of a decision made by the OSAA Executive Director to the OSAA Executive Board shall be assessed a filing fee of $100 to defray the costs to the Association of assembling the respective appeals bodies to hear the appeal.	                
	            
	            <?php /*  Eligibility Appeals Board  */ ?>
	            <?php else: ?>

	                Appeals of decisions made by the District Athletic Committee are heard by the OSAA Eligibility Appeals Board.  To appeal this decision, please make a request via e-mail to the OSAA Executive Director, <a href="mailto:peterw@osaa.org?subject=Eligibility%20Appeal%20Waiver%20ID%20<?php echo $info['object']->waiver->id; ?>">peterw@osaa.org</a>.
	                
	                <br /><br />

	                Any party filing an appeal of a decision made by the District Athletic Committee to the OSAA Eligibility Appeals Board shall be assessed a filing fee of $100 to defray the costs to the Association of assembling the respective appeals bodies to hear the appeal.	                

	            <?php endif; ?>
			</p>
		<?php endif; ?>		
		
		Regards,<br /><br />
		Oregon School Activities Association<br />
		<a href="http://www.osaa.org">www.osaa.org</a>

		<br /><br />	

		<p style="font-size: 8pt; line-height: 110%;">
			This is an automatically generated message and was sent to <?php echo Helpers::arrayToList ($info['to']); ?>			
			<?php if (count($info['cc']) > 0): ?>
				and copied to <?php echo Helpers::arrayToList ($info['cc']); ?>
			<?php endif; ?>
		</p>
		
	</body>
</html>