@php $all_slots = $lead->time_slots; $appointments = []; foreach($all_slots as $row){ if($row->type == array_flip(config('enum.time_slot_types'))['worklog']) continue; $appointments[] = $row; } @endphp @if(!empty($appointments))
Appointments
@foreach($appointments as $apo) {!! $apo->getWhatWhen() !!}
@endforeach
@endif

Appointments


@if(config('enum.install_states')[$lead->install_state] == 'installed_dry' || config('enum.install_states')[$lead->install_state] == 'installed_live')

Our records show you have been installed.

@elseif(!empty($available_slots) && config('enum.install_states')[$lead->install_state] == 'available' || config('enum.install_states')[$lead->install_state] == 'dry_available') @if(empty($lead->commit_state) && $active_page == 'survey')

You cannot book your survey / install before committing to a package. Please click here to continue.

@else
Click to book survey/install now or skip to book later
@if(config('enum.install_states')[$lead->install_state]=='dry_available') You are booking a ‘dry’ or ‘pre’ install. This means we will get the work done on your property ready for when the wider network build is completed to make your connection live.
You will not have a live internet connection after this appointment. However getting this work done now will reduce the time you have to wait for your eventual live connection.

@else

Please note: Your first appointment may not mean you'll be live on that date. We will conduct a survey to discuss how we will connect your property to our full fibre network. If possible, and you are in agreement, we will do our best to complete the install on the same day.

@endif

Please select a time slot for your appointment where somebody will be home. Note that the install involves drilling a small hole into your property for the fibre cable. If no time slots suit then you can leave unselected and we will get in touch with you to arrange a suitable time.

@foreach($install_slots as $slot_day)
{!! $slot_day['day_text'] !!}  {!! $slot_day['days_time'] !!}
@foreach($slot_day['slots'] as $slot) @php if($slot['available'] > 0){ $class = "btn btn-primary"; }else{ $class = "btn btn-disabled"; } @endphp
@if($slot['available'] > 0) {!! $slot['prefix'] !!} {!! $slot['start']->format('H:i') !!} - {!! $slot['end']->format('H:i') !!} @else Fully booked @endif

@endforeach
@endforeach
@if(sizeof($install_slots) > 0 && !empty($lead->commit_state)) {!! Form::open(['route' => 'book_install', 'method' => 'post']) !!} {!! Form::token() !!} {!! Form::hidden('uuid', $lead->uuid) !!} {!! Form::hidden('start', null, ['class'=>'booking_start']) !!} {!! Form::hidden('end', null, ['class'=>'booking_end']) !!} {!! Form::hidden('notify_lead_email', true) !!} {!! Form::hidden('notify_staff_email', true) !!}
{!! Form::close() !!} @endif @endif
@else

Our records show you have not yet been installed by one of our engineers.

@if(!empty($lead->getInstallBooking()))

Your install is booked for {!! $lead->getInstallBooking()->getWhenLine() !!}

{!! Form::open(['route' => 'cancel_booking', 'method' => 'post']) !!} {!! Form::token() !!} {{ Form::hidden('id', $lead->getInstallBooking()->id) }} {{ Form::hidden('notify_lead_email', true) }} {{ Form::hidden('notify_staff_email', true) }}
Cancel appointment
{!! Form::textarea('reason', '', [ 'class' => 'form-control', 'placeholder' => 'Cancellation reason', 'rows' => 4, 'required' => true, 'name' => 'reason', 'max' => 10000 ]) !!}
{!! Form::close() !!} @elseif(!empty($lead->getDryInstallBooking()))

Your pre/dry install is booked for {!! $lead->getDryInstallBooking()->getWhenLine() !!}

{!! Form::open(['route' => 'cancel_booking', 'method' => 'post']) !!} {!! Form::token() !!} {{ Form::hidden('id', $lead->getDryInstallBooking()->id) }} {{ Form::hidden('notify_lead_email', true) }} {{ Form::hidden('notify_staff_email', true) }}
Cancel appointment
{!! Form::textarea('reason', '', [ 'class' => 'form-control', 'placeholder' => 'Cancellation reason', 'rows' => 4, 'required' => true, 'name' => 'reason', 'max' => 10000 ]) !!}
{!! Form::close() !!} @else

We will contact you to arrange for an engineer to come to your property and carry out your install at a time that is convenient for you.

@endif

Feel free to contact us regarding your install arrangements. You can find our contact information by clicking here.

@endif