@php // $policy is null on create, an existing Policy (with ->roles loaded) on edit. $isEdit = isset($policy) && $policy->exists; $selectedRoleIds = old('role_ids', $isEdit ? $policy->roles->pluck('id')->all() : []); $sourceMode = old('source_mode', $isEdit && $policy->filepath ? 'document' : 'content'); @endphp
@error('title')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror

@error('content')
{{ $message }}
@enderror
@error('document')
{{ $message }}
@enderror @if($isEdit && $policy->filepath)
@lang('Current document')
@endif
@lang('Lower numbers are shown first when a user is asked to accept policies. Leave blank to add to the end.') @error('order_number')
{{ $message }}
@enderror
@push('scripts') @endpush