Give label to spare customer in logs if log status starts at 12

This commit is contained in:
Afiq Hamzah
2024-10-08 09:31:25 +08:00
parent bcf6021af7
commit 7132f9f640
+1 -1
View File
@@ -25,7 +25,7 @@
<button class="accordion-toggle w-full bg-gray-700 text-gray-100 p-2 text-left focus:outline-none">
<h2 class="inline-block">Bill ID: {{ $bill_id }}</h2>
@php
$isSpareCustomer = json_decode($logs[0]['payload']) != null && $logs[0]['status'] == '6';
$isSpareCustomer = json_decode($logs[0]['payload']) != null && $logs[0]['status'] == '6' && $logs[0]['status'] != '12';
$isArrahnPayCustomer = json_decode($logs[0]['payload']) != null && $logs[0]['status'] == '1';
$extractedCustomerName = 'error';