Add number to tables

This commit is contained in:
Afiq Hamzah
2024-08-13 15:01:29 +08:00
parent e1949d36f9
commit 4e0ac74ff6
6 changed files with 12 additions and 0 deletions
@@ -30,6 +30,7 @@
<div class="container mx-auto p-4 bg-yellow-50"> <div class="container mx-auto p-4 bg-yellow-50">
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="No." />
<x-table.header content="billplz_id" /> <x-table.header content="billplz_id" />
<x-table.header content="Transaction Arrahn" /> <x-table.header content="Transaction Arrahn" />
<x-table.header content="Transaction Billplz" /> <x-table.header content="Transaction Billplz" />
@@ -37,6 +38,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse ($billPlzTransactionReview as $data) @forelse ($billPlzTransactionReview as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data :content="$data['bill_id']" /> <x-table.data :content="$data['bill_id']" />
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> <td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center"> <div class="flex items-center">
@@ -35,6 +35,7 @@
</div> </div>
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="No." />
<x-table.header content="billplz_id" /> <x-table.header content="billplz_id" />
<x-table.header content="Transaction Arrahn" /> <x-table.header content="Transaction Arrahn" />
<x-table.header content="Transaction Billplz" /> <x-table.header content="Transaction Billplz" />
@@ -42,6 +43,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse ($billPlzTransactionSummary as $data) @forelse ($billPlzTransactionSummary as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data :content="$data['billplz_bill']['id']" /> <x-table.data :content="$data['billplz_bill']['id']" />
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> <td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
@foreach ($data['arrahn_transactions'] as $arrahn_transaction) @foreach ($data['arrahn_transactions'] as $arrahn_transaction)
@@ -2,6 +2,7 @@
<x-table.horizontal-scroller scrollDirection="right" tabContent="glDetail" /> <x-table.horizontal-scroller scrollDirection="right" tabContent="glDetail" />
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="no." />
<x-table.header content="kodcaw" /> <x-table.header content="kodcaw" />
<x-table.header content="recno" /> <x-table.header content="recno" />
<x-table.header content="tarikh" /> <x-table.header content="tarikh" />
@@ -23,6 +24,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse ($transactionTrail['glDetail'] as $data) @forelse ($transactionTrail['glDetail'] as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data :content="$data['kodcaw']" /> <x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['recno']" /> <x-table.data :content="$data['recno']" />
<x-table.data :content="$data['tarikh']" /> <x-table.data :content="$data['tarikh']" />
@@ -2,6 +2,7 @@
<x-table.horizontal-scroller scrollDirection="left" tabContent="transactions-online" /> <x-table.horizontal-scroller scrollDirection="left" tabContent="transactions-online" />
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="no." />
<x-table.header content="update_status" /> <x-table.header content="update_status" />
<x-table.header content="update_serahan" /> <x-table.header content="update_serahan" />
<x-table.header content="billplz_id" /> <x-table.header content="billplz_id" />
@@ -24,6 +25,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse ($transactionTrail['transactionsOnline'] as $data) @forelse ($transactionTrail['transactionsOnline'] as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data-status-orb :content="$data['update_status']" /> <x-table.data-status-orb :content="$data['update_status']" />
<x-table.data-status-orb :content="$data['update_serahan']" /> <x-table.data-status-orb :content="$data['update_serahan']" />
<x-table.data-link :content="$data['billplz_id']" :url="route('transaction.online.log.show', $data['billplz_id'])" /> <x-table.data-link :content="$data['billplz_id']" :url="route('transaction.online.log.show', $data['billplz_id'])" />
@@ -2,6 +2,7 @@
<x-table.horizontal-scroller scrollDirection="right" tabContent="transactions" /> <x-table.horizontal-scroller scrollDirection="right" tabContent="transactions" />
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="no." />
<x-table.header content="id" /> <x-table.header content="id" />
<x-table.header content="trans_type" /> <x-table.header content="trans_type" />
<x-table.header content="norujukan" /> <x-table.header content="norujukan" />
@@ -19,6 +20,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse($transactionTrail['transaction'] as $data) @forelse($transactionTrail['transaction'] as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data :content="$data['id']" /> <x-table.data :content="$data['id']" />
<x-table.data :content="$data['trans_type']" /> <x-table.data :content="$data['trans_type']" />
<x-table.data :content="$data['norujukan']" /> <x-table.data :content="$data['norujukan']" />
@@ -2,6 +2,7 @@
<x-table.horizontal-scroller scrollDirection="right" tabContent="transaksi-keuntungan" /> <x-table.horizontal-scroller scrollDirection="right" tabContent="transaksi-keuntungan" />
<x-table> <x-table>
<x-slot name="header"> <x-slot name="header">
<x-table.header content="no." />
<x-table.header content="id" /> <x-table.header content="id" />
<x-table.header content="norujukan" /> <x-table.header content="norujukan" />
<x-table.header content="bayaran_keuntungan" /> <x-table.header content="bayaran_keuntungan" />
@@ -20,6 +21,7 @@
<x-slot name="body"> <x-slot name="body">
@forelse ($transactionTrail['transaksiKeuntungan'] as $data) @forelse ($transactionTrail['transaksiKeuntungan'] as $data)
<tr> <tr>
<x-table.data :content="$loop->iteration" />
<x-table.data :content="$data['id']" /> <x-table.data :content="$data['id']" />
<x-table.data :content="$data['norujukan']" /> <x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['bayaran_keuntungan']" /> <x-table.data :content="$data['bayaran_keuntungan']" />