dashboard
This commit is contained in:
parent
f6540fd79e
commit
ac93519aac
|
|
@ -24,17 +24,43 @@ function onStart(){
|
|||
|
||||
$this["production1"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 1)->whereYear('date', $year)->count() ?? 0;
|
||||
|
||||
$this["production2"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 2)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production3"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 3)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production4"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 4)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production5"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 5)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production6"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 6)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production7"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 7)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production8"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 8)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production9"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 9)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production10"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 10)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production11"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 11)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production12"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 12)->whereYear('date', $year)->count() ?? 0;
|
||||
$this["production2"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 2)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production3"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 3)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production4"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 4)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production5"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 5)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production6"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 6)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production7"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 7)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production8"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 8)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production9"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 9)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production10"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 10)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production11"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 11)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
$this["production12"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 12)->whereYear('date', $year)->sum('produced_bag_qty') ?? 0;
|
||||
|
||||
$this["brakProduction1"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 1)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction2"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 2)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction3"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 3)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction4"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 4)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction5"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 5)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction6"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 6)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction7"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 7)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction8"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 8)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction9"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 9)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction10"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 10)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction11"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 11)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
$this["brakProduction12"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 12)->whereYear('date', $year)->sum('defective_bag_qty') ?? 0;
|
||||
|
||||
$this["repairBrakProduction1"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 1)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction2"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 2)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction3"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 3)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction4"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 4)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction5"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 5)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction6"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 6)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction7"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 7)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction8"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 8)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction9"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 9)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction10"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 10)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction11"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 11)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
$this["repairBrakProduction12"] = Romanah\Gokbakja\Models\SewerProduction::whereMonth('date', 12)->whereYear('date', $year)->sum('defective_repair_qty') ?? 0;
|
||||
|
||||
|
||||
$this["order1"] = Romanah\Gokbakja\Models\Order::whereMonth('created_at', 1)->whereYear('created_at', $year)->count() ?? 0;
|
||||
|
|
@ -81,6 +107,20 @@ function onStart(){
|
|||
$this["mechanicRulonProduction12"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 12)->whereYear('date', $year)->sum('produced_weight') ?? 0;
|
||||
|
||||
|
||||
$this["othodMechanicRulonProduction1"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 1)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction2"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 2)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction3"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 3)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction4"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 4)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction5"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 5)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction6"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 6)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction7"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 7)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction8"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 8)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction9"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 9)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction10"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 10)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction11"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 11)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
$this["othodMechanicRulonProduction12"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('date', 12)->whereYear('date', $year)->sum('defective_weight') ?? 0;
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
==
|
||||
|
|
@ -104,7 +144,16 @@ function onStart(){
|
|||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title mb-4">Rulon hasabaty (kg) {{year}} ýyl </h4>
|
||||
|
||||
<div id="line_chart_datalabel4" class="apex-charts" dir="ltr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end card-->
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
|
@ -137,18 +186,6 @@ function onStart(){
|
|||
<!--end card-->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title mb-4">Rulon hasabaty (kg) {{year}} ýyl </h4>
|
||||
|
||||
<div id="line_chart_datalabel4" class="apex-charts" dir="ltr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end card-->
|
||||
</div>
|
||||
|
||||
<!-- end col -->
|
||||
</div><!-- end col -->
|
||||
|
||||
|
|
@ -169,7 +206,7 @@ function onStart(){
|
|||
show: !1
|
||||
}
|
||||
},
|
||||
colors: ["#00aba7"],
|
||||
colors: ["#00aba7", "#ff5d5d"],
|
||||
dataLabels: {
|
||||
enabled: !1
|
||||
},
|
||||
|
|
@ -180,6 +217,10 @@ function onStart(){
|
|||
series: [{
|
||||
name: "Rulon Kg ",
|
||||
data: ['{{mechanicRulonProduction1}}', '{{mechanicRulonProduction2}}', '{{mechanicRulonProduction3}}', '{{mechanicRulonProduction4}}', '{{mechanicRulonProduction5}}', '{{mechanicRulonProduction6}}', '{{mechanicRulonProduction7}}', '{{mechanicRulonProduction8}}', '{{mechanicRulonProduction9}}', '{{mechanicRulonProduction10}}', '{{mechanicRulonProduction11}}', '{{mechanicRulonProduction12}}']
|
||||
},
|
||||
{
|
||||
name: "Rulon Othod Kg ",
|
||||
data: ['{{othodMechanicRulonProduction1}}', '{{othodMechanicRulonProduction2}}', '{{othodMechanicRulonProduction3}}', '{{othodMechanicRulonProduction4}}', '{{othodMechanicRulonProduction5}}', '{{othodMechanicRulonProduction6}}', '{{othodMechanicRulonProduction7}}', '{{othodMechanicRulonProduction8}}', '{{othodMechanicRulonProduction9}}', '{{othodMechanicRulonProduction10}}', '{{othodMechanicRulonProduction11}}', '{{othodMechanicRulonProduction12}}']
|
||||
}],
|
||||
title: {
|
||||
text: "Rulon kg Hasabat",
|
||||
|
|
@ -320,7 +361,7 @@ function onStart(){
|
|||
show: !1
|
||||
}
|
||||
},
|
||||
colors: ["#2196f3"],
|
||||
colors: ["#2196f3", "#ff5d5d", "#6d0000"],
|
||||
dataLabels: {
|
||||
enabled: !1
|
||||
},
|
||||
|
|
@ -331,6 +372,14 @@ function onStart(){
|
|||
series: [{
|
||||
name: "Tikilen Halta ",
|
||||
data: ['{{production1}}', '{{production2}}', '{{production3}}', '{{production4}}', '{{production5}}', '{{production6}}', '{{production7}}', '{{production8}}', '{{production9}}', '{{production10}}', '{{production11}}', '{{production12}}']
|
||||
},
|
||||
{
|
||||
name: "Tikilen Halta BRAK ",
|
||||
data: ['{{brakProduction1}}', '{{brakProduction2}}', '{{brakProduction3}}', '{{brakProduction4}}', '{{brakProduction5}}', '{{brakProduction6}}', '{{brakProduction7}}', '{{brakProduction8}}', '{{brakProduction9}}', '{{brakProduction10}}', '{{brakProduction11}}', '{{brakProduction12}}']
|
||||
},
|
||||
{
|
||||
name: "Tikilen Halta SÜRÜLMEDIK ",
|
||||
data: ['{{repairBrakProduction1}}', '{{repairBrakProduction2}}', '{{repairBrakProduction3}}', '{{repairBrakProduction4}}', '{{repairBrakProduction5}}', '{{repairBrakProduction6}}', '{{repairBrakProduction7}}', '{{repairBrakProduction8}}', '{{repairBrakProduction9}}', '{{repairBrakProduction10}}', '{{repairBrakProduction11}}', '{{repairBrakProduction12}}']
|
||||
}],
|
||||
title: {
|
||||
text: "Tikilen Halta Hasabat",
|
||||
|
|
|
|||
Loading…
Reference in New Issue