. * * @link https://www.librenms.org * @copyright 2020 Tony Murray * @author Tony Murray */ namespace App\Http\Controllers\Device\Tabs; use App\Models\Device; use LibreNMS\Interfaces\UI\DeviceTab; class ServicesController implements DeviceTab { public function visible(Device $device): bool { return (bool) \LibreNMS\Config::get('show_services') && $device->services()->exists(); } public function slug(): string { return 'services'; } public function icon(): string { return 'fa-cogs'; } public function name(): string { return __('Services'); } public function data(Device $device): array { return []; } }