@extends('merchant_admin.layouts.app')

@section('title', '商家用户管理')
@section('page_title', '商家用户管理')

@section('content')
<div class="card">
    <p class="muted muted-tight">当前用户列表已按登录商家过滤，用于查看商家侧用户资产和注册来源。</p>
    <p class="muted">当前用户列表已接入缓存：{{ $cacheMeta['store'] }} / TTL {{ $cacheMeta['ttl'] }}。</p>
    <h3>用户列表</h3>
    <table>
        <thead><tr><th>ID</th><th>姓名</th><th>邮箱</th><th>手机</th><th>状态</th><th>注册来源</th><th>最近登录来源</th></tr></thead>
        <tbody>
        @foreach($users as $user)
            <tr>
                <td>{{ $user->id }}</td>
                <td>{{ $user->name }}</td>
                <td>{{ $user->email }}</td>
                <td>{{ $user->phone }}</td>
                <td>{{ $user->status }}</td>
                <td>{{ $user->register_source }}</td>
                <td>{{ $user->last_login_source }}</td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>

<div class="pagination-wrap">{{ $users->links() }}</div>
@endsection
