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