ソースを参照

fix voucher showing expiry "never"

1day2die 2 年 前
コミット
9a04f373f0
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/Http/Controllers/Admin/VoucherController.php

+ 2 - 2
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 "<code>{$voucher->code}</code>";