<?php $__env->startSection('content'); ?>
    <table class="main" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td class="alert alert-good">
                New <?php echo e($job->jobType); ?> job received from Aims
            </td>
        </tr>
        <?php /*<tr>
            <td class="content-wrap aligncenter">
                PLEASE DO NOT REPLY TO THIS EMAIL AS IT IS NOT MONITORED
            </td>
        </tr>*/ ?>
        <tr>
            <td class="content-wrap">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="content-block aligncenter">
                            <table class="data">
                                <tr>
                                    <td>
                                        <table class="data-items" width="100%" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><strong>Client</strong></td>
                                                <td><?php echo e($client->name); ?></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Building</strong></td>
                                                <td><?php echo e($building->name); ?></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Job Ref</strong></td>
                                                <td><a href="<?php echo e(config('params')['aims']['jobsUrl'].$job->id); ?>"><?php echo e($job->id); ?></a></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Logged</strong></td>
                                                <td><?php echo e(date('d/m/Y H:i', strtotime($job->createdDate))); ?></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Priority</strong></td>
                                                <td width=""><?php echo e(\App\Http\Middleware\RnwFunctions::validateDate($job->responseTime) ? date('d/m/Y H:i', strtotime($job->responseTime)) : $job->responseTime); ?></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Att SLA</strong></td>
                                                <td><?php echo e(date('d/m/Y H:i', strtotime($job->expectStartTime))); ?></td>
                                            </tr>
                                            <?php if(!empty($serviceProviderJob)): ?>
                                            <tr>
                                                <td><strong>ETA</strong></td>
                                                <td><?php echo e(date('d/m/Y H:i', strtotime($serviceProviderJob->expectStartTime))); ?></td>
                                            </tr>
                                            <?php endif; ?>
                                            <?php if(!empty($userNames)): ?>
                                                <tr>
                                                    <td><strong>Engineers</strong></td>
                                                    <td><?php echo e(implode(', ', $userNames)); ?></td>
                                                </tr>
                                            <?php endif; ?>
                                            <tr>
                                                <td><strong>Discipline</strong></td>
                                                <td><?php echo e($job->discipline); ?></td>
                                            </tr>
                                            <tr>
                                                <td><strong>Fault Report</strong></td>
                                                <td><?php echo e($job->faultReport); ?></td>
                                            </tr>
                                            <?php if($job->jobType != 'Quote Request'): ?>
                                                <tr>
                                                    <td><strong>Financial Limit</strong></td>
                                                    <td><?php echo e($job->spendLimit); ?></td>
                                                </tr>
                                            <?php endif; ?>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <?php /*<tr>
                        <td class="content-block aligncenter">
                            <a href="http://rnwholdings.com" class="btn btn-good">Accept</a>
                            <a href="http://rnwholdings.com" class="btn btn-bad">Decline</a>
                        </td>
                    </tr>*/ ?>
                </table>
            </td>
        </tr>
    </table>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('emails.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>