@extends('layouts.monitor') @section('title', $device->exists ? 'Edit Device' : 'Add Device') @section('content')

{{ $device->exists ? 'Edit device' : 'Add device' }}

Use the public IP and forwarded TCP/HTTP port.

@csrf @if($device->exists) @method('PUT') @endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@php $fields = [ ['name','Device name','Bogura POP MikroTik','text'], ['device_type','Device type','mikrotik','text'], ['group_name','Group','Core Network','text'], ['location','Location','Bogura POP','text'], ['host','Real IP / hostname','203.0.113.10','text'], ['port','Forwarded port','18291','number'], ['url','HTTP URL','http://203.0.113.10:18080/','url'], ['expected_status','Expected HTTP status','200','number'], ['timeout_seconds','Timeout seconds','5','number'], ['check_interval_seconds','Check interval seconds','60','number'], ['failure_threshold','Failures before offline','3','number'], ['recovery_threshold','Successes before recovery','2','number'], ]; @endphp @foreach($fields as [$name,$label,$placeholder,$type]) @endforeach
Cancel
@endsection