@extends('layouts.'.env('THEME')) @section('moreStyle') @include('staff.schedule.style') @endsection @section('content')
@if($lead->isInstalled())
Customer is installed

If this in incorrect change their installation state here: customer admin panel

@elseif(empty($time_slot))

Book install

{{ $lead->fullname }}
{{ $lead->address->address_line_1 }} {{ $lead->address->address_line_2 }} {{ $lead->address->address_line_3 }} {{ $lead->address->postcode }}

{!! Form::open(['route' => 'book_install', 'method' => 'post']) !!} {!! Form::token() !!} {!! Form::hidden('uuid', $lead->uuid) !!}
Assign staff
@foreach($a_staff as $sta)
@php $checked = false; @endphp {!! Form::checkbox('attach_staff['.$sta->id.']', $sta->id, $checked, ['id' => 'attach_staff_'.$sta->id, 'class' => 'p-0']) !!} {!! Form::label('attach_staff_'.$sta->id, $sta->user->name) !!}
@endforeach @php /*
Engineer {!! Form::select('staff_id', $staff_select, null, ['id' => 'staff-select']) !!} Days ahead {!! Form::number('', 14, ['id' => 'days-ahead']) !!}
*/ @endphp
{!! Form::number('', 14, ['id' => 'days-ahead']) !!}
Start:   {!! Form::dateTimeLocal('start', null, ['id' => 'start']) !!}
Finish:   {!! Form::dateTimeLocal('end', null, ['id' => 'end']) !!}
@php $no_note_state = true; $note_required = false; @endphp {!! Form::hidden('author_id', auth()->user()->id) !!} @include('staff.notes.form')
@include('admin.customers.notify_fields')
{!! Form::submit('Book', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else
Install booked
With {!! $staff->first()->user->name !!}.
{!! $time_slot->getWhenLine() !!} @if(!empty($lead))
{!! $lead->fullname !!}
{!! $lead->address->full() !!} @endif
@include('admin.timeslot.appointment_closing') @endif
@endsection @section('script') @include('staff.schedule.script') @endsection