@extends('layouts.app') @section('header')
Administration

Settings

Instance-wide switches. They apply to every company.
@endsection @section('content') @foreach (['success' => 'green', 'warning' => 'orange'] as $key => $colour) @if (session($key))
{{ session($key) }}
@endif @endforeach @php $badge = match ($workspaceStatus) { 'off' => ['bg-secondary-lt', 'ti-plug-off', 'Disconnected'], 'unreachable' => ['bg-red-lt', 'ti-alert-triangle', 'Not answering'], default => ['bg-green-lt', 'ti-plug-connected', 'Connected'], }; @endphp {{-- ── Workspace database ───────────────────────────────────────────── --}}

Workspace database

{{ $badge[2] }}

Read-only, and on another host. Worklance uses it only to decorate rows it already holds locally — an employee's display name, their employee id, and task titles. Everything it provides has a local fallback, so switching it off degrades those details rather than stopping any tracking.

Host
{{ $workspaceHost ?: '—' }}
Database
{{ $workspaceDb ?: '—' }}
@if ($workspaceStatus === 'unreachable')
The workspace stopped answering, so Worklance has backed off by itself for {{ $cooldown }}s at a time. It will keep retrying on that cycle. Switch it off below if you would rather it stopped trying entirely until you have confirmed the host is healthy.
@endif
@csrf
While this is off, nothing dials that host at all — no connection is attempted, so a database that is down or slow cannot cost a single request anything. Employee names fall back to the copy Worklance already stores, and screenshots show task ids rather than titles.
@csrf Dials once, whatever the switch says — so you can check whether it is back without turning it on to find out.
@endsection