<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="{{ mix('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div class="card col-md-8 offset-md-2 mt-5">
    <div class="card-body">
        <form method="POST" action="{{url('personnel/checking-in/userDutyCheck/storeUserDetail')}}">
            @csrf
            <div class="form-group row pb-0 m-auto">
                <h6 class="col-6 offset-4 text-danger">未查询到您的信息，请登记您的资料！</h6>
            </div>
            <div class="form-group row pt-0">
                <label for="full_name" class="form-check-label col-3 pull-left">姓名：</label>
                <div class="col-8">
                    <input name="full_name" id="full_name" class="@error('full_name') is-invalid @enderror  form-control" value="{{ old('full_name') }}" autocomplete="off" type="text">
                    @error('full_name')
                    <span class="invalid-feedback" role="alert">
                    <strong>{{ $message }}</strong>
                </span>
                    @enderror
                </div>
            </div>
            <div class="form-group row">
                <label for="mobile_phone" class="form-check-label col-3 pull-left">电话：</label>
                <div class="col-8">
                    <input name="mobile_phone" @if($mobile_phone) value="{{$mobile_phone}}" @endif readonly id="mobile_phone" class="@error('mobile_phone') is-invalid @enderror  form-control" type="text">
                    @error('mobile_phone')
                    <span class="invalid-feedback" role="alert">
                    <strong>{{ $message }}</strong>
                    </span>
                    @enderror
                </div>
            </div>
            <div class="form-group row pt-0">
                <label for="identity_number" class="form-check-label col-3 pull-left">身份证号码：</label>
                <div class="col-8">
                    <input name="identity_number" id="identity_number" class="@error('identity_number') is-invalid @enderror  form-control" value="{{ old('identity_number') }}" autocomplete="off" type="text">
                    @error('identity_number')
                    <span class="invalid-feedback" role="alert">
                    <strong>{{ $message }}</strong>
                </span>
                    @enderror
                </div>
            </div>
            <div class="form-group row">
                <label for="gender" class="form-check-label col-4 pull-left">性别：</label>
                <div class="custom-control custom-radio col-4">
                    <input checked name="gender" value="男"  type="radio" id="boy" class=" custom-control-input" >
                    <label class="custom-control-label" for="boy">男</label>
                </div>
                <div class="custom-control custom-radio col-4">
                    <input name="gender" value="女"  type="radio" id="girl" class=" custom-control-input" >
                    <label class="custom-control-label" for="girl">女</label>
                </div>
            </div>
            <div class="form-group row">
                <label for="labor_company_id" class="form-check-label col-3 pull-left">劳务所：</label>
                <div class="col-8">
                    <select name="labor_company_id" id="labor_company_id" class="@error('labor_company_id') is-invalid @enderror  form-control"  type="text">
                        <option></option>
                        @foreach( $laborCompanies as $laborCompany )
                            <option value="{{$laborCompany->id}}">{{$laborCompany->name}}</option>
                        @endforeach
                    </select>
                    @error('labor_company_id')
                    <span class="invalid-feedback" role="alert">
                    <strong>{{ $message }}</strong>
                    </span>
                    @enderror
                </div>
            </div>
            <input type="hidden" name="importAndExportQRCodeType" value="{{ old('importAndExportQRCodeType',$importAndExportQRCodeType)}}" >
            <div class="form-group row pt-3">
                <button type="submit" class="col-8 offset-3 btn btn-success">登记</button>
            </div>
        </form>
    </div>
</div>
</body>
</html>
