tambah status berjaya dalam wasap dan sms

This commit is contained in:
Nur Izzati Zulkifli
2023-11-22 15:10:37 +08:00
parent 6209bd340f
commit 2aa4afe22b
8 changed files with 672 additions and 17 deletions
@@ -278,6 +278,7 @@
<th>Tempoh</th>
<th>Tarikh</th>
<th>Masa</th>
<th>Status</th>
</thead>
@php
$counter = 1;
@@ -301,6 +302,19 @@
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('d-m-Y', strtotime($item1['created_at']))}}<br>@endforeach</td>
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1){{ date('h:i:s', strtotime($item1['created_at']))}}<br>@endforeach</td>
<td style="white-space: nowrap;">@foreach($item['rekodblast'] as $item1)
@php
$response = $item1['status'];
$status = collect(json_decode($response));
@endphp
@if($status['status'] == "success")
Berjaya
@else
Tidak Berjaya
@endif
<br>@endforeach</td>
</tr>
@php $counter++; @endphp
@endforeach