@php
    $inputId = $inputId ?? ('field_'.$name);
    $maxlength = $maxlength ?? null;
@endphp
<div class="col-md-6">
    <label class="form-label" for="{{ $inputId }}">{{ $label }}</label>
    <input type="text"
        name="{{ $name }}"
        id="{{ $inputId }}"
        class="form-control"
        value="{{ $value }}"
        placeholder="{{ $placeholder ?? '' }}"
        @if($maxlength) maxlength="{{ $maxlength }}" @endif>
</div>
