<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><?= isset($title) ? $title : 'Gold Management'; ?></title>

    <link rel="stylesheet" href="<?= base_url('public/plugins/bootstrap/css/bootstrap.min.css'); ?>">
    <link rel="stylesheet" href="<?= base_url('public/plugins/fontawesome/css/all.min.css'); ?>">
    <link rel="stylesheet" href="<?= base_url('public/css/style.css'); ?>">
     <?php
if (isset($css) && !empty($css)) {
    foreach ($css as $file) {
?>
<link rel="stylesheet" href="<?= base_url('public/css/'.$file.'.css'); ?>">
<?php
    }
}
?>

</head>

<body>

<div class="app-wrapper">

    <?php $this->load->view('layouts/sidebar'); ?>

    <div class="main-wrapper">

        <div class="topbar">

            <div class="left">

                <h4><?= isset($title) ? $title : 'Dashboard'; ?></h4>

            </div>

            <div class="right">

                <button class="btn btn-warning btn-sm">
                    <i class="fas fa-user"></i> Admin
                </button>

            </div>

        </div>

        <div class="content-wrapper">