<commit_before>@php
    use function Zhiyi\Component\ZhiyiPlus\PlusComponentPc\getAvatar;
@endphp
@section('title') {{ $group['name'] }}-成员管理 @endsection

@extends('pcview::layouts.default')

@section('styles')
<link rel="stylesheet" href="{{ asset('assets/pc/css/global.css') }}">
<link rel="stylesheet" href="{{ asset('assets/pc/css/group.css') }}">
@endsection

@section('content')
<div class="p-member p-group">
    <div class="g-bd f-cb">
        <div class="g-sd">
            <ul>
                <a href="{{ route('pc:groupedit', ['group_id'=>$group['id']]) }}"><li>圈子资料</li></a>
                @if ($group['joined']['role'] == 'founder')
                    <a href="{{ route('pc:groupbankroll', ['group_id'=>$group['id']]) }}"><li>圈子收益</li></a>
                @endif
                <a href="{{ route('pc:groupmember', ['group_id'=>$group['id']]) }}"><li class="cur">成员管理</li></a>
                <a href="{{ route('pc:groupreport', ['group_id'=>$group['id']]) }}"><li>举报管理</li></a>
            </ul>
        </div>
        <div class="g-mn">
            <div class="m-nav">
                <ul class="f-cb" id="J-tab">
                    <a href="{{ route('pc:groupmember', ['group_id'=>$group['id']]) }}"><li class="cur">全部成员</li></a>
                    <li type="audit">待审核</li>
                    <li type="blacklist">黑名单</li>
                </ul>
                {{-- <div class="m-sch f-fr">
                    <input class="u-schipt" type="text" placeholder="输入关键词搜索">
                    <a class="u-schico" id="J-search" href="javascript:;">
                        <svg class="icon s-fc"><use xlink:href="#icon-search"></use></svg>
                    </a>
               </div> --}}
            </div>
            <div class="g-body" id="member-box">
            <div>
                <div class="f-mt20 f-fs4">圈主</div>
                <dl class="m-row">
                    <dt>
                        <img src="{{ getAvatar($group['founder']['user'], 50) }}" width="50" class="avatar">
                        @if ($group['founder']['user']['verified'])
                            <img class="role-icon" src="{{ $group['founder']['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                        @endif
                    </dt>
                    <dd>{{$group['founder']['user']['name']}}</dd>
                </dl>
            </div>
            <div>
                <div class="f-mt20 f-fs4">管理员</div>
                @if (!empty($manager))
                @foreach ($manager as $manage)
                    <dl class="m-row">
                        <dt>
                            <img src="{{ getAvatar($manage['user'], 50) }}" width="50" class="avatar">
                            @if ($manage['user']['verified'])
                                <img class="role-icon" src="{{ $manage['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                            @endif
                        </dt>
                        <dd><div>{{$manage['user']['name']}}</div>
                            <div class="u-opt">
                                <span>管理</span>
                                @if (($group['joined']['role'] == 'founder') && ($group['joined']['user_id'] != $manage['user']))
                                <svg class="icon f-fs2"><use xlink:href="#icon-setting"></use></svg>
                                    <ul class="u-menu f-dn">
                                        <a href="javascript:;" onclick="MAG.set({{$group['id']}}, {{$manage['id']}}, 0);"><li>撤销管理员</li></a>
                                        <a href="javascript:;" onclick="MAG.assign({{$group['id']}}, {{$manage['user_id']}});"><li>转让圈子</li></a>
                                    </ul>
                                @endif
                            </div>
                        </dd>
                    </dl>
                @endforeach
                @else
                    <p class="no-member">暂无成员</p>
                @endif
            </div>
            <div>
                <div class="f-mt20 f-fs4">一般成员</div>
                @if (!empty($members))
                @foreach ($members as $member)
                    <dl class="m-row">
                        <dt>
                            <img src="{{ getAvatar($member['user'], 50) }}" width="50" class="avatar">
                            @if ($member['user']['verified'])
                                <img class="role-icon" src="{{ $member['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                            @endif
                        </dt>
                        <dd><div>{{$member['user']['name']}}</div>
                            <div class="u-opt">
                                <span>管理</span>
                                <svg class="icon f-fs2"><use xlink:href="#icon-setting"></use></svg>
                                <ul class="u-menu f-dn">
                                    @if ($group['joined']['role'] == 'founder')<commit_msg>fix: （#884）【圈子-成员管理】- 进入成员管理页面报错<commit_after>@php
    use function Zhiyi\Component\ZhiyiPlus\PlusComponentPc\getAvatar;
