@extends('layouts.vertical') @php $is_update = false; if(isset($checklistData) && !empty($checklistData)){ $is_update = true; } $type = 1; if(app('request')->input('type')){ $type = app('request')->input('type'); } @endphp @section('css') @endsection @section('breadcrumb')

{{ $is_update ? 'Edit' : 'New' }} checklist

@endsection @section('content')
@csrf @if($is_update) @endif
{{ $is_update ? 'Edit' : 'Add new' }} checklist
@if(!$is_update)
type == 21 ? 'checked' : ( $type == 1 ? 'checked' : '') }}>
type == 22 ? 'checked' : ( $type == 2 ? 'checked' : '') }}>
type == 60 ? 'checked' : ( $type == 3 ? 'checked' : '') }}>
@endif

Custom checklists can only be used to complete forms that need to be completed on behalf of individual children, they cannot be used for whole rooms. To create whole room forms or checklists, please use the compliance > cleaning sheet or daily assessment section. If you need advise on what area to use for your specific form, use the live chat button, to contact us.

@if($is_update && $checklistData->type == 21) @php $count = 0; @endphp @foreach($checklistData->checklist as $checklist)
@php $count++; @endphp @endforeach @else
@endif
@if($is_update && $checklistData->type == 22) @php $count = 0; @endphp @foreach($checklistData->checklist as $checklist)
@php $count++; @endphp @endforeach @else
@endif
@if(!$is_update)
@endif
@if($is_update && $checklistData->type == 60) @php $count = 0; @endphp @foreach($checklistData->checklist as $checklist)
@php $count++; @endphp @endforeach @else
@endif
type == 60) || $type == 3) ? '' : 'style=display:none;' }}>
Schedule

Once a schedule of one time or every day is selected, the schedule cannot be edited. You can change who has access to the checklist or the content of specific checklists at any time.

{{--

One time: Parents can only complete the checklist by selecting the specific date the checklist was sent to them. The checklist can only be completed once. Parents can still edit the checklist.

--}}

Every day: Sharing a checklist with this option means the checklist is available to parents at all times and can be completed multiple times (i.e. on a Monday and then again on a Friday).

Schedules enable you to choose when the checklist should be viewable and sent to the selected recipient(s).

{{--
type == 60 && $checklistData->scheduleType == 71) || $type == 3) ? 'checked' : '' }} {{ ($is_update) ? 'disabled' : ''}}>
--}}
type == 60 && $checklistData->scheduleType == 77) ? 'checked' : 'checked' }} {{ ($is_update) ? 'disabled' : ''}}>
type == 60 && $checklistData->scheduleType == 69) ? '' : 'style=display:none;' }}>
Optional
Optional
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->monday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->monday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->tuesday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->tuesday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->wednesday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->wednesday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->thursday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->thursday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->friday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->friday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->saturday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->saturday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 69 && !empty($checklistData->weekdays->sunday)) @php $count = 0; @endphp @foreach($checklistData->weekdays->sunday as $item)
@endforeach @else
A schedule has not been created for this day.
@endif
Select days
type == 60 && $checklistData->scheduleType == 70) ? '' : 'style=display:none;' }}>
Select days

0000-00-00

@if($is_update && $checklistData->type == 60 && $checklistData->scheduleType == 70 && !empty($checklistData->calendar)) @php $count = 0; @endphp @foreach($checklistData->calendar as $calendar)

{{\Carbon\Carbon::parse($calendar->date)->format('d/m/Y')}}

@foreach($calendar->time as $time)
@endforeach
@endforeach @endif
type == 60) || $type == 3) ? '' : 'style=display:none;' }}>
Recipients

Select to share this checklists with educators or parents. Remember, checklists can be completed for or on behalf of children. PLEASE NOTE: Once all of the relevant recipients have completed the checklist, you can select ‘don’t share with anyone’ to hide the checklist from the educator/parent app. This will stop educators/parents from editing their answers. If you'd like to watch or send a video to parents on how to complete custom checklists, using the TeachKloud for parents app, please click here.

@if (!$is_update) @endif
type == 60 && $checklistData->personType == 63 && $checklistData->sharingType == 75)) ? 'checked' : '' }}>
type == 60 && $checklistData->personType == 63 && $checklistData->sharingType == 78) ? 'checked' : '' }}>
type == 60 && $checklistData->personType == 63 && $checklistData->sharingType == 76) ? 'checked' : '' }}>
Share by room
@if(isset($rooms) && !empty($rooms)) @foreach ($rooms as $key=>$room)
appliedTo) && in_array($room->_id, $checklistData->appliedTo) ) ? 'checked': '' }} data-error="teacher-room-error">
@endforeach @endif
Share by children
@if(isset($rooms) && !empty($rooms)) @foreach ($rooms as $key=>$room) @if(isset($room->childList) && !empty($room->childList))
{{$room->name}}
{{$room->description}}
@if(isset($room->childList) && !empty($room->childList))
@foreach ($room->childList as $child)
@endforeach
@endif
@endif @endforeach @endif
type == 60 && $checklistData->personType == 62 && $checklistData->sharingType == 72) ? 'checked' : '' }}>
type == 60 && $checklistData->personType == 62 && $checklistData->sharingType == 73) ? 'checked' : '' }}>
type == 60 && $checklistData->personType == 62 && $checklistData->sharingType == 76) ? 'checked' : '' }}>
Share this with selective parents
@if(isset($rooms) && !empty($rooms)) @foreach ($rooms as $key=>$room) @if(isset($room->childList) && !empty($room->childList))
{{$room->name}}
{{$room->description}}
@if(isset($room->childList) && !empty($room->childList))
@foreach ($room->childList as $child)
@endforeach
@endif
@endif @endforeach @endif
Select Management Checklist/Room
appliedTo)) || (old('appliedTo')!="" && in_array($schoolId, old('appliedTo'))) ? 'checked' : '' }} data-error="room-error">
@if(isset($rooms) && !empty($rooms)) @foreach ($rooms as $room)
_id, $checklistData->appliedTo)) || (old('appliedTo')!="" && in_array($room->_id, old('appliedTo'))) ? 'checked' : '' }} data-error="room-error">
@endforeach @endif @if($is_update && isset($checklistData->rooms) && !empty($checklistData->rooms)) @foreach ($checklistData->rooms as $room)
_id, $checklistData->appliedTo) ? 'checked' : '' }} data-error="room-error">
@endforeach @endif
{{--@if ($is_update && in_array($checklistData->personType, ['64','65'])) @foreach($checklistData->recepients as $recepient) @if (isset($recepient->children) && !empty($recepient->children)) @foreach($recepient->children as $child) @endforeach @endif @endforeach @endif --}}
@endsection @section('script-bottom') @endsection