[viewBag] == no; $year = $this->year; $this["all_amount_calc"] = Romanah\Gokbakja\Models\ProductionCalculate::whereMonth('date', $no)->whereYear('date', $year)->sum("amount_calc"); } ?> == {{no}} {{title}} {{all_amount_calc|number_format}} kg {% for key, record in products %} {% partial "report/month-row" prodId=record.id all_amount=all_amount_calc %} {% endfor %} {{hours}}