title = "product/stock" url = "/product/stock/:stockId" layout = "platform_main" is_hidden = 0 == param("stockId"); $this["actions"] = Romanah\Gokbakja\Models\Action::select('romanah_gokbakja_action.*') ->where("stock_id", $stockId) ->where("status_accountant", "accept") ->where("status_director", "accept") ->addSelect(DB::raw("SUM(amount) as quantity")) ->groupBy('romanah_gokbakja_action.product_id') ->get(); // dd($this["actions"]); } ?> == {% put styles %} {% endput %}
sklad
| № | Haryt | Hereket | Mukdary (KG) | Sene | Sklad |
|---|---|---|---|---|---|
| {{key + 1}} | {{record.product.name}} | {{record.type}} | {{record.quantity}} kg | {{record.created_at|date('d.m.Y')}} | {{record.stock.name}} |
| № | Haryt | Hereket | Mukdary (KG) | Sene | Sklad |