pos-gis/resources/views/export/csv_billing.blade.php
2024-10-07 13:13:42 +07:00

39 lines
1.2 KiB
PHP

@php
$data = $param['data'];
@endphp
<table style="width:100%;">
<tr>
<th>Merchant</th>
<th>Time</th>
<th>Staff</th>
<th>Amount</th>
<th>Tax</th>
<th>Service Percentage</th>
<th>Charge Amount</th>
<th>Total Amount</th>
<th>Billing Code</th>
<th>Promo Voucher</th>
<th>Payment Status</th>
</tr>
@foreach ($data as $v)
<tr>
<td>{{$v->merchant_nm}}</td>
<td>{{date('d/m/Y H:i:s',strtotime($v->crtdt))}}</td>
<td>{{$v->user_nm}}</td>
<td>{{$v->bill_amount}}</td>
<td>{{$v->tax_amount}}</td>
<td>{{$v->charge_service_prs}}</td>
<td>{{$v->charge_amount}}</td>
<td>{{$v->total_amount}}</td>
<td>{{$v->bill_code}}</td>
<td>{{$v->promo_code}}</td>
<td>{{$v->payment_status_nm}}</td>
</tr>
@endforeach
</table>