@php $employees = \App\Models\Employee::orderBy('name')->get(['id','name']); @endphp
@php $currentEmpName = optional($employees->firstWhere('id', old('reference_id', $bandwidthLog->reference_id)))->name; @endphp
Start typing a name; pick from suggestions. We will save the employee ID.
@error('reference_id')
{{ $message }}
@enderror