Add status orb to table transaction online
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
@props(['content'])
|
||||
|
||||
<div>
|
||||
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" {{ $attributes->merge(['colspan' => '']) }}>
|
||||
<div class="flex justify-center items-center">
|
||||
@if ($content == 1)
|
||||
<span class="inline-flex items-center justify-center w-5 h-5">
|
||||
<span class="w-full h-full bg-green-500 rounded-full"></span>
|
||||
</span>
|
||||
@elseif($content == 0)
|
||||
<span class="inline-flex items-center justify-center w-5 h-5">
|
||||
<span class="w-full h-full bg-red-500 rounded-full"></span>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
</div>
|
||||
+2
-2
@@ -29,8 +29,8 @@
|
||||
<x-slot name="body">
|
||||
@foreach ($transaction as $data)
|
||||
<tr>
|
||||
<x-table.data :content="$data['update_status']" />
|
||||
<x-table.data :content="$data['update_serahan']" />
|
||||
<x-table.data-status-orb :content="$data['update_status']" />
|
||||
<x-table.data-status-orb :content="$data['update_serahan']" />
|
||||
<x-table.data :content="$data['billplz_id']" />
|
||||
<x-table.data :content="$data['norujukan']" />
|
||||
<x-table.data :content="$data['total_payment']" />
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
<x-slot name="body">
|
||||
@forelse ($transactionTrail['transactionsOnline'] as $data)
|
||||
<tr>
|
||||
<x-table.data :content="$data['update_status']" />
|
||||
<x-table.data :content="$data['update_serahan']" />
|
||||
<x-table.data-status-orb :content="$data['update_status']" />
|
||||
<x-table.data-status-orb :content="$data['update_serahan']" />
|
||||
<x-table.data :content="$data['billplz_id']" />
|
||||
<x-table.data :content="$data['norujukan']" />
|
||||
<x-table.data :content="$data['total_payment']" />
|
||||
|
||||
Reference in New Issue
Block a user