返回大厅
✉️

星光留言板

@if (session('success')) @endif @if (session('error')) @endif @if (isset($errors) && $errors->any())
@endif
@csrf
@forelse($messages as $msg) @php // 判断是否属于自己发或收的悄悄话,用于高亮 $isSecret = $msg->secret == 1; $isToMe = Auth::check() && $msg->towho === Auth::user()->username; $isFromMe = Auth::check() && $msg->who === Auth::user()->username; @endphp
@if ($isSecret)
🔒 私密信件
@endif
{{ $msg->who }} {{ $msg->towho ?: '大家' }} 留言:
{{ \Carbon\Carbon::parse($msg->post_time)->diffForHumans() }} @if ($isFromMe || $isToMe || (Auth::check() && Auth::user()->user_level >= 15))
@csrf @method('DELETE')
@endif
{!! nl2br(e($msg->text_body)) !!}
@if (!Auth::check() || $msg->who !== Auth::user()->username)
@endif
@empty
📭

暂无信件

这里是空空如也的荒原。

@endforelse
{{ $messages->links() }}
🌍 公共墙 📥 收件箱 📤 发件箱