Skip to content

Commit c98d2e4

Browse files
author
Itamar Junior
committed
fix: add fallback values for category and provider names in budget calendar view
1 parent 4a59417 commit c98d2e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/livewire/company/budget-calendar.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ class="absolute top-2 right-2 text-gray-400 hover:text-gray-600">
180180
<tbody>
181181
@foreach ($selectedDueItems as $item)
182182
<tr>
183-
<td class="px-4 py-2 border-b">{{ $item['model']->contract->category->name ?? '-' }}
183+
<td class="px-4 py-2 border-b">{{ $item['model']->contract->category->name ?? $item['model']->category->name ?? '-' }}
184184
</td>
185-
<td class="px-4 py-2 border-b">{{ $item['model']->contract->provider->name ?? '-' }}
185+
<td class="px-4 py-2 border-b">{{ $item['model']->contract->provider->name ?? $item['model']->provider->name ?? '-' }}
186186
</td>
187187
<td class="px-4 py-2 border-b">
188188
{{ Number::currency($item['model']->budget ?? 0, 'EUR') }}</td>

0 commit comments

Comments
 (0)