M2: 主题系统(sablog经典+modern简约)+ 前台全部页面 + 老 URL 301 兼容 + markdown 双份导入

This commit is contained in:
ak
2026-08-11 17:58:29 +08:00
parent f16bb75538
commit 6214976a88
66 changed files with 2763 additions and 10 deletions
+24
View File
@@ -0,0 +1,24 @@
@php $pageTitle = '个人中心 - '.$siteName; $user = auth()->user(); @endphp
@include('partials.head')
<body>
@include('partials.header')
<div class="container main-layout">
<main class="content">
<h1 class="list-title">个人中心</h1>
<div class="profile-box">
<p><strong>昵称:</strong>{{ $user->name }}</p>
<p><strong>邮箱:</strong>{{ $user->email }}</p>
@if($user->url)<p><strong>主页:</strong><a href="{{ $user->url }}" target="_blank" rel="noopener nofollow">{{ $user->url }}</a></p>@endif
<p><strong>注册时间:</strong>{{ $user->created_at?->format('Y-m-d') }}</p>
<p><strong>登录次数:</strong>{{ $user->logincount }}</p>
<p><strong>角色:</strong>{{ $user->getRoleNames()->implode(', ') ?: '会员' }}</p>
<p><strong>我的文章:</strong>{{ $user->posts()->count() }} </p>
<p><strong>我的评论:</strong>{{ $user->comments()->count() }} </p>
</div>
<p><a href="{{ route('home') }}">&laquo; 返回首页</a></p>
</main>
@include('partials.sidebar')
</div>
@include('partials.footer')
</body>
</html>