@props(['key']) @php $key = $key ?? null; $hint = $key ? \App\Support\Hints::get($key) : null; $user = auth()->user(); $show = $hint && $user && $user->shouldSeeHint($key); if (! $show) { return; } $lc = \App\Support\Hints::locale(); $title = $hint['title'][$lc] ?? $hint['title']['ro']; $body = $hint['body'][$lc] ?? $hint['body']['ro']; $links = $hint['links'] ?? []; $next = $hint['next'][$lc] ?? null; @endphp
{{ $title }}
{{ $body }}
@if ($next)
→ {{ $next }}
@endif @foreach ($links as $ln) {{ $ln['label_' . $lc] ?? $ln['label_ro'] }} → @endforeach