diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index d6a0616..b1b4251 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -204,10 +204,9 @@ function localeAppUrl(): string function convertToOriginalFormat($apiPrice) { - // Convert to float and divide by 100 $originalPrice = intval($apiPrice) / 100; - return number_format($originalPrice, 2, '.', ''); // Format with 2 decimal places + return number_format($originalPrice, 2, '.', ''); } function lastDayOfMonth($month, $year) diff --git a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php index 649bf9e..d6a3bcc 100644 --- a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php +++ b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php @@ -108,7 +108,7 @@ class NovaVisaMasterPaymentOrderItem extends Resource Text::make('Amaly geçiren raýatyň kart belgisi (mask)', 'payer_card'), - Text::make('Töleg ýyly', fn ($model) => $model->format('Y')), + Text::make('Töleg ýyly', fn ($model) => $model->created_at->format('Y')), Text::make('Töleg aýy', fn ($model) => $model->created_at->translatedFormat('F')), Text::make('Amalyň geçirilen wagty', fn ($model) => $model->created_at->format('H:i, d.m.Y')),