From 9a04f373f0f5a6dc85294bfaa6a0328a7fc0da17 Mon Sep 17 00:00:00 2001 From: 1day2die Date: Fri, 9 Jun 2023 23:23:23 +0200 Subject: [PATCH] fix voucher showing expiry "never" --- app/Http/Controllers/Admin/VoucherController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/VoucherController.php b/app/Http/Controllers/Admin/VoucherController.php index f39f9c33..ec6c5232 100644 --- a/app/Http/Controllers/Admin/VoucherController.php +++ b/app/Http/Controllers/Admin/VoucherController.php @@ -245,10 +245,10 @@ class VoucherController extends Controller }) ->editColumn('expires_at', function (Voucher $voucher) { if (! $voucher->expires_at) { - return ''; + return __("Never"); } - return $voucher->expires_at ? $voucher->expires_at->diffForHumans() : ''; + return $voucher->expires_at ? $voucher->expires_at->diffForHumans() : __("Never"); }) ->editColumn('code', function (Voucher $voucher) { return "{$voucher->code}";