{{-- 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
{{ $job->passcode_type->label() }}
{{-- Pattern: dots numbered in the order to draw them. --}}

Every time it is shown, your name and the time are saved.

@if ($views->isNotEmpty())
Viewed {{ $job->passcodeViews()->count() }} {{ Str::plural('time', $job->passcodeViews()->count()) }}
@endif
@once @endonce