<!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/storeUpdateUserLaborCompanies')}}">
            @csrf
            <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 col-7 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">
                <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 col-7 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 hidden name="importAndExportQRCodeType" value="{{ old('importAndExportQRCodeType',$importAndExportQRCodeType)}}">
            <div class="form-group row pt-4">
                <button type="submit" class="col-5 offset-3 btn btn-success">提交</button>
            </div>
        </form>
    </div>
</div>
</body>
</html>
