{{-- Screen lock with a "Show" button. Only included for users who pass viewPasscode. Needs $job. --}} @php $views = auth()->user()->isAdmin() ? $job->passcodeViews()->with('user')->latest('viewed_at')->take(10)->get() : collect(); @endphp
Every time it is shown, your name and the time are saved.
@if ($views->isNotEmpty())