rooms) == 0) style="display: none" @elseif (!$is_update || ($is_update && in_array(3, $event->eventFor))) style="display: none" @endif>
Select specific teachers and parents
@if ($is_update)
@endif
rooms) == 0) style="display: none" @elseif (!$is_update || ($is_update && in_array(3, $event->eventFor))) style="display: none" @endif>
@if(isset($rooms) && !empty($rooms))
@php $activeRoom = false; @endphp
@foreach($rooms as $key => $room)
@php $selectedRoom = $is_update ? $event->rooms->firstWhere('room', $room->_id) : null; @endphp
-
{{$room->name}}
@php
if ($selectedRoom && !$activeRoom) {
$activeRoom = true;
}
@endphp
@endforeach
@php $activeRoom = false; @endphp
@foreach ($rooms as $key => $room)
@php $selectedRoom = $is_update ? $event->rooms->firstWhere('room', $room->_id) : null; @endphp
Loading...
_id][applyToAll]", $selectedRoom ? ($selectedRoom->applyToAll ? 'true' : 'false') : 'true') }}">
@php
$count = 0;
if ($selectedRoom && !$activeRoom) {
$activeRoom = true;
}
@endphp
@foreach ($teachers as $key => $teacher)
@if (in_array($room->_id, $teacher->rooms))
@php $count += 1; @endphp
@endif
@endforeach
@foreach ($children as $key => $child)
@if ($room->_id == $child->room)
@php $count += 1; @endphp
@endif
@endforeach
@if ($count == 0)
Child not found in this room. Please add child in this room.
@endif
@endforeach
@else
Please create a room before setup billing for children.
Add room
@endif