@extends('layouts.app', ['title' => 'Workflows']) @section('content') @php($canManage = auth()->user()->can('automations.manage'))
Follow up with every lead automatically: messages, tags, deals and tasks.
| Workflow | Starts when | Runs | Last run | Status | |
|---|---|---|---|---|---|
| {{ $w->name }}
@if ($w->failed_runs) {{ $w->failed_runs }} failed {{ \Illuminate\Support\Str::plural('run', $w->failed_runs) }} @endif
|
{{ \App\Models\Workflow::TRIGGERS[$w->trigger_type]['label'] ?? 'Not set' }} | {{ number_format($w->runs_count) }} | {{ $w->last_run_at?->diffForHumans() ?? '—' }} | @if ($canManage) @else {{ $w->is_active ? 'On' : 'Off' }} @endif | @if ($canManage)@endif |