@php
// Get user_id from the route if available, fallback to authenticated user's ID
$user_id = @request()->route('user_id');
@endphp
@if (isset($previous))
@if (Auth::user()->role_id == 4)
← Previous
@else
← Previous
@endif
@endif
@if (isset($next))
@if (Auth::user()->role_id == 4)
Next →
@else
Next →
@endif
@endif