@extends('layouts.master') @section('title') nas @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Networking @endslot @slot('title') Nas @endslot @endcomponent
@if (session('status')) @endif @if (session('error'))
@endif
Nas devices
@can('create nas') Create Nas @endcan
@if(count($nas))
@can('configure nas') @if(setting('simpleconfig') == 'enabled') @endif @endcan @foreach($nas as $n) @can('configure nas') @if(setting('simpleconfig') == 'enabled') @endif @endcan @endforeach
Nas IP Status Ping Name Type PortConfigureServices Action
{{ $n->nasname }} @if ($n->reachable) Reachable @else Unreachable @endif @if ($n->rtt_ms) {{ $n->rtt_ms }} ms @else N/A @endif {{ $n->shortname }} {{ $n->type }} {{ $n->nasprofile->api_port }} @php $configEnabled = $n->nasprofile->config == 1 && setting('nasreconfig') == 'enabled'; $configDisabled = $n->nasprofile->config == 0; $route = route('nas.configLogin', ['nas' => $n->id]); @endphp @if($configEnabled) Reconfigure @elseif($configDisabled) Configure @else

@endif
{{count($n->services)}}   
    @can('update nas')
  • @endcan @can('delete nas')
  • @endcan
@else
Sorry! No Nas device Found

You have not added any nas device. You need atleast one to proceed

@endif
@foreach($nas as $n) @endforeach
@if(count($nas))

Service distribution

@endif @endsection @section('script') @endsection