fixed vendor payment details modal and dynamic data display

This commit is contained in:
gelonspr 2024-03-26 16:44:13 +08:00
parent 7f571bd37a
commit 011ae8496e
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ if (is_array($vendorDecode)) {
foreach ($vendorOrders as $order) {
$orderArray = json_encode($order, true);
$orderItems = json_decode($orderArray, true);
if($orderItems['payment']['status'] == 'paid'){
if(strtolower($orderItems['payment']['status']) == 'paid'){
$rawDate = $orderItems['payment']['details'][0]['attributes']['data']['attributes']['payments'][0]['createdAt'];
if ($rawDate) {