
<?php $__env->startSection('content'); ?>

<?php if(count($errors)): ?>
<div class="row errors">
	<div class="columns small-12">
		<div data-alert class="alert-box alert">
			<p class="lead">Please fix the following errors:</p>
			<ul>
			<?php foreach($errors->all() as $error): ?>
			  <li><?php echo $error; ?></li>
			<?php endforeach; ?>
			</ul>
			<a href="#" class="close">&times;</a>
		</div>
	</div>
</div>
<?php endif; ?>

<?php if(Session::has('errorMsg')): ?>
<div class="row" class="errors">
	<div class="columns small-12">
		<div data-alert class="alert-box alert">
			<p class="lead"><?php echo Session::get('errorMsg'); ?></p>
			<a href="#" class="close">&times;</a>
		</div>
	</div>
</div>
<?php endif; ?>

<div class="row">
	<div class="columns small-12">
		<form method="post" id="dpr_download" action="<?php echo e(URL::to('dpr/data')); ?>">
			<div class="columns small-6">
				<label>Start date: </label>
				<input type="date" name="start_date">
			</div>
			<div class="columns small-6">
				<label>End date: </label>
				<input type="date" name="end_date">
			</div>
			<div class="columns small-12">
			<label>Filter: </label>
				<select name="filter" id="dpr_filter">
					<option value="providers">Providers</option>
					<option value="laboratories">Laboratories</option>
					<option value="employers">Employers</option>
				</select>
			</div>
			<div class="columns small-6">
				<div id="dpr_providers" >
					<label>Providers: </label>
					<select name="providers[]" multiple style="height: 100px">
					<?php foreach($providers as $provider): ?>
						<option value="<?php echo $provider->full_name; ?>">
							<?php echo $provider->full_name; ?>
						</option>
					<?php endforeach; ?>
					</select>
				</div>
			</div>
			<div class="columns small-6">
				<div id="dpr_laboratories">
					<label>Laboratories: </label>
					<select name="laboratories[]" multiple style="height: 100px">
					<?php foreach($labs as $lab): ?>
						<option value="<?php echo $lab->labid1; ?>"><?php echo $lab->labid1; ?></option>
					<?php endforeach; ?>
					</select>
				</div>
			</div>
			<div class="columns small-6">
				<div id="dpr_employers">
					<label>Employers: </label>
					<select name="employers[]" multiple style="height: 100px">
					<?php foreach($employers as $employer): ?>
						<option value="<?php echo $employer->labid2; ?>"><?php echo $employer->labid2; ?></option>
					<?php endforeach; ?>
					</select>
				</div>
			</div>
			<div class="columns small-12">
				<?php echo $__env->make('dpr.token', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<!-- a href="#" onclick="sendCode('<?php echo URL::to('dpr/data/code'); ?>')" class="button">Next</a --> 
				<a href="#" onclick="DPRDownload()" class="button">Download</a>
			</div>
		</form>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>