[viewBag]
==
<?php
function onStart (){
    $no = $this->no;
    $year = $this->year;

    $this["all_amount"] = Romanah\Gokbakja\Models\Production::whereMonth('created_at', $no)
                                                                ->whereYear('created_at', $year)
                                                                ->avg('all_amount');

}
?>
==

<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|number_format}} kg</a></td>
    {% for key, record in products %}
        {% partial "report/month-row" prodId=record.id %}
    {% endfor %}
    <td style="font-weight: bold;color: #0005c5;">{{hours}}</td>
</tr>
