@php if(isset($value) && $value){ $component_value = old($name, $value); } elseif(isset($row->$name) && $row->$name){ $component_value = old($name, $row->$name); } else { $component_value = old($name); } @endphp
@include('web.components.inputs.error', ['name' => $name])