@php $mpinSet = ! empty($user->chat_password_hash); $mpinEnabled = (bool) $user->chat_password_enabled && $mpinSet; @endphp

Chat MPIN

Protect chat with a 4-digit MPIN before opening messages.

@csrf @include('settings.partials.toggle-row', [ 'name' => 'mpin_enabled_ui', 'label' => 'Chat MPIN lock', 'checked' => $mpinEnabled, 'disabled' => ! $mpinSet, 'hint' => $mpinEnabled ? 'Required before opening chat' : ($mpinSet ? 'MPIN saved, protection off' : 'Create MPIN below first'), ])
@if(! $mpinSet)
@csrf
@else
@csrf
@endif @if($user->chat_password_last_changed_at)

Last changed {{ $user->chat_password_last_changed_at->diffForHumans() }}

@endif