@php $template = $template ?? null; $editing = (bool) $template; $action = $editing ? route('admin.flow-templates.update', $template->id) : route('admin.flow-templates.store'); $ft = old('flow_type', $template->flow_type ?? 'chat'); @endphp
{{ __('Admin') }} {{ __('Flow templates') }} {{ $editing ? __('Edit') : __('New') }}
{{ __('Cancel') }}
{{ __('Admin · Automation · ') }}{{ $editing ? __('Edit') : __('New') }}

{{ $editing ? __('Edit') : __('New') }} {{ __('template') }}

{{ __('Build a standard flow, export it, then register it here. Active templates appear in every tenant\'s "Start from a template" gallery on Flows.') }}

@if ($errors->any())
{{ __('Please fix the following:') }}
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @if ($editing) @method('PUT') @endif
{{-- Left: main fields --}}
{{ __('details') }}

{{ __('Template details') }}

{{ __('flow content') }}

{{ __('The flow itself') }}

@if ($editing)
{{ __('Currently :n steps. Leave all three fields empty to keep the current flow — fill one to replace it.', ['n' => $template->node_count]) }}
@else

{{ __('Provide the flow in ONE of these ways. Easiest: open the flow builder, build it, click Export, then upload that .json here.') }}

@endif
{{-- Right: settings sidebar --}}
{{ __('settings') }}

{{ __('Visibility') }}