{{-- Room area editor (FloorPlanForm): click the corners of a room on the plan picture; stored as "x,y x,y …" in percent of the picture. The other rooms are shown as blue outlines for orientation. --}} @php $planPhoto = \App\Models\Photo::query()->find($get('../../photo_id')); $currentRoomId = $get('id'); $otherAreas = collect($get('../../rooms') ?? []) ->reject(fn ($room): bool => ($room['id'] ?? null) === $currentRoomId) ->map(fn ($room): string => collect(\App\Models\FloorPlan::points($room['points'] ?? null))->map(fn ($point): string => $point[0].','.$point[1])->implode(' ')) ->filter() ->values(); @endphp @if (! $planPhoto)

Bitte oben zuerst das Grundriss-Bild wählen.

@else
Letzten Punkt entfernen Fläche leeren

Neue Ecke: auf das Bild klicken. Ecke verschieben: Punkt mit der Maus ziehen oder anklicken und mit den Pfeiltasten bewegen (mit Umschalt in größeren Schritten). Ecke einfügen: „+“ auf einer Kante. Ecke löschen: Doppelklick auf den Punkt oder Entf. Blau umrandet: die anderen Räume.

@endif