Skip to content

Commit

Permalink
1.) added: restored blade check with amends to avoid issues
Browse files Browse the repository at this point in the history
Signed-off-by: Oskars Germovs <[email protected]>
  • Loading branch information
Faks committed Sep 7, 2024
1 parent d40adfe commit 235eb26
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions resources/views/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@
@foreach ($invoice->items as $item)
<tr>
<td>{{ $loop->iteration }}</td>
@if($invoice->hasImage())
<td>
<img src="{{ url($item->get('imageUrl')) }}"/>
</td>
@endif
<td>
@if($invoice->hasImage() && $item->get('imageUrl'))
<img src="{{ url($item?->get('imageUrl')) }}"/>
@else
-
@endif
</td>
<td>{{ $item->get('id') }}</td>
<td>{{ $item->get('name') }}</td>
<td>{{ $item->get('price') }} {{ $invoice->formatCurrency()->symbol }}</td>
Expand Down

0 comments on commit 235eb26

Please sign in to comment.