This commit is contained in:
2024-11-22 20:41:18 +05:00
parent d6bffca89b
commit 0ffcdf2629

View File

@@ -87,23 +87,25 @@ class CheckOnlinePayment extends Action
{
$errorMessage = $response['ErrorMessage'];
$response->collect()->each(function ($item, $key) {
info([
'item' => $item,
'key' => $key,
]);
$keyValueListHTML = '';
$response->collect()->each(function ($item, $key) use (&$keyValueListHTML) {
$keyValueListHTML += "<li><span>{$key}:</span> <strong>{$item}</strong></li>";
});
return Blade::render(<<<HTML
<span class="mb-2">HALKBANK-dan gelen netije:</span>
<hr>
<div class="w-full border text-left appearance-none rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative inline-flex items-center justify-center shadow h-9 px-3 bg-primary-500 border-primary-500 text-white dark:text-gray-900">
<div class="w-full border text-left appearance-none rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative inline-flex items-center shadow h-9 px-3 bg-primary-500 border-primary-500 text-white dark:text-gray-900">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6 mr-2">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span>$errorMessage</span>
</div>
<ul>
$keyValueListHTML
</ul>
HTML);
}
}