<div style="width: 900px; margin: 0px auto; font-family: Arial; font-size: 14px; line-height: 1.4; color: #333333;">
	<?php if(isset($company->preferences['image']) && $company->preferences['image']): ?><img src="<?php echo e($company->image_full); ?>" align="center" style="max-width: 450px; display: block; margin: 0px auto;" /><?php endif; ?>
	<h1 style="text-align: center; font-size: 36px; margin-bottom: 5px; font-weight: 500;">WORK ORDER VISIT</h1>
	<p style="display: flex; flex-direction: row; align-items: center; margin: 0 0 10px;">
		<span style="padding-right: 20px;"><b>TO</b></span>
		<span style="width: 100%; flex-shrink: 1; border-bottom: 3px solid #f1f1f1; margin: 5px;"></span>
		<span style="padding-left: 20px;"><b>DETAILS</b></span>
	</p>
	<div style="width: 33%; float: left;">
		<?php echo e($work_order_visit->work_order->customer->name); ?><br />
		<a href="https://maps.google.com/?q=<?php echo e($work_order_visit->work_order->property->location['address']); ?>" target="_blank" style="color: #333333; text-decoration: none;"><?php echo e(substr($work_order_visit->work_order->property->location['address'], 0, 35)); ?>...</a><br />
		<b>P:</b> <?php echo e($work_order_visit->work_order->customer->contacts['phone_primary']); ?><br />
		<b>E:</b> <a href="mailto:<?php echo e($work_order_visit->work_order->customer->contacts['email']); ?>" target="_blank" style="color: #333333; text-decoration: none;"><?php echo e($work_order_visit->work_order->customer->contacts['email']); ?></a>
	</div>
	<div style="width: 34%; float: left; text-align: center;">
		<h3 style="color: #00adef; font-size: 24px; border-bottom: 1px solid; padding-bottom: 10px; margin: 0px;"><strong>Status</strong></h3>
		<h3 style="color: #00adef; font-size: 32px; font-weight: bold; margin-top: 10px;"><em><?php echo e($work_order_visit->status_formatted); ?></em></h3>
	</div>
	<div style="width: 33%; float: left; text-align: right;">
		<b>Work Order:</b> <?php echo e($work_order_visit->work_order->number); ?><br />
		<b>Work Order Visit:</b> <?php echo e($work_order_visit->number); ?><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>Technicians:</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; ?>
	</div>
	<?php if(count($work_order_visit->services)): ?>
	<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #f1f1f1; margin-bottom: 25px;">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #141E30; color: #FFFFFF; padding: 10px;">Services</th>
			</tr>
		</thead>
		<tbody>
			<?php $__currentLoopData = $work_order_visit->services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<tr style="font-size: 14px">
					<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;"><?php echo e($service->name); ?></td>
					<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;"><?php echo e($service->pivot->qty); ?></td>
				</tr>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</tbody>
	</table>
	<?php endif; ?>
	<?php if(count($work_order_visit->products)): ?>
	<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #f1f1f1; margin-bottom: 25px;">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #141E30; color: #FFFFFF; padding: 10px;">Products</th>
			</tr>
		</thead>
		<tbody>
			<?php $__currentLoopData = $work_order_visit->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<tr style="font-size: 14px">
					<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;"><?php echo e($product->name); ?></td>
					<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;"><?php echo e($product->pivot->qty); ?></td>
				</tr>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</tbody>
	</table>
	<?php endif; ?>
	<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #f1f1f1; margin-bottom: 25px;">
		<thead>
			<tr>
				<th colspan="2" style="background-color: #141E30; color: #FFFFFF; padding: 10px;">Notes To Customer</th>
			</tr>
		</thead>
		<tbody>
			<tr style="font-size: 14px">
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;">Weather Condition:</td>
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px; text-align: right;"><?php if(isset($work_order_visit->notes_to_customer['weather_condition'])): ?> <?php echo e($work_order_visit->notes_to_customer['weather_condition']); ?> <?php endif; ?></td>
			</tr>
			<tr style="font-size: 14px; background-color: #f0f3f5;">
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;">Do not Swim for:</td>
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px; text-align: right;"><?php if(isset($work_order_visit->notes_to_customer['not_swim_for'])): ?> <?php echo e($work_order_visit->notes_to_customer['not_swim_for']); ?> <?php endif; ?></td>
			</tr>
			<tr style="font-size: 14px">
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px;">Notes:</td>
				<td style="border-bottom: solid 1px #f1f1f1; padding: 15px; text-align: right;">
					<?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; ?>
					<?php if($work_order_visit->other_notes): ?>
						- <?php echo e($work_order_visit->other_notes); ?>

					<?php endif; ?>
				</td>
			</tr>
		</tbody>
	</table>
</div>