@php
$oldModules = old('module', $autoBill?->pricings->pluck('module')->toArray() ?: ['']);
$oldDescriptions = old('description', $autoBill?->pricings->pluck('description')->toArray() ?: ['']);
$oldTypes = old('type', $autoBill?->pricings->pluck('type')->toArray() ?: ['']);
$oldRates = old('rate', $autoBill?->pricings->pluck('rate')->toArray() ?: ['']);
@endphp
@foreach ($oldModules as $index => $module)
@error('module.' . $index)
{{ $message }}
@enderror
@error('description.' . $index)
{{ $message }}
@enderror
@error('type.' . $index)
{{ $message }}
@enderror
@error('rate.' . $index)
{{ $message }}
@enderror
@endforeach