<?= $this->extend('templates/index'); ?>
<?= $this->section('content'); ?>

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col">
                <div class="card card-primary">
                    <div class="card-header">
                        <h3 class="card-title">Profil</h3>
                    </div>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <strong><i class="fas fa-building mr-1"></i> Nama Perusahaan</strong>
                        <p class="text-muted"><?= $data['nama']; ?></p>

                        <hr>

                        <strong><i class="fas fa-list mr-1"></i> Daftar Produk</strong>

                        <?php if(count($daftar_produk) > 0) : ?>
                            <?php foreach($daftar_produk as $key => $dp) : ?>
                                <p class="text-muted"><i class="fas fa-circle fa-xs"></i> <?= $dp['nama']; ?></p>
                            <?php endforeach; ?>
                        <?php else : ?>
                            <p class="text-muted"><i class="fas fa-times-circle fa-xs"></i> Tidak ada produk</p>
                        <?php endif; ?>
                        

                        <hr>

                        <strong><i class="far fa-file-alt mr-1"></i> Keterangan</strong>

                        <p class="text-muted"><?= $data['keterangan']; ?></p>
                    </div>
                    <!-- /.card-body -->
                </div>
            </div>
        </div>
    </div>
</section>

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