<?= $this->extend('layouts/owner') ?>

<?= $this->section('content') ?>

<div class="container-fluid">

<div class="card shadow">

<div class="card-header bg-primary text-white">

Laporan Penjualan

</div>

<div class="card-body">

<table class="table table-bordered">

<thead>

<tr>

<th>No</th>

<th>No Order</th>

<th>Customer</th>

<th>Tanggal</th>

<th>Total</th>

<th>Status</th>

</tr>

</thead>

<tbody>

<?php $no=1; foreach($orders as $row): ?>

<tr>

<td><?= $no++ ?></td>

<td><?= $row['nomor_order'] ?></td>

<td><?= $row['id_customer'] ?></td>

<td><?= $row['tanggal_order'] ?></td>

<td>

Rp <?= number_format($row['grand_total'],0,',','.') ?>

</td>

<td><?= $row['payment_status'] ?></td>

</tr>

<?php endforeach ?>

</tbody>

</table>

</div>

</div>

</div>

<?= $this->endSection() ?>