{{-- Shared form body for the contract wizard: identical layout and required fields whether creating a new contract ($record is a draft or null) or editing an existing one ($record is the contract itself). $readonly freezes every field once the contract is no longer editable (see EmploymentContract::isEditable()). --}} @php $isTemplateMode = $isTemplateMode ?? false; $isParentView = $isParentView ?? false; $canEditContractFrame = $canEditContractFrame ?? ! $readonly; $canEditCareLocation = $canEditCareLocation ?? $canEditContractFrame; $canEditCompensation = $canEditCompensation ?? ! $readonly; $canEditRest = $canEditRest ?? ! $readonly; $canEditSchedule = $canEditSchedule ?? ! $readonly; $canEditScheduleNotice = $canEditScheduleNotice ?? ! $readonly; $canEditWeeks = $canEditWeeks ?? ! $readonly; $hideContractFrameForLinkedParentFlow = $hideContractFrameForLinkedParentFlow ?? true; $scheduleSectionTitle = $isTemplateMode ? 'Amplitude horaire acceptée' : 'Planning de garde'; @endphp
{{ $selectedChild->display_name }} · {{ ($isParentView ?? false) ? ($selectedChild->employer->user?->name ?? 'Assistante maternelle') : $selectedChild->employer->display_name }}
@endif @error('child_record_id'){{ $message }}@enderror