@if($time_slot->state == array_flip(config('enum.time_slot_states'))['complete'])
✔ Marked Completed
(complete again to add more notes)
@endif
{!! Form::open(['route' => 'complete_booking', 'method' => 'post']) !!}
{!! Form::token() !!}
{{ Form::hidden('id', $time_slot->id) }}
{{ Form::hidden('author_id', auth()->user()->id) }}
Complete booking
@php
/*
@foreach($time_slot->leads as $lead)
{!! Form::checkbox('notify_email[]', $lead->getEmail(), null,
['id' => 'notify_lead_email'.$lead->id, 'class' => 'p-0']) !!}
{!! Form::label('notify_lead_email'.$lead->id, 'Notify user by email ('.$lead->getEmail().')') !!}
@endforeach
@foreach($time_slot->staff as $staff)
{!! Form::checkbox('notify_email[]', $staff->getEmail(), null,
['id' => 'notify_staff_email'.$staff->id, 'class' => 'p-0']) !!}
{!! Form::label('notify_staff_email'.$staff->id, 'Notify staff by email ('.$staff->getEmail().')') !!}
@endforeach
*/
@endphp
@if(!empty($time_slot->leads) && $time_slot->leads->count() == 1)
@if(!empty($time_slot->leads->first()->package))
{!! $time_slot->leads->first()->package->infoTitle() !!}
@endif
{!! Form::text('gpon_sn',
$time_slot->leads->first()->gpon_sn, [
'placeholder' => 'GPON S/N',
'class' => 'form-control',
'maxlength' => 18]) !!}
Update installation state:
@if($time_slot->type == 2)
{!! Form::select('install_state',
config('enum.install_states'),
2) !!}
@else
{!! Form::select('install_state',
config('enum.install_states'),
$time_slot->leads->first()->install_state) !!}
@endif
Installed date
@if(empty($time_slot->leads->first()->install_date))
{!! Form::datetimeLocal('install_date', null, ['id' => 'install_date_input']) !!}
@else
{!! Form::datetimeLocal('install_date',
$time_slot->leads->first()->install_date->format('Y-m-d\TH:m')) !!}
@endif
@if($time_slot->type == 2)
Start billing? (Emails customer their order confirmation and direct debit setup instructions)
{!! Form::checkbox('start_billing', 1, 1,
['id' => 'start_billing', 'class' => 'p-0']) !!}
Request TrustPilot review? (Only works when starting billing)
{!! Form::checkbox('review', 1, null,
['id' => 'review', 'class' => 'p-0']) !!}
@endif
@endif
{!! Form::textarea('reason', '', [
'class' => 'form-control',
'placeholder' => 'Useful info about what was done (included in email)',
'rows' => 4,
'name' => 'info',
'max' => 10000
]) !!}
{!! Form::close() !!}
{!! Form::open(['route' => 'cancel_booking', 'method' => 'post']) !!}
{!! Form::token() !!}
{{ Form::hidden('id', $time_slot->id) }}
Cancel booking
@foreach($time_slot->leads as $lead)
{!! Form::checkbox('notify_email[]', $lead->getEmail(), null,
['id' => 'notify_lead_email'.$lead->id, 'class' => 'p-0']) !!}
{!! Form::label('notify_lead_email'.$lead->id, 'Notify user by email ('.$lead->getEmail().')') !!}
@endforeach
@foreach($time_slot->staff as $staff)
{!! Form::checkbox('notify_email[]', $staff->getEmail(), null,
['id' => 'notify_staff_email'.$staff->id, 'class' => 'p-0']) !!}
{!! Form::label('notify_staff_email'.$staff->id, 'Notify staff by email ('.$staff->getEmail().')') !!}
@endforeach
{!! Form::textarea('reason', '', [
'class' => 'form-control',
'placeholder' => 'Cancellation reason (included in email)',
'rows' => 4,
'name' => 'reason',
'max' => 10000
]) !!}
{!! Form::close() !!}