48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
<?php
|
|
require_once 'db/config.php';
|
|
require_once 'includes/header.php';
|
|
require_once 'includes/accounting_functions.php';
|
|
|
|
// Check permission
|
|
if (!canView('accounting')) {
|
|
echo "<div class='container mt-4' dir='rtl'>لا تملك صلاحية الوصول لهذه الصفحة.</div>";
|
|
require_once 'includes/footer.php';
|
|
exit;
|
|
}
|
|
|
|
$balance_sheet = get_balance_sheet();
|
|
?>
|
|
|
|
<div class="container mt-4" dir="rtl">
|
|
<h2 class="text-right">الميزانية العمومية (Balance Sheet)</h2>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="card bg-primary text-white text-center mb-3">
|
|
<div class="card-body">
|
|
<h5>الأصول</h5>
|
|
<h3><?= number_format($balance_sheet['أصول'], 3) ?></h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card bg-danger text-white text-center mb-3">
|
|
<div class="card-body">
|
|
<h5>الخصوم</h5>
|
|
<h3><?= number_format($balance_sheet['خصوم'], 3) ?></h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card bg-success text-white text-center mb-3">
|
|
<div class="card-body">
|
|
<h5>حقوق الملكية</h5>
|
|
<h3><?= number_format($balance_sheet['حقوق ملكية'], 3) ?></h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php require_once 'includes/footer.php'; ?>
|