{{-- 💡 终极修复:x-data 放在了原生的外层 div 上 --}}
Back to List

Create New Agreement Template

{{-- 💡 移除了这里导致 bug 的 x-data,仅保留 loading 状态 --}} @csrf
@if($sourceAgreement) @endif
@if (in_array($user->role, ['admin', 'superadmin']) || $user->role === 'agentAdmin') @if ($sourceAgreement) @endif @elseif ($user->role === 'ownerAdmin')

{{ $ownerAdmin }}

@endif @if($sourceAgreement) @endif
@error('title')

{{ $message }}

@enderror
@error('version')

{{ $message }}

@enderror

Click to Insert Variables

@foreach($placeholders as $category => $items)

{{ $category }}

@foreach($items as $item) @endforeach
@endforeach

Rich Text Editor
{!! old('content', $sourceAgreement ? $sourceAgreement->content : '') !!}
Tip: Click any variable below to insert it at your cursor. You can also type them manually, e.g., {owner_name}.
Cancel Save Agreement Template