@extends('layouts.app', ['title' => term('nav_workflows','Workflows / Automatizaciones')]) @section('header_actions') @endsection @section('content')
{{ $workflows->count() }}
Workflows
{{ $workflows->where('is_active', true)->count() }}
Activos
{{ $workflows->sum('runs_count') }}
Ejecuciones
{{ $workflows->max('last_run_at')?->diffForHumans() ?? 'Nunca' }}
Ultimo
@forelse($workflows as $wf)
{{ $wf->name }}
{{ $wf->description ?: 'Sin descripcion' }}
{{ $wf->is_active ? 'Activo' : 'Pausado' }}
Trigger: {{ $triggers[$wf->trigger_event] ?? $wf->trigger_event }} {{ count($wf->actions ?? []) }} acciones {{ $wf->runs_count }} ejecutadas
@if(! empty($wf->actions))
@foreach($wf->actions as $i => $action)
{{ $i + 1 }}. {{ $actions[$action['type']] ?? $action['type'] }} @if(! empty($action['params'])) {{ json_encode($action['params'], JSON_UNESCAPED_UNICODE) }} @endif
@endforeach
@endif
@csrf @method('PATCH')
@csrf @method('DELETE')
@empty

Aun no tienes workflows

Crea reglas como: cuando llegue un lead, asignar asesor y notificar; cuando un cliente cierre, programar contrato; cuando una cuenta venza, recordar al asesor.
@endforelse
@endsection @section('modals') @endsection @push('scripts') @endpush