@extends('layouts.app') @section('page-pretitle', __('Management')) @section('page-title', __('Edit Flowchart')) @section('content') @include('partials.flash-messages')

{{ __('Edit Flowchart') }}

@csrf @method('PUT')
Step 1: Project Information
{{-- --}} {{-- For edit.blade.php in flowcharts --}} @foreach($projects as $project) @endforeach @if($flowchart->project_id)
Current: {{ optional($projects->firstWhere('id', $flowchart->project_id))->description ?? '-' }}
@endif
Step 2: Add Nodes
@php $parsed = json_decode($flowchart->content, true); $nodes = $parsed['nodes'] ?? []; @endphp @foreach($nodes as $i => $node)
{{ $i + 1 }}
@endforeach
Step 3: Connect Nodes (Edges)
@php $edges = $parsed['edges'] ?? []; @endphp @foreach($edges as $i => $edge)
@endforeach
Cancel
@push('styles') @endpush @push('scripts') @endpush @endsection