wip
This commit is contained in:
@@ -87,23 +87,25 @@ class CheckOnlinePayment extends Action
|
|||||||
{
|
{
|
||||||
$errorMessage = $response['ErrorMessage'];
|
$errorMessage = $response['ErrorMessage'];
|
||||||
|
|
||||||
$response->collect()->each(function ($item, $key) {
|
$keyValueListHTML = '';
|
||||||
info([
|
$response->collect()->each(function ($item, $key) use (&$keyValueListHTML) {
|
||||||
'item' => $item,
|
$keyValueListHTML += "<li><span>{$key}:</span> <strong>{$item}</strong></li>";
|
||||||
'key' => $key,
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return Blade::render(<<<HTML
|
return Blade::render(<<<HTML
|
||||||
<span class="mb-2">HALKBANK-dan gelen netije:</span>
|
<span class="mb-2">HALKBANK-dan gelen netije:</span>
|
||||||
<hr>
|
<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">
|
<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>
|
</svg>
|
||||||
<span>$errorMessage</span>
|
<span>$errorMessage</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
$keyValueListHTML
|
||||||
|
</ul>
|
||||||
HTML);
|
HTML);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user