2023-09-23 20:10:26 +00:00
|
|
|
[viewBag]
|
|
|
|
|
==
|
|
|
|
|
<?php
|
|
|
|
|
function onStart (){
|
|
|
|
|
$no = $this->no;
|
|
|
|
|
$year = $this->year;
|
|
|
|
|
|
|
|
|
|
$this["all_amount"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('created_at', $no)
|
|
|
|
|
->whereYear('created_at', $year)
|
|
|
|
|
->sum('produced_weight');
|
|
|
|
|
|
2023-11-28 17:39:36 +00:00
|
|
|
|
|
|
|
|
$this["all_amount_brutto"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('created_at', $no)
|
|
|
|
|
->whereYear('created_at', $year)
|
|
|
|
|
->sum('brutto_kg');
|
|
|
|
|
|
2023-11-21 19:52:16 +00:00
|
|
|
$this["all_amount_length"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('created_at', $no)
|
|
|
|
|
->whereYear('created_at', $year)
|
|
|
|
|
->sum('produced_length');
|
|
|
|
|
|
|
|
|
|
$this["all_amount_defective"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('created_at', $no)
|
|
|
|
|
->whereYear('created_at', $year)
|
|
|
|
|
->sum('defective_weight');
|
|
|
|
|
|
2023-09-23 20:10:26 +00:00
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
==
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="font-weight: bold;width: 5%;">{{no}}</td>
|
|
|
|
|
<td><a href="/get-all-machine-production-month/{{no}}" style="font-weight: bold;color: #0005c5;"> {{title}} </a></td>
|
|
|
|
|
<td><a href="/get-all-machine-production-month/{{no}}" style="font-weight: bold;"> {{all_amount|number_format}} kg</a></td>
|
2023-11-28 17:39:36 +00:00
|
|
|
<td><a href="/get-all-machine-production-month/{{no}}" style="font-weight: bold;"> {{all_amount_brutto|number_format}} kg</a></td>
|
2023-11-21 19:52:16 +00:00
|
|
|
<td><a href="/get-all-machine-production-month/{{no}}" style="font-weight: bold;"> {{all_amount_length|number_format}} metr</a></td>
|
|
|
|
|
<td><a href="/get-all-machine-production-month/{{no}}" style="font-weight: bold;"> {{all_amount_defective|number_format}} kg</a></td>
|
2023-09-23 20:10:26 +00:00
|
|
|
|
|
|
|
|
</tr>
|