{!! Form::hidden('creator_user_id', auth()->user()->id) !!}
Add to your worklog for a day.
Start @php $start_date = \Carbon\Carbon::now(); if(!empty($time_slot->start)){ $start_date = $time_slot->start->format('Y-m-d\TH:m'); } @endphp {!! Form::datetimeLocal('start', $start_date, ['id' => 'start']) !!}
Finish @php $end_date = null; if(!empty($time_slot->end)){ $end_date = $time_slot->end->format('Y-m-d\TH:m'); } @endphp {!! Form::datetimeLocal('end', $end_date, ['id' => 'end']) !!}
Area If the work was conducted in one of our areas then please select it.
{!! Form::select('area_id', $areas, null, ['id' => 'area-select']) !!}
If the work was concerning a customer use the box below to search the customer by name, first line of address or postcode. Click the customer to add them.
Link to staff
@foreach($staff as $sta)
@php $checked = false; if(!empty($preSelectedStaff[$sta->id])) $checked = true; @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