@php($mode = $mode ?? 'create') @php($doctorClinic = $doctorClinic ?? null) @php($prices = $prices ?? []) @php($serviceLabels = [ 'visit' => trans('clinic.pricing.service_visit'), 'online' => trans('clinic.pricing.service_online'), 'followup' => trans('clinic.pricing.service_followup'), ]) @if($mode === 'create')
@error('clinic_profile_id')
{{ $message }}
@enderror
@error('doctor_id')
{{ $message }}
@enderror
@else
@endif
@foreach($serviceTypes as $type) @php($existing = $prices[$type] ?? null)

{{ $serviceLabels[$type] }}

total_price ?? '') }}"> @error("services.$type.total_price")
{{ $message }}
@enderror
doctor_share_value ?? '') }}">
@error("services.$type.doctor_share_value")
{{ $message }}
@enderror @error("services.$type.doctor_share_type")
{{ $message }}
@enderror
center_share_value ?? '') }}">
@error("services.$type.center_share_value")
{{ $message }}
@enderror @error("services.$type.center_share_type")
{{ $message }}
@enderror
{{ trans('clinic.pricing.computed_split') }}: —
@endforeach