<form class="row g-3 auto-width" method="post" action="{{ route('sample-types.store')}}" id="sample_type_form">
    @csrf
    @method('post')
    <div class="col-12">
        <label for="name" class="form-label">Sample Name<span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control name" id="name" name="name" aria-describedby="inputGroupPrepend" placeholder="Name">
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="code" class="form-label">Sample Code</label>
        <input type="text" class="form-control code" id="code" name="code" aria-describedby="inputGroupPrepend" placeholder="code">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="sample_collection_tube_id" class="form-label">Sample Collection Tube</label>
        <select name="sample_collection_tube_id" class="sample_collection_tube form-control">
            @foreach ($sampleTubes as $tube)
                <option value="{{ $tube->id }}">{{ $tube->tube_name }}</option>
            @endforeach
        </select>
        <span class="text-danger error_sample_collection_tube" style="display:none;">This field is required.</span>
    </div>
    <div class="col-12">
        <label for="details" class="form-label">Detail
        </label>
        <textarea name="details" id="details" class="form-control details" cols="30" rows="2"></textarea>
    </div>
</form>
