wip
This commit is contained in:
@@ -204,10 +204,9 @@ function localeAppUrl(): string
|
|||||||
|
|
||||||
function convertToOriginalFormat($apiPrice)
|
function convertToOriginalFormat($apiPrice)
|
||||||
{
|
{
|
||||||
// Convert to float and divide by 100
|
|
||||||
$originalPrice = intval($apiPrice) / 100;
|
$originalPrice = intval($apiPrice) / 100;
|
||||||
|
|
||||||
return number_format($originalPrice, 2, '.', ''); // Format with 2 decimal places
|
return number_format($originalPrice, 2, '.', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function lastDayOfMonth($month, $year)
|
function lastDayOfMonth($month, $year)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class NovaVisaMasterPaymentOrderItem extends Resource
|
|||||||
|
|
||||||
Text::make('Amaly geçiren raýatyň kart belgisi (mask)', 'payer_card'),
|
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('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')),
|
Text::make('Amalyň geçirilen wagty', fn ($model) => $model->created_at->format('H:i, d.m.Y')),
|
||||||
|
|||||||
Reference in New Issue
Block a user