{{ $macroId === null ? __('New platform default macro') : __('Edit platform default macro') }}

{{ __('Use the placeholder picker above each text box to insert real customer / order / store fields into your templates.') }}

{{-- Platform-default impact notice. Sky / amber accent — dark-mode contrast lifted via slate-tinted bg + sky-100 text so it stays readable against zinc-900 page bg. --}}
{{ __('Platform default. Edits apply to FUTURE provisioning only — existing tenant copies are untouched.') }}
{{ __('Name') }} {{ __('Shortcut (optional)') }} {{ __('Operators can search by this token in the composer typeahead.') }} {{-- Platform defaults are GLOBAL — no Scope picker. Tenants set per-store scope on the tenant copy after provisioning. --}} {{ __('Enabled for new accounts') }} {{ __('When OFF, future tenants skip this default. Existing tenant copies are not affected.') }} {{-- ─── Placeholder picker (copied from customer view) ─── --}}
{{ __('Insert placeholder') }} {{ __('→ Reply template') }} {{ __('→ Internal note') }}
@foreach ($this->placeholderCategories() as $category) @php $catKey = $category['key']; @endphp
{{ $category['label'] }}
    @foreach ($category['placeholders'] as $placeholder) @php $snippet = '{{ '.$placeholder['key'].' }}'; @endphp
  • @endforeach
@endforeach
{{ __('Reply template (optional)') }} {{ __('Inserted into the public-reply composer when the operator picks this macro. Agent signatures are appended on send — don\'t hard-code them here.') }} {{ __('Internal note template (optional)') }} {{ __('Leave blank for plain canned replies — empty templates write no audit row.') }}
{{ __('Set ticket status') }} @foreach ($this->statusOptions() as $value => $label) @endforeach {{ __('Assignee') }} @foreach ($this->assigneeStrategyOptions() as $value => $label) @endforeach
{{ __('Intent') }} @foreach ($this->intentOptions() as $value => $label) @endforeach {{ __('Classifies the macro for analytics + future AI auto-suggest. Pick the closest match.') }} {{ __('Keywords (optional, comma-separated)') }} {{ __('Searched by the composer typeahead in addition to name + shortcut.') }} {{-- ─── Suggested action panel (read-only, copied from customer view) ─── --}}
{{ __('Suggested action') }} @if ($attachedAction === null) {{ __('No action attached.') }} @endif
@if ($attachedAction !== null)
{{ $attachedAction['label'] }}
@if ($attachedAction['prefill_summary'] !== '')
{{ $attachedAction['prefill_summary'] }}
@endif
@if ($attachedAction['is_stub']) {{ __('Coming soon — blocks on confirm') }} @endif @if ($attachedAction['reason_required']) {{ __('Reason required on confirm') }} @else {{ __('No reason picker') }} @endif {{ $attachedAction['action_type'] }}
@endif

{{ __('Macro-attached actions never auto-execute. Operators confirm them from the inbox composer when the macro is applied.') }}

{{ $macroId === null ? __('Create platform default') : __('Save changes') }} {{ __('Cancel') }}