<p>Hi <?php echo e($work_order_visit->work_order->customer->name); ?>!</p>
<p>
	<b>Status:</b> <?php echo e($work_order_visit->status_formatted); ?><br />
	<b>Work Order Number:</b> #WO<?php echo e($work_order_visit->work_order_id); ?><br />
	<b>Work Order Visit Number:</b> #WOV<?php echo e($work_order_visit->id); ?><br />
	<b>When:</b> <?php echo e($work_order_visit->date_formatted); ?> <?php echo e($work_order_visit->start_time_formatted); ?> - <?php echo e($work_order_visit->end_time_formatted); ?><br />
	<?php if(count($work_order_visit->employees)): ?>
		<b>By:</b>&nbsp;
		<?php $__currentLoopData = $work_order_visit->employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $employee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<?php echo e($employee->name); ?>,&nbsp;
		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		<br />
	<?php endif; ?>
</p>
<?php if(count($work_order_visit->services)): ?>
	<p>
		<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
			<thead>
				<tr>
					<th style="background-color: #00bcd4; color: #FFFFFF">Service(s)</th>
				</tr>
			</thead>
			<tbody>
				<?php $__currentLoopData = $work_order_visit->services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td><?php echo e($service->name); ?></td>
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</p>
<?php endif; ?>
<?php if(count($work_order_visit->products)): ?>
	<p>
		<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
			<thead>
				<tr>
					<th style="background-color: #00bcd4; color: #FFFFFF">Product(s)</th>
				</tr>
			</thead>
			<tbody>
				<?php $__currentLoopData = $work_order_visit->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td><?php echo e($product->name); ?></td>
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</p>
<?php endif; ?>
<p>
	<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #00bcd4; color: #FFFFFF">Technical Information</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td width="80%"><b>Was Filter Cleaned?</b></td>
				<td><?php echo e($work_order_visit->was_filter_cleaned_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Tiles Brushed?</b></td>
				<td><?php echo e($work_order_visit->tiles_brushed_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Skim Top of the Pool?</b></td>
				<td><?php echo e($work_order_visit->skim_top_pool_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Vacuum Bottom of the Pool?</b></td>
				<td><?php echo e($work_order_visit->vacuum_bottom_pool_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Empty Skimmer?</b></td>
				<td><?php echo e($work_order_visit->empty_skimmer_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Test and Adjust Water?</b></td>
				<td><?php echo e($work_order_visit->test_adjust_water_formatted); ?></td>
			</tr>
			<tr>
				<td><b>Phosphate Treatment?</b></td>
				<td><?php echo e($work_order_visit->phosphate_treatment_formatted); ?></td>
			</tr>
		</tbody>
	</table>
</p>
<p>
	<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #00bcd4; color: #FFFFFF">Chemicals</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td width="80%"><b>PH</b></td>
				<td><?php echo e($work_order_visit->chemicals['ph']); ?></td>
			</tr>
			<tr>
				<td><b>Chlorine</b></td>
				<td><?php echo e($work_order_visit->chemicals['chlorine']); ?></td>
			</tr>
			<tr>
				<td><b>Alkalinity</b></td>
				<td><?php echo e($work_order_visit->chemicals['alkalinity']); ?></td>
			</tr>
			<tr>
				<td><b>Calcium</b></td>
				<td><?php echo e($work_order_visit->chemicals['calcium']); ?></td>
			</tr>
			<tr>
				<td><b>Stabilizer</b></td>
				<td><?php echo e($work_order_visit->chemicals['stabilizer']); ?></td>
			</tr>
			<tr>
				<td><b>Conditioner</b></td>
				<td><?php echo e($work_order_visit->chemicals['conditioner']); ?></td>
			</tr>
			<tr>
				<td><b>Salt Level</b></td>
				<td><?php echo e($work_order_visit->chemicals['salt_level']); ?></td>
			</tr>
			<tr>
				<td><b>Phosphate</b></td>
				<td><?php echo e($work_order_visit->chemicals['phosphate']); ?></td>
			</tr>
		</tbody>
	</table>
</p>
<p>
	<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #00bcd4; color: #FFFFFF">Notes To Customer</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td width="80%"><b>Weather Condition</b></td>
				<td><?php echo e($work_order_visit->notes_to_customer['weather_condition']); ?></td>
			</tr>
			<tr>
				<td><b>Do not Swim for</b></td>
				<td><?php echo e($work_order_visit->notes_to_customer['not_swim_for']); ?></td>
			</tr>
			<tr>
				<td colspan="2">
					<?php if($work_order_visit->notes_to_customer['add_water']): ?>
						- Pool water level is low. Please add water<br />
					<?php endif; ?>
					<?php if($work_order_visit->notes_to_customer['pool_door_inaccessible']): ?>
						- Pool doors inaccessible or pet in vicinity<br />
					<?php endif; ?>
					<?php if($work_order_visit->notes_to_customer['no_power']): ?>
						- No power to equipment. Please check breakers<br />
					<?php endif; ?>
					<?php if($work_order_visit->notes_to_customer['phosphate_treatment']): ?>
						- Phosphate treatment. Pool will be cloudy for 24-48 hours<br />
					<?php endif; ?>
					<?php if($work_order_visit->notes_to_customer['call_office']): ?>
						- Please call the office<br />
					<?php endif; ?>
					<?php if($work_order_visit->notes_to_customer['time_change_filter_cartridge']): ?>
						- Time to change the filter cartridge
					<?php endif; ?>
				</td>
			</tr>
			<?php if($work_order_visit->other_notes): ?>
				<tr>
					<td colspan="2"><?php echo e($work_order_visit->other_notes); ?></td>
				</tr>
			<?php endif; ?>
		</tbody>
	</table>
</p>
<?php if(count($work_order_visit->pictures)): ?>
	<p>
		<table width="100%" cellpadding="5" border="0" style="border: solid 1px #EFEFEF">
			<thead>
				<tr>
					<th colspan="3" style="background-color: #00bcd4; color: #FFFFFF">Picture(s)</th>
				</tr>
			</thead>
			<tbody>
				<?php $__currentLoopData = $work_order_visit->pictures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $picture): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td width="20%"><?php echo e($picture->created_at_formatted); ?></td>
						<td width="60%">
							<a href="<?php echo e($picture->url_full); ?>" target="_blank">
								<?php echo e($picture->url_full); ?>

							</a>
						</td>
						<td width="20%"><?php echo e($picture->when_formatted); ?></td>
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</p>
<?php endif; ?>
<p><?php echo e($company->name); ?></p>