This commit is contained in:
2025-06-03 14:14:24 +05:00
parent 92f0eeb2e0
commit c782e6fdf2
2 changed files with 11 additions and 20 deletions

View File

@@ -48,13 +48,13 @@ class DownloadCardBalance extends Action
return ActionResponse::danger($data->message); return ActionResponse::danger($data->message);
} }
// return Action::modal('modal-response', [ return Action::modal('modal-response', [
// 'title' => __('Card balance'), 'title' => __('Card balance'),
// 'html' => Blade::render( 'html' => Blade::render(
// file_get_contents(app_path('Nova/Resources/Order/Card/CardBalance/Views/card-balance.blade.php')), file_get_contents(app_path('Nova/Resources/Order/Card/CardBalance/Views/card-balance.blade.php')),
// ['data' => $data] ['data' => $data]
// ), ),
// ]); ]);
} }
/** /**
@@ -100,15 +100,6 @@ class DownloadCardBalance extends Action
curl_close($curl); curl_close($curl);
info([
'response' => $response,
'passport_serie' => $passport_serie,
'passport_id' => $passport_id,
'card_masked' => $card_masked,
'card_expire_date' => $card_expire_date,
]);
return Str::isJson($response) return Str::isJson($response)
? json_decode($response) ? json_decode($response)
: emptyClass(errCode: 1, message: 'Connection issue to VP'); : emptyClass(errCode: 1, message: 'Connection issue to VP');

View File

@@ -19,7 +19,7 @@
</div> </div>
<div> <div>
<h1 class="text-xl font-bold" style="color: rgb(30, 41, 59);">Nexus Bank</h1> <h1 class="text-xl font-bold" style="color: rgb(30, 41, 59);">Nexus Bank</h1>
<p class="text-sm" style="color: rgb(100, 116, 139);">Premium Card</p> <p class="text-sm" style="color: rgb(100, 116, 139);">{{ $data->cardName }}</p>
</div> </div>
</div> </div>
<div class="space-y-6"> <div class="space-y-6">
@@ -29,7 +29,7 @@
</p> </p>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<p class="text-lg font-mono tracking-wider" style="color: rgb(30, 41, 59);"> <p class="text-lg font-mono tracking-wider" style="color: rgb(30, 41, 59);">
{{ $data->cardPan }} {{ $data->cardMaskNumber }}
</p> </p>
</div> </div>
</div> </div>
@@ -39,7 +39,7 @@
{{ __('Card holder name') }} {{ __('Card holder name') }}
</p> </p>
<p class="text-sm font-medium" style="color: rgb(30, 41, 59);"> <p class="text-sm font-medium" style="color: rgb(30, 41, 59);">
{{ $data->clientName }} ---YOK---
</p> </p>
</div> </div>
<div> <div>
@@ -57,7 +57,7 @@
{{ __('Money Balance') }} {{ __('Money Balance') }}
</p> </p>
</div> </div>
{{-- <p class="text-2xl font-bold" style="color: rgb(5, 150, 105);">{{ $data-> }}</p> --}} <p class="text-2xl font-bold" style="color: rgb(5, 150, 105);">{{ $data->balance }}</p>
</div> </div>
</div> </div>
</div> </div>