<!-- Content Header (Page header) -->
<section class="content-header">
	<div class="container-fluid">
		<div class="row mb-2">
			<div class="col-sm-6">
				<h1 class="m-0">Settings</h1>
			</div>

			<div class="col-sm-6">
				<ol class="breadcrumb float-sm-right">
					<li class="breadcrumb-item"><a href="dashboard">Dashboard</a></li>
					<li class="breadcrumb-item active">Settings</li>
				</ol>
			</div>
		</div>
	</div>
</section>

<!-- Main content -->
<section class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<?php $this->load->view( 'flash_message' );?>
			</div>
		</div>

		<!-- Small boxes (Stat box) -->
		<div class="row">
			<?php if ( $privileges['basic_settings'] == 1 ): ?>
				<div class="col-lg-3 col-md-6">
					<!-- small box -->
					<a href="settings/basic">
						<div class="small-box bg-info">
							<div class="inner">
								<h3>Basic</h3>
								<p>&nbsp;</p>
							</div>
							<div class="icon">
								<i class="fa fa-cogs"></i>
							</div>
							<span class="small-box-footer">Basic Settings <i class="fas fa-arrow-circle-right"></i></span>
						</div>
					</a>
				</div>
			<?php endif;?>

			<?php if ( $privileges['currency_settings'] == 1 ): ?>
				<div class="col-lg-3 col-md-6">
					<!-- small box -->
					<a href="settings/currency-list">
						<div class="small-box bg-success">
							<div class="inner">
								<h3>Currency</h3>
								<p>&nbsp;</p>
							</div>
							<div class="icon">
							<i class="fa fa-money-bill-wave"></i>
							</div>
							<span class="small-box-footer">Currency Settings <i class="fas fa-arrow-circle-right"></i></span>
						</div>
					</a>
				</div>
			<?php endif;?>

			<?php if ( $this->session->user_type == 'Admin' ): ?>
				<?php if ( $privileges['company_settings'] == 1 ): ?>
					<div class="col-lg-3 col-md-6">
						<!-- small box -->
						<a href="settings/cmp-list">
							<div class="small-box bg-warning">
								<div class="inner">
									<h3 class="text-white">Company</h3>
									<p>&nbsp;</p>
								</div>
								<div class="icon">
									<i class="fa fa-building"></i>
								</div>
								<span class="small-box-footer">Company Settings <i class="fas fa-arrow-circle-right"></i></span>
							</div>
						</a>
					</div>
				<?php endif;?>

				<?php if ( $privileges['default_ac_head_settings'] == 1 ): ?>
					<div class="col-lg-3 col-md-6">
						<!-- small box -->
						<a href="settings/chart-list">
							<div class="small-box bg-danger">
								<div class="inner">
									<h3>Chart of Accounts</h3>
									<p>&nbsp;</p>
								</div>
								<div class="icon">
									<i class="fa fa-list-ol"></i>
								</div>
								<span class="small-box-footer">Default Chart of Account Settings <i class="fas fa-arrow-circle-right"></i></span>
							</div>
						</a>
					</div>
				<?php endif;?>
			<?php endif;?>
		</div>
	</div>
</section>