@endphp
@section('title') {{ $group['name'] }}-成员管理 @endsection

@extends('pcview::layouts.default')

@section('styles')
<link rel="stylesheet" href="{{ asset('assets/pc/css/global.css') }}">
<link rel="stylesheet" href="{{ asset('assets/pc/css/group.css') }}">
@endsection

@section('content')
<div class="p-member p-group">
    <div class="g-bd f-cb">
        <div class="g-sd">
            <ul>
                <a href="{{ route('pc:groupedit', ['group_id'=>$group['id']]) }}"><li>圈子资料</li></a>
                @if ($group['joined']['role'] == 'founder')
                    <a href="{{ route('pc:groupbankroll', ['group_id'=>$group['id']]) }}"><li>圈子收益</li></a>
                @endif
                <a href="{{ route('pc:groupmember', ['group_id'=>$group['id']]) }}"><li class="cur">成员管理</li></a>
                <a href="{{ route('pc:groupreport', ['group_id'=>$group['id']]) }}"><li>举报管理</li></a>
            </ul>
        </div>
        <div class="g-mn">
            <div class="m-nav">
                <ul class="f-cb" id="J-tab">
                    <a href="{{ route('pc:groupmember', ['group_id'=>$group['id']]) }}"><li class="cur">全部成员</li></a>
                    <li type="audit">待审核</li>
                    <li type="blacklist">黑名单</li>
                </ul>
                {{-- <div class="m-sch f-fr">
                    <input class="u-schipt" type="text" placeholder="输入关键词搜索">
                    <a class="u-schico" id="J-search" href="javascript:;">
                        <svg class="icon s-fc"><use xlink:href="#icon-search"></use></svg>
                    </a>
               </div> --}}
            </div>
            <div class="g-body" id="member-box">
            <div>
                <div class="f-mt20 f-fs4">圈主</div>
                <dl class="m-row">
                    <dt>
                        <img src="{{ getAvatar($group['founder']['user'], 50) }}" width="50" class="avatar">
                        @if ($group['founder']['user']['verified'])
                            <img class="role-icon" src="{{ $group['founder']['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                        @endif
                    </dt>
                    <dd>{{$group['founder']['user']['name']}}</dd>
                </dl>
            </div>
            <div>
                <div class="f-mt20 f-fs4">管理员</div>
                @if (!empty($manager))
                @foreach ($manager as $manage)
                    <dl class="m-row">
                        <dt>
                            <img src="{{ getAvatar($manage['user'], 50) }}" width="50" class="avatar">
                            @if ($manage['user']['verified'])
                                <img class="role-icon" src="{{ $manage['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                            @endif
                        </dt>
                        <dd><div>{{$manage['user']['name']}}</div>
                            <div class="u-opt">
                                <span>管理</span>
                                @if (($group['joined']['role'] == 'founder') && ($group['joined']['user_id'] != $manage['user']['id']))
                                <svg class="icon f-fs2"><use xlink:href="#icon-setting"></use></svg>
                                    <ul class="u-menu f-dn">
                                        <a href="javascript:;" onclick="MAG.set({{$group['id']}}, {{$manage['id']}}, 0);"><li>撤销管理员</li></a>
                                        <a href="javascript:;" onclick="MAG.assign({{$group['id']}}, {{$manage['user_id']}});"><li>转让圈子</li></a>
                                    </ul>
                                @endif
                            </div>
                        </dd>
                    </dl>
                @endforeach
                @else
                    <p class="no-member">暂无成员</p>
                @endif
            </div>
            <div>
                <div class="f-mt20 f-fs4">一般成员</div>
                @if (!empty($members))
                @foreach ($members as $member)
                    <dl class="m-row">
                        <dt>
                            <img src="{{ getAvatar($member['user'], 50) }}" width="50" class="avatar">
                            @if ($member['user']['verified'])
                                <img class="role-icon" src="{{ $member['user']['verified']['icon'] or asset('assets/pc/images/vip_icon.svg') }}">
                            @endif
                        </dt>
                        <dd><div>{{$member['user']['name']}}</div>
                            <div class="u-opt">
                                <span>管理</span>
                                <svg class="icon f-fs2"><use xlink:href="#icon-setting"></use></svg>
                                <ul class="u-menu f-dn">
                                    @if ($group['joined']['role'] == 'founder')
{'fraction_non_alphanumeric': 0.20816527299557305, 'fraction_numerical': 0.005017215937038859, 'mean_word_length': 1.355967555040556, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 237, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6988688', 'n_tokens_mistral': 3052, 'n_tokens_neox': 2941, 'n_words': 461}