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

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

<div class="container-fluid">

<div class="card shadow">

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

Laporan Cash Flow

</div>

<div class="card-body">

<table class="table table-bordered">

<thead>

<tr>

<th>No</th>

<th>Tanggal</th>

<th>Jenis</th>

<th>Keterangan</th>

<th>Jumlah</th>

</tr>

</thead>

<tbody>

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

<tr>

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

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

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

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

<td>

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

</td>

</tr>

<?php endforeach ?>

</tbody>

</table>

</div>

</div>

</div>

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