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

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

<div class="container-fluid">

<div class="card shadow">

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

Laporan Belanja Material

</div>

<div class="card-body">

<table class="table table-bordered">

<thead>

<tr>

<th>No</th>

<th>No Purchase</th>

<th>Supplier</th>

<th>Tanggal</th>

<th>Total</th>

</tr>

</thead>

<tbody>

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

<tr>

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

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

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

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

<td>

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

</td>

</tr>

<?php endforeach ?>

</tbody>

</table>

</div>

</div>

</div>

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