Edit index.php via Editor
This commit is contained in:
parent
b88fb2e6d7
commit
3404f5328d
81
index.php
81
index.php
@ -52,69 +52,30 @@ require_once 'partials/header.php';
|
||||
|
||||
<!-- İstatistik Kartları -->
|
||||
<div class="row">
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Toplam Gelir</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo number_format($stats['total_revenue'], 2); ?> TL</div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<i class="bi bi-cash-coin fs-2 text-gray-300"></i>
|
||||
<?php
|
||||
$cards = [
|
||||
['title' => 'Toplam Gelir', 'value' => number_format($stats['total_revenue'],2).' TL', 'color' => 'primary', 'icon' => 'bi-cash-coin'],
|
||||
['title' => 'Toplam Kâr', 'value' => number_format($stats['total_profit'],2).' TL', 'color' => 'success', 'icon' => 'bi-graph-up-arrow'],
|
||||
['title' => 'Toplam Ürün Çeşidi', 'value' => $stats['product_count'], 'color' => 'info', 'icon' => 'bi-box-seam'],
|
||||
['title' => 'Düşük Stok Uyarısı', 'value' => $stats['low_stock_count'].' Ürün', 'color' => 'warning', 'icon' => 'bi-exclamation-triangle-fill']
|
||||
];
|
||||
foreach($cards as $c): ?>
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-<?php echo $c['color']; ?> shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-<?php echo $c['color']; ?> text-uppercase mb-1"><?php echo $c['title']; ?></div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $c['value']; ?></div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<i class="bi <?php echo $c['icon']; ?> fs-2 text-gray-300"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Toplam Kâr</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo number_format($stats['total_profit'], 2); ?> TL</div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<i class="bi bi-graph-up-arrow fs-2 text-gray-300"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">Toplam Ürün Çeşidi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $stats['product_count']; ?></div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<i class="bi bi-box-seam fs-2 text-gray-300"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">Düşük Stok Uyarısı</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $stats['low_stock_count']; ?> Ürün</div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<i class="bi bi-exclamation-triangle-fill fs-2 text-gray-300"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<!-- İçerik Alanı -->
|
||||
@ -196,4 +157,4 @@ require_once 'partials/header.php';
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once 'partials/footer.php'; ?>
|
||||
<?php require_once 'partials/footer.php'; ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user