@php $otpExpiresIn = $user->otp_expires_at ? (int) ceil(now()->diffInSeconds($user->otp_expires_at, false) / 60) : null; @endphp Your 2ndLine Login Code
Your 2ndLine login code is {{ $otp }}@if($otpExpiresIn > 0) — it expires in {{ $otpExpiresIn }} {{ $otpExpiresIn == 1 ? 'minute' : 'minutes' }}@endif. ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