@extends('account.layout') @section('account.content')

Ma tarification

@csrf @foreach($tarificationFields as $groupKey => $group)
@lang('geometer.tarif_'.$groupKey)
@foreach($group as $fieldKey => $field) @if($field['type'] == 'simple')
{{ Form::text('prices['.$groupKey.']['.$fieldKey.']', old($groupKey.'.'.$fieldKey, array_get($user->prices, $groupKey.'.'.$fieldKey)), ['class' => 'form-control text-bornage-dgrey border-0' . ($errors->has($groupKey.'.'.$fieldKey) ? ' is-invalid' : '') . ($inputBackgroundClass??''), 'required'=> true]) }}
@else
@lang('geometer.tarif_'.$groupKey .'_'.$fieldKey)
    @foreach($field['inputs'] as $inputKey => $inputValue)
  • {{ Form::text('prices['.$groupKey.']['.$fieldKey.']['.$inputKey.']', old($groupKey.'.'.$fieldKey.'.'.$inputKey, array_get($user->prices, $groupKey.'.'.$fieldKey.'.'.$inputKey)), ['class' => 'form-control text-bornage-dgrey border-0' . ($errors->has($groupKey.'.'.$fieldKey.'.'.$inputKey) ? ' is-invalid' : '') . ($inputBackgroundClass??''), 'required'=> true]) }}
  • @endforeach
@endif @endforeach @endforeach
@endsection