dashboard produksi & ganti warna chart
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
box-shadow: 0 .25rem 1rem rgba(34, 48, 62, .08);
|
||||
}
|
||||
|
||||
.tk-stat.green { border-left-color: #28a745; }
|
||||
.tk-stat.blue { border-left-color: #007bff; }
|
||||
.tk-stat.amber { border-left-color: #fd7e14; }
|
||||
.tk-stat.green { border-left-color: #6FD68F; }
|
||||
.tk-stat.blue { border-left-color: #5FC7D6; }
|
||||
.tk-stat.amber { border-left-color: #FFB46F; }
|
||||
|
||||
.tk-stat-lbl {
|
||||
font-size: 10px;
|
||||
@@ -444,10 +444,10 @@
|
||||
@forelse ($progressPetani as $petani)
|
||||
@php
|
||||
$barColor = match (true) {
|
||||
$petani['percent'] === 100 => '#28a745',
|
||||
$petani['percent'] >= 50 => '#007bff',
|
||||
$petani['percent'] >= 20 => '#fd7e14',
|
||||
default => '#dc3545',
|
||||
$petani['percent'] === 100 => '#6FD68F',
|
||||
$petani['percent'] >= 50 => '#5FC7D6',
|
||||
$petani['percent'] >= 20 => '#FFB46F',
|
||||
default => '#F47C86',
|
||||
};
|
||||
|
||||
$initial = collect(explode(' ', trim($petani['name'])))
|
||||
@@ -465,8 +465,8 @@
|
||||
style="
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: rgba(40,167,69,.15);
|
||||
color: #28a745;
|
||||
background: rgba(111,214,143,.24);
|
||||
color: #6FD68F;
|
||||
"
|
||||
>
|
||||
{{ $initial ?: 'PT' }}
|
||||
|
||||
Reference in New Issue
Block a user