@php $t = $technician ?? null; $sel = $t ? (array) $t->specialties : []; @endphp
<div class="row">
    <div class="col-md-6"><div class="form-group">
        {!! Form::label('name', __('vrc::lang.technician') . ':*') !!}
        {!! Form::text('name', $t->name ?? null, ['class' => 'form-control', 'required']) !!}
    </div></div>
    <div class="col-md-6"><div class="form-group">
        {!! Form::label('user_id', __('vrc::lang.linked_user') . ':') !!}
        {!! Form::select('user_id', $users, $t->user_id ?? null, ['class' => 'form-control vrc-select2', 'placeholder' => __('messages.please_select')]) !!}
    </div></div>
</div>
<div class="row">
    <div class="col-md-4"><div class="form-group">
        {!! Form::label('hourly_rate', __('vrc::lang.hourly_rate') . ':') !!}
        {!! Form::number('hourly_rate', $t->hourly_rate ?? 0, ['class' => 'form-control', 'step' => '0.01', 'min' => 0]) !!}
    </div></div>
    <div class="col-md-4"><div class="form-group">
        {!! Form::label('commission_pct', __('vrc::lang.commission') . ' (%):') !!}
        {!! Form::number('commission_pct', $t->commission_pct ?? null, ['class' => 'form-control', 'step' => '0.01', 'min' => 0, 'max' => 100]) !!}
    </div></div>
</div>
<div class="form-group">
    {!! Form::label('specialties', __('vrc::lang.specialties') . ':') !!}
    {!! Form::select('specialties[]', $categories, $sel, ['class' => 'form-control vrc-select2', 'multiple']) !!}
</div>
<div class="checkbox"><label>{!! Form::checkbox('is_active', 1, isset($t) ? (bool) $t->is_active : true) !!} @lang('vrc::lang.active')</label></div>
