@extends('dashboard.layout.layout') @section('content')

სადარბაზოების და შლაგბაუმების რედაქტირება

{{ $block->name }}

დომოფონები

@php $anyRTU = $block->entrances->contains(function ($entrance) { return in_array($entrance->domophone_model, ['RTU5024', 'RTU5024-TEL']); }); @endphp
@csrf
@foreach ($block->entrances as $index => $entrance)
{{ ($entrance->type ?? 'entrance') == 'barrier' ? 'შლაგბაუმი' : 'სადარბაზო' }} {{ $index + 1 }}
@endforeach
კორპუსის დომოფონის მონაცემები @if ($settingsLocked) (დაბლოკილია) @endif
@if ($settingsLocked)
პარამეტრები დაბლოკილია, რადგან კოდები უკვე გენერირებულია.
@endif
@csrf

ZKTeco კონფიგურაცია

@if (!empty($block->device_endpoints)) @php $deviceRelayRanges = collect($block->device_relay_ranges ?? []); @endphp @if ($deviceRelayRanges->isNotEmpty())
@foreach ($deviceRelayRanges as $range) @if (!empty($range['door_start']) && !empty($range['door_end']))
მოწყობილობა {{ $range['endpoint_index'] + 1 }}: {{ $range['ip'] }} - {{ $range['port'] }} - {{ $range['model'] }} → რელეები {{ $range['door_start'] }}-{{ $range['door_end'] }}
@endif @endforeach
@endif
@csrf
@for ($door = 1; $door <= $block->zkteco_relay_count; $door++) @php $doorConfig = $zktecoDoors->firstWhere('door_number', $door); $relayOwner = $deviceRelayRanges->first(function ($range) use ($door) { if (empty($range['door_start']) || empty($range['door_end'])) { return false; } return $door >= $range['door_start'] && $door <= $range['door_end']; }); $localRelay = $relayOwner ? $door - $relayOwner['door_start'] + 1 : null; @endphp @endfor
რელე რომელ მოწყობილობას ეკუთვნის ტიპი
{{ $door }} @if ($relayOwner) მოწყობილობა {{ $relayOwner['endpoint_index'] + 1 }}
{{ $relayOwner['ip'] }} - {{ $relayOwner['port'] }} - {{ $relayOwner['model'] }}
ლოკალური რელე: {{ $localRelay }} / {{ $relayOwner['relay_count'] }}
@else @endif
სადარბაზო: წვდომა ყველა მომხმარებელს ყოველთვის.
ლიფტი: წვდომა მხოლოდ გადახდილ მომხმარებლებს.
@else
ZKTeco არ არის კონფიგურირებული.
დაამატეთ მოწყობილობები კორპუსის პარამეტრებში.
@endif
@if (!empty($block->device_endpoints)) @endif
@endsection