Skip to content

Commit

Permalink
Display 'Never' for coupons without expiration dates
Browse files Browse the repository at this point in the history
  • Loading branch information
molnarerwin committed Jul 30, 2024
1 parent aae90b9 commit c547e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/coupon/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{{ __('Expires at') }}

<x-slot:subtitle>
{{ show_datetime($coupon->expires_at) }}
{{ $coupon->expires_at ? show_datetime($coupon->expires_at) : __('Never') }}
</x-slot:subtitle>
</x-appshell::card-with-icon>
</div>
Expand Down

0 comments on commit c547e1b

Please sign in to comment.