Skip to content

Commit

Permalink
#164 when product has deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Apr 12, 2024
1 parent 358c20a commit 0b58b52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,17 @@ class="text-[14px] text-blue-600 transition-all hover:underline"
<tr>
<td>

@if($item->product?->base_image_url)

<?php
//var_dump($item);exit;
?>

@if(!empty($item->product))
<img
class="" height="200px"
src="{{ $item->product?->base_image_url }}"
src="{{ $item->product->base_image_url }}"
@else
<img src="{{ bagisto_asset('images/product-placeholders/front.svg') }}">
@endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
@foreach ($order->items as $item)
<tr>
<td>
@if ($item->product->base_image_url)
@if (!empty($item->product))
<img
width="100"
src="{{ $item->product->base_image_url }}"
Expand Down

0 comments on commit 0b58b52

Please sign in to comment.