2026-01-13 10:17:37 +08:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
@php
|
|
|
|
|
@endphp
|
|
|
|
|
<div class="container mx-auto px-6 py-8">
|
2026-01-13 13:28:58 +08:00
|
|
|
<h3 class="text-gray-900 dark:text-gray-200 text-3xl font-medium">會員列表</h3>
|
2026-01-13 10:17:37 +08:00
|
|
|
|
|
|
|
|
<div class="mt-8">
|
|
|
|
|
{{-- 搜尋與篩選 (預留空間) --}}
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col mt-4">
|
|
|
|
|
<div class="-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
|
2026-01-13 13:28:58 +08:00
|
|
|
<div class="align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200 dark:border-gray-700">
|
2026-01-13 10:17:37 +08:00
|
|
|
<table class="min-w-full">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
UUID
|
|
|
|
|
</th>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
姓名
|
|
|
|
|
</th>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
Email
|
|
|
|
|
</th>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
手機
|
|
|
|
|
</th>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
狀態
|
|
|
|
|
</th>
|
2026-01-13 13:28:58 +08:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700 text-left text-xs leading-4 font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wider">
|
2026-01-13 10:17:37 +08:00
|
|
|
註冊時間
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2026-01-13 13:28:58 +08:00
|
|
|
<tbody class="bg-white dark:bg-gray-800">
|
2026-01-13 10:17:37 +08:00
|
|
|
@forelse ($members as $member)
|
|
|
|
|
<tr>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700">
|
|
|
|
|
<div class="text-sm leading-5 font-medium text-gray-600 dark:text-gray-400">{{ $member->uuid }}</div>
|
2026-01-13 10:17:37 +08:00
|
|
|
</td>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700">
|
|
|
|
|
<div class="text-sm leading-5 font-bold text-gray-900 dark:text-gray-200">{{ $member->name }}</div>
|
2026-01-13 10:17:37 +08:00
|
|
|
</td>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700">
|
|
|
|
|
<div class="text-sm leading-5 text-gray-900 dark:text-gray-200">{{ $member->email ?? '-' }}</div>
|
2026-01-13 10:17:37 +08:00
|
|
|
</td>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700">
|
|
|
|
|
<div class="text-sm leading-5 text-gray-900 dark:text-gray-200">{{ $member->phone ?? '-' }}</div>
|
2026-01-13 10:17:37 +08:00
|
|
|
</td>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700">
|
2026-01-13 10:17:37 +08:00
|
|
|
@if($member->is_active)
|
|
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
|
|
|
|
|
啟用
|
|
|
|
|
</span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
|
|
|
|
|
停用
|
|
|
|
|
</span>
|
|
|
|
|
@endif
|
|
|
|
|
</td>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700 text-sm leading-5 text-gray-600 dark:text-gray-400">
|
2026-01-13 10:17:37 +08:00
|
|
|
{{ $member->created_at->format('Y-m-d H:i') }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@empty
|
|
|
|
|
<tr>
|
2026-01-13 13:28:58 +08:00
|
|
|
<td colspan="6" class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 dark:border-gray-700 text-center text-gray-600 dark:text-gray-400">
|
2026-01-13 10:17:37 +08:00
|
|
|
尚無會員資料
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@endforelse
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mt-4">
|
|
|
|
|
{{ $members->links() }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|