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