<div class="tab d-none py-5">
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Employee Name') }} <span class="text-danger">*</span>
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="text" name="name" class="form-control ot-form-control ot-input" placeholder="{{ _trans('common.Name') }}" value="{{ old('name', @$user->name) }}" >
            @if ($errors->has('name'))
                <span class="error text-danger">
                    {{ $errors->first('name') }}
                </span>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Email Address') }} <span class="text-danger">*</span>
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="email" name="email" placeholder="{{ _trans('common.Email') }}" class="form-control ot-form-control ot-input" value="{{ old('email', @$user->email) }}" >
            @if ($errors->has('email'))
                <span class="error text-danger">
                    {{ $errors->first('email') }}
                </span>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Phone') }} <span class="text-danger">*</span>
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="text" name="phone" placeholder="{{ _trans('common.Phone') }}" class="form-control ot-form-control ot-input" value="{{ old('phone', @$user->phone) }}">
            @if ($errors->has('phone'))
                <div class="error text-danger">{{ $errors->first('phone') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Avatar') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <div class="ot_fileUploader left-side">
                <input class="form-control" type="text" placeholder="{{ _trans('profile.Avatar') }}" name="backend_image" readonly="" id="placeholder3">
                <div class="primary-btn-small-input">
                    <label class="btn btn-lg ot-btn-primary" for="fileBrouse3">{{ _trans('common.Browse') }}</label>
                    <input type="file" class="d-none form-control" name="avatar" id="fileBrouse3">
                </div>
            </div>
            @if ($errors->has('avatar'))
                <span class="text-danger">{{ $errors->first('avatar') }}</span>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Gender') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <select name="gender" class="form-select demo-select2-placeholder {{ $errors->has('gender') ? 'is-invalid' : '' }} select2" data-placeholder="{{ _trans('common.Choose One') }}">
                <option value="" selected></option>
                <option value="Male" {{ old('gender', @$user->gender) == 'Male' ? 'selected' : '' }}>
                    {{ _trans('common.Male') }}
                </option>
                <option value="Female" {{ old('gender', @$user->gender) == 'Female' ? 'selected' : '' }}>
                    {{ _trans('common.Female') }}
                </option>
                <option value="Unisex" {{ old('gender', @$user->gender) == 'Unisex' ? 'selected' : '' }}>
                    {{ _trans('common.Unisex') }}
                </option>
            </select>
            @if ($errors->has('gender'))
                <span class="error text-danger">
                    {{ $errors->first('gender') }}
                </span>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Country') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <select name="country_id" class="form-control select2" id="_country_id" data-placeholder="{{ _trans('common.Choose One') }}">
                <option value="" selected disabled></option>
                @foreach ($data["countries"] as $id => $name)
                    <option value="{{ $id }}"
                        {{ old('country_id', @$user->country_id) == $id ? 'selected' : '' }}
                    >
                        {{ $name }}
                    </option>
                @endforeach
            </select>
            @if ($errors->has('country'))
                <div class="error text-danger">{{ $errors->first('country') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Address') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="text" name="address" placeholder={{ _trans('common.Address') }} class="form-control ot-form-control ot-input" value="{{ old('address', @$user->address) }}">
            @if ($errors->has('address'))
                <div class="error text-danger">{{ $errors->first('address') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Religion') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <select name="religion" id="religion" class="form-select select2">
                <option disabled selected>{{ _trans('common.Choose One') }}</option>
                <option value="Islam" {{ old('religion', @$user->religion) == 'Islam' ? 'selected' : '' }}>
                    {{ _trans('common.Islam') }}
                </option>
                <option value="Hinduism" {{ old('religion', @$user->religion) == 'Hinduism' ? 'selected' : '' }}>
                    {{ _trans('common.Hinduism') }}
                </option>
                <option value="Christianity" {{ old('religion', @$user->religion) == 'Christianity' ? 'selected' : '' }}>
                    {{ _trans('common.Christianity') }}
                </option>
                <option value="Buddhism" {{ old('religion', @$user->religion) == 'Buddhism' ? 'selected' : '' }}>
                    {{ _trans('common.Buddhism') }}
                </option>
                <option value="Others" {{ old('religion', @$user->religion) == 'Others' ? 'selected' : '' }}>
                    {{ _trans('common.Others') }}
                </option>
            </select>
            @if ($errors->has('religion'))
                <div class="error text-danger">{{ $errors->first('religion') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Marital Status') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <select name="marital_status" id="marital_status" class="form-select select2">
                <option disabled selected>{{ _trans('common.Choose One') }}</option>
                <option value="Married" {{ old('marital_status', @$user->marital_status) == 'Married' ? 'selected' : '' }}>
                    {{ _trans('common.Married') }}
                </option>
                <option value="Unmarried" {{ old('marital_status', @$user->marital_status) == 'Unmarried' ? 'selected' : '' }}>
                    {{ _trans('common.Unmarried') }}
                </option>
            </select>
            @if ($errors->has('marital_status'))
                <div class="error text-danger">{{ $errors->first('marital_status') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Blood Group') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <select name="blood_group" class="form-select select2">
                <option disabled selected>{{ _trans('common.Choose One') }}</option>
                <option value="A+" {{ old('blood_group', @$user->blood_group) == 'A+' ? 'selected' : '' }}>
                    {{ _trans('common.A+') }}
                </option>
                <option value="A-" {{ old('blood_group', @$user->blood_group) == 'A-' ? 'selected' : '' }}>
                    {{ _trans('common.A-') }}
                </option>
                <option value="B+" {{ old('blood_group', @$user->blood_group) == 'B+' ? 'selected' : '' }}>
                    {{ _trans('common.B+') }}
                </option>
                <option value="B-" {{ old('blood_group', @$user->blood_group) == 'B-' ? 'selected' : '' }}>
                    {{ _trans('common.B-') }}
                </option>
                <option value="O+" {{ old('blood_group', @$user->blood_group) == 'O+' ? 'selected' : '' }}>
                    {{ _trans('common.O+') }}
                </option>
                <option value="O-" {{ old('blood_group', @$user->blood_group) == 'O-' ? 'selected' : '' }}>
                    {{ _trans('common.O-') }}
                </option>
                <option value="AB+" {{ old('blood_group', @$user->blood_group) == 'AB+' ? 'selected' : '' }}>
                    {{ _trans('common.AB+') }}
                </option>
                <option value="AB-" {{ old('blood_group', @$user->blood_group) == 'AB-' ? 'selected' : '' }}>
                    {{ _trans('common.AB-') }}
                </option>
            </select>
            @if ($errors->has('blood_group'))
                <div class="error text-danger">{{ $errors->first('blood_group') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Date of Birth') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="date" name="birth_date" class="form-control ot-form-control ot-input" value="{{ old('birth_date', @$user->birth_date) }}">
            @if ($errors->has('birth_date'))
                <div class="error text-danger">{{ $errors->first('birth_date') }}</div>
            @endif
        </div>
    </div>
    <div class="row form-group mb-3">
        <label class="col-md-4 col-lg-2 d-flex align-items-center justify-content-end gap-1 form-label">
            {{ _trans('common.Speak Language') }}
        </label>
        <div class="col-md-8 col-lg-10">
            <input type="text" name="speak_language" value="{{ old('speak_language', @$user->speak_language) }}" class="form-control ot-form-control ot-input">
            @if ($errors->has('speak_language'))
                <div class="error text-danger">{{ $errors->first('speak_language') }}</div>
            @endif
        </div>
    </div>
</div>