g_sto/themes/gokbakja/partials/report/row.htm

31 lines
936 B
HTML

[viewBag]
==
<?php
function onStart (){
$no = $this->no;
$year = $this->year;
$this["all_amount_calc"] = Romanah\Gokbakja\Models\ProductionCalculate::whereMonth('date', $no)->whereYear('date', $year)->sum("amount_calc");
}
?>
==
<tr>
<td style="font-weight: bold;width: 5%;">{{no}}</td>
<td><a href="/all-production-month/{{no}}" style="font-weight: bold;color: #0005c5;"> {{title}} </a></td>
<td><a href="/all-production-month/{{no}}" style="font-weight: bold;"> {{all_amount_calc|number_format}} kg</a></td>
<td style="text-align: center;">
<div class="row">
{% for key, record in products %}
<div class="col">
{% partial "report/month-row" product_code=record.code prodId=record.id all_amount=all_amount_calc %}
</div>
{% endfor %}
</div>
</td>
<td style="font-weight: bold;color: #0005c5;">{{hours}}</td>
</tr>