wip
This commit is contained in:
@@ -20,7 +20,6 @@ function isLocalIp(string $ip = ''): bool
|
||||
|
||||
/**
|
||||
* Is turkmen ip
|
||||
* @param string $ip
|
||||
*/
|
||||
function isTurkmenIp(string $ip = ''): bool
|
||||
{
|
||||
|
||||
@@ -50,11 +50,7 @@ class OnlinePaymentController extends Controller
|
||||
'password' => $resource->branch->billing_password,
|
||||
]);
|
||||
|
||||
$payment_status = $response['depositAmount'] > 0;
|
||||
|
||||
info([
|
||||
'payment_status' => $payment_status
|
||||
]);
|
||||
$payment_status = $response['ErrorCode'] == '0';
|
||||
|
||||
if ($payment_status) {
|
||||
$resource->update([
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Nova\Actions;
|
||||
|
||||
use App\Repos\System\Locale\LocaleManagerRepo;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Collection;
|
||||
use Laravel\Nova\Actions\Action;
|
||||
@@ -18,10 +17,6 @@ class ExportTranslations extends Action
|
||||
|
||||
/**
|
||||
* Perform the action on the given models.
|
||||
*
|
||||
* @param \Laravel\Nova\Fields\ActionFields $fields
|
||||
* @param \Illuminate\Support\Collection $models
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(ActionFields $fields, Collection $models): mixed
|
||||
{
|
||||
@@ -32,9 +27,6 @@ class ExportTranslations extends Action
|
||||
|
||||
/**
|
||||
* Get the fields available on the action.
|
||||
*
|
||||
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
|
||||
* @return array
|
||||
*/
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
|
||||
@@ -11,8 +11,8 @@ use App\Repos\System\Location\CountryRepo;
|
||||
use App\Repos\System\Settings\Location\RegionRepo;
|
||||
use Laravel\Nova\Fields\Badge;
|
||||
use Laravel\Nova\Fields\BelongsTo;
|
||||
use Laravel\Nova\Fields\Date;
|
||||
use Laravel\Nova\Fields\Boolean;
|
||||
use Laravel\Nova\Fields\Date;
|
||||
use Laravel\Nova\Fields\DateTime;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Image;
|
||||
|
||||
@@ -79,8 +79,6 @@ class LocaleManagerResource extends Resource
|
||||
|
||||
/**
|
||||
* Get the actions available for the resource.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ use Illuminate\Support\Facades\Gate;
|
||||
use Laravel\Nova\Events\ServingNova;
|
||||
use Laravel\Nova\Fields\Date;
|
||||
use Laravel\Nova\Fields\DateTime;
|
||||
use Laravel\Nova\Fields\Filters\DateTimeFilter;
|
||||
use Laravel\Nova\Menu\Menu;
|
||||
use Laravel\Nova\Menu\MenuItem;
|
||||
use Laravel\Nova\Nova;
|
||||
|
||||
@@ -26,12 +26,10 @@ class OnlinePaymentRepo
|
||||
|
||||
/**
|
||||
* Set price
|
||||
*
|
||||
* @param int|float|string $price
|
||||
*/
|
||||
public function getPrice(int|float|string $price): string
|
||||
{
|
||||
return number_format($price, 2, "", "");
|
||||
return number_format($price, 2, '', '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -63,7 +63,7 @@ class LocaleManagerRepo
|
||||
*/
|
||||
public function localeAppTranslationsDirectory(): string
|
||||
{
|
||||
return $this->localeAppPath . DIRECTORY_SEPARATOR . 'lang';
|
||||
return $this->localeAppPath.DIRECTORY_SEPARATOR.'lang';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -82,8 +82,8 @@ class LocaleManagerRepo
|
||||
public function syncTranslationsWithLocaleApp(): self
|
||||
{
|
||||
$response = Http::acceptJson()->withHeaders([
|
||||
'Api-Token' => $this->localeAppApiToken,
|
||||
])
|
||||
'Api-Token' => $this->localeAppApiToken,
|
||||
])
|
||||
->retry(
|
||||
times: 3,
|
||||
sleepMilliseconds: 50,
|
||||
@@ -92,7 +92,7 @@ class LocaleManagerRepo
|
||||
return true;
|
||||
})
|
||||
->post(
|
||||
url: $this->localeAppUrl . '/api/import-translations',
|
||||
url: $this->localeAppUrl.'/api/import-translations',
|
||||
data: []
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user