@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $gedungAliasMap = [ 'A' => 'trsgda', 'B' => 'trsgdb', 'C' => 'trsgdc', 'E' => 'trsgde', 'F' => 'trsgdf', ]; $currentGedung = strtoupper((string) ($record->gedung ?? '')); $topologyBackUrl = isset($gedungAliasMap[$currentGedung]) ? url($gedungAliasMap[$currentGedung]) : url($url_menu); $editKatName = ''; if (isset($record->kategori) && isset($kategori_list)) { $editKat = $kategori_list->firstWhere('id', $record->kategori); $editKatName = $editKat ? strtolower($editKat->nama_kategori) : ''; } $isEditSwitch = str_contains($editKatName, 'switch'); $isEditHasPort = str_contains($editKatName, 'switch') || str_contains($editKatName, 'server') || str_contains($editKatName, 'router'); @endphp
Topologi
Edit Perangkat
@include('components.alert')
@csrf @method('PUT')
{{-- Jenis Perangkat (Kategori) --}}
{{-- Nama Perangkat --}}
Pilih jenis perangkat terlebih dahulu, lalu cari nama perangkat
{{-- Port Sumber (Input Jaringan) --}} {{-- Terhubung Ke (Parent) --}}
Pilih switch parent atau langsung ke Server Pusat
{{-- Port --}}
Port pada parent device
{{-- Jumlah Port (only for Switch) --}} @php $editKatName = ''; if ($record->kategori) { $editKat = $kategori_list->firstWhere('id', $record->kategori); $editKatName = $editKat ? strtolower($editKat->nama_kategori) : ''; } $isEditHasPort = str_contains($editKatName, 'switch') || str_contains($editKatName, 'server') || str_contains($editKatName, 'router'); @endphp {{--
@if ($isEditHasPort && $record->jumlah_port) Saat ini {{ $record->jumlah_port }} port (slot virtual). Ubah angka untuk menambah/mengurangi jumlah slot. @else Jumlah port untuk perangkat ini (slot port dihasilkan secara virtual). @endif
--}}

Informasi Jaringan

{{--
Format: 192.168.x.x atau IPv6
--}}
{{-- Location --}}
Location diambil dari master lokasi
{{-- Link Gedung --}}
Untuk menghubungkan topologi antar gedung
{{-- Asset Photos from msjasset (read-only preview) --}} @php $editHasAssetPhotos = !empty($asset_photos) && count($asset_photos) > 0; @endphp
Master Asset @if ($editHasAssetPhotos) Foto dari sistem asset ({{ count($asset_photos) }} foto) @endif
@if ($editHasAssetPhotos) @foreach ($asset_photos as $idx => $assetImg)
Foto Asset {{ $idx + 1 }}
Foto Asset {{ $idx + 1 }}
@endforeach @endif
@if (!empty($record->foto_dekat))
Foto Asset {{ $idx + 1 }}
@endif Upload foto baru untuk mengganti (opsional, max 20MB) @error('foto_dekat') {{ $message }} @enderror
@if (!empty($record->foto_jauh))
Foto Asset {{ $idx + 1 }}
@endif Upload foto baru untuk mengganti (opsional, max 20MB) @error('foto_jauh') {{ $message }} @enderror
{{-- Keterangan --}}

Batal
@endsection @push('js') @endpush