@extends('layouts.app') @section('title', 'Automation Rules') @section('content')

Automation Rules

Kelola aturan automasi sistem

Tambah Rule
@forelse($rules as $rule)

{{ $rule->name }}

@if($rule->is_active) Aktif @else Nonaktif @endif Priority: {{ $rule->priority }}
@if($rule->description)

{{ $rule->description }}

@endif

Trigger Event

{{ $rule->trigger_event }}

Actions

@foreach($rule->actions as $action) {{ $action }} @endforeach

Conditions

{{ json_encode($rule->conditions, JSON_PRETTY_PRINT) }}

Statistics

Executed: {{ $rule->execution_count }}x @if($rule->last_executed_at)
Last: {{ $rule->last_executed_at->diffForHumans() }} @endif

@csrf @method('DELETE')
@empty

Belum ada automation rules

Buat Rule Pertama
@endforelse
@if(method_exists($rules, 'links'))
{{ $rules->links() }}
@endif
@push('scripts') @endpush @endsection