🛠️ Add safe navigation operator and fallback asset for handling null profiles in blade templates

This commit is contained in:
HolgerHatGarKeineNode
2026-01-06 21:09:14 +01:00
parent a1dd16cf65
commit 7dd0c32d4f
2 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ $handleNotApprove = function () {
<div class="flex items-center sm:mr-4">
<a class="block mr-2 shrink-0" href="#0">
<img class="rounded-full"
src="{{ $projectProposal->einundzwanzigPleb->profile->picture }}"
src="{{ $projectProposal->einundzwanzigPleb->profile?->picture ?? asset('einundzwanzig-alpha.jpg') }}"
width="32" height="32" alt="User 04">
</a>
<div class="text-sm whitespace-nowrap">Eingereicht von