@extends('layouts.app') @section('title','Configuración de Alertas') @section('page-title','Alertas Configurables') @section('breadcrumb') @endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT')

Umbrales de Alertas por Módulo

Configure los umbrales que disparan cada alerta en el Dashboard Gerencial y los paneles de cada módulo. Las alertas inactivas no se mostrarán.
@php $iconos = [ 'logistica' => 'fas fa-truck text-info', 'calidad' => 'fas fa-flask text-success', 'produccion' => 'fas fa-industry text-primary', 'mantenimiento'=> 'fas fa-wrench text-warning', 'rrhh' => 'fas fa-users text-secondary', 'gerencial' => 'fas fa-chart-line text-danger', 'general' => 'fas fa-cog text-muted', ]; $etiquetas = [ 'logistica' => 'Logística', 'calidad' => 'Calidad', 'produccion' => 'Producción', 'mantenimiento'=> 'Mantenimiento', 'rrhh' => 'RRHH', 'gerencial' => 'Gerencial', 'general' => 'General', ]; $i = 0; @endphp @foreach($modulos as $modulo => $alertas)

{{ $etiquetas[$modulo] ?? ucfirst($modulo) }}

@foreach($alertas as $alerta) @php $i++; @endphp @endforeach
Alerta Descripción Umbral Activa
{{ $alerta->label }} {{ $alerta->descripcion }}
@if($alerta->unidad)
{{ $alerta->unidad }}
@endif
activa ? 'checked' : '' }}>
@endforeach
@endsection