@extends('theme.default.m.frame')

@section('pageTitleMain','我的')
@section('headerLeft',' ')

@section('bodyScript')
    <script src="@assets('assets/m/basic.js')"></script>
@endsection

@section('bodyContent')

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell mui-media">
            <a class="mui-navigate-right" href="/member/profile">
                <img class="mui-media-object mui-pull-left" src="{{\TechSoft\Laravel\Assets\AssetsUtil::fixOrDefault($_memberUser['avatarBig'],'assets/lib/img/avatar.png')}}" />
                <div class="mui-media-body" style="line-height:40px;">
                    {{$_memberUser['username']}}
                    {{--<p class="mui-ellipsis">账号：{{$_memberUser['username']}}</p>--}}
                </div>
            </a>
        </li>
    </ul>

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell">
            <a href="/member/{{$_memberUserId}}" class="mui-navigate-right"><i class="uk-icon-home"></i> 我的主页</a>
        </li>
    </ul>

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell">
            <a href="/member/message" class="mui-navigate-right">
                @if($_memberUser['newMessageCount'])
                    <span class="mui-badge mui-badge-danger">{{$_memberUser['newMessageCount']}}</span>
                @endif
                <i class="uk-icon-bell"></i> 消息通知
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a href="/member/message_chat" class="mui-navigate-right">
                @if($_memberUser['newChatMsgCount'])
                    <span class="mui-badge mui-badge-danger">{{$_memberUser['newChatMsgCount']}}</span>
                @endif
                <i class="uk-icon-comment"></i> 我的私信
            </a>
        </li>
    </ul>

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell">
            <a href="/member/money" class="mui-navigate-right"><i class="uk-icon-cny"></i> 我的钱包</a>
        </li>
        @if(\TechSoft\Laravel\Config\ConfigUtil::get('customTipEnable',false))
            <li class="mui-table-view-cell">
                <a href="/member/tip_recv" class="mui-navigate-right"><i class="uk-icon-gift"></i> 收到的打赏</a>
            </li>
        @endif
    </ul>

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell">
            <a href="/member/profile_setting" class="mui-navigate-right"><i class="uk-icon-cog"></i> 基本设置</a>
        </li>
        @if(\TechSoft\Laravel\Config\ConfigUtil::get('customTipEnable',false))
            <li class="mui-table-view-cell">
                <a href="/member/tip" class="mui-navigate-right"><i class="uk-icon-cogs"></i> 打赏设置</a>
            </li>
        @endif
    </ul>

    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell">
            <a href="/member/profile_password" class="mui-navigate-right"><i class="uk-icon-lock"></i> 修改密码</a>
        </li>
    </ul>

    @if(\TechSoft\Laravel\Agent\UserAgentUtil::source()==\TechSoft\Laravel\Agent\UserAgentUtil::SOURCE_APP)
        <ul class="mui-table-view">
            <li class="mui-table-view-cell">
                <a href="{{\TechSoft\Laravel\Config\ConfigUtil::get('appSchema')}}://about" class="mui-navigate-right"><i class="uk-icon-users"></i> 关于我们</a>
            </li>
        </ul>
    @endif

    <ul class="mui-table-view">
        <li class="mui-table-view-cell uk-text-center">
            <a href="javascript:;" data-confirm="确定退出?" data-href="/logout">退出登录</a>
        </li>
    </ul>


@endsection