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

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

<div class="container-fluid">

<div class="card shadow">

<div class="card-header bg-warning">

Laporan Penggajian

</div>

<div class="card-body">

<table class="table table-bordered">

<thead>

<tr>

<th>No</th>

<th>Pegawai</th>

<th>Periode</th>

<th>Total Gaji</th>

<th>Status</th>

</tr>

</thead>

<tbody>

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

<tr>

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

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

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

<td>

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

</td>

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

</tr>

<?php endforeach ?>

</tbody>

</table>

</div>

</div>

</div>

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