@extends('layouts.app')
@section('title', 'تعيين السيناريوهات')
@section('content')
تعيين السيناريوهات (Flows)
ربط السيناريوهات التفاعلية بمحادثات الواتساب
{{-- Available Flows --}}
السيناريوهات المتاحة
@if(count($flows) > 0)
@foreach($flows as $flow)
@php $f = (array) $flow; @endphp
{{ $f['name'] ?? 'سيناريو #'.($f['id'] ?? '') }}
{{ $f['description'] ?? '' }}
الخطوات: {{ count($f['steps'] ?? $f['nodes'] ?? []) }}
@if(isset($f['status']))
{{ $f['status'] }}
@endif
@endforeach
@else
لا توجد سيناريوهات متاحة. قم بإنشاء سيناريو في تطبيق HalaVoice أولاً.
@endif
{{-- Assign Flow Form --}}
{{-- Existing Automation Rules --}}
@if(isset($automationRules) && count($automationRules) > 0)
قواعد تعيين السيناريوهات التلقائية
@foreach($automationRules as $rule)
{{ $rule->name }}
الحدث: {{ $rule->trigger_event }}
{{ $rule->is_active ? 'مفعل' : 'معطل' }}
@endforeach
@endif
@endsection