@extends('theme.default.pc.memberProfile.frame')

@section('pageTitleMain','我的资料')

@section('memberBodyContent')

    <div class="pb">
        <div class="head">
            <h2>我的资料</h2>
        </div>
        <div class="content">
            <form action="?" class="uk-form" method="post" data-ajax-form>
                <div class="line">
                    <div class="label">用户名:</div>
                    <div class="field">
                        @if(empty($_memberUser['username']))
                            <input type="text" name="username" />
                            <div class="help">
                                用户名设定后将不能修改
                            </div>
                        @else
                            {{$_memberUser['username']}}
                        @endif
                    </div>
                </div>
                <div class="line">
                    <div class="label">性别:</div>
                    <div class="field">
                        <label><input type="radio" name="gender" value="{{\TechSoft\Laravel\Member\Type\Gender::MALE}}" @if($_memberUser['gender']==\TechSoft\Laravel\Member\Type\Gender::MALE) checked @endif /> 男</label>
                        &nbsp;
                        <label><input type="radio" name="gender" value="{{\TechSoft\Laravel\Member\Type\Gender::FEMALE}}" @if($_memberUser['gender']==\TechSoft\Laravel\Member\Type\Gender::FEMALE) checked @endif /> 女</label>
                        &nbsp;
                        <label><input type="radio" name="gender" value="{{\TechSoft\Laravel\Member\Type\Gender::UNKNOWN}}" @if($_memberUser['gender']==\TechSoft\Laravel\Member\Type\Gender::UNKNOWN) checked @endif /> 保密</label>
                    </div>
                </div>
                <div class="line">
                    <div class="label">真实姓名:</div>
                    <div class="field">
                        <input type="text" name="realname" value="{{$_memberUser['realname'] or ''}}" placeholder="" class="uk-width-3-5" />
                    </div>
                </div>
                <div class="line">
                    <div class="label">个性签名:</div>
                    <div class="field">
                        <input type="text" name="signature" value="{{$_memberUser['signature'] or ''}}" placeholder="" class="uk-width-3-5" />
                    </div>
                </div>
                <div class="line">
                    <div class="label">&nbsp;</div>
                    <div class="field">
                        <button type="submit" class="uk-button uk-button-primary">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>


@endsection