title = "product/actions" url = "/product/actions/:type?" layout = "platform_main" is_hidden = 0 [builderList] modelClass = "Romanah\Gokbakja\Models\Product" scope = "-" scopeValue = "{{ :scope }}" displayColumn = "id" noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" pageNumber = "{{ :page }}" sortColumn = "id" sortDirection = "desc" [builderList builderList2] modelClass = "Romanah\Gokbakja\Models\Stock" scope = "-" scopeValue = "{{ :scope }}" displayColumn = "id" noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" pageNumber = "{{ :page }}" sortColumn = "id" sortDirection = "desc" [action] == param("type"); $this["type"] = $this->param("type"); //$this["products"] = ''; //dump($catId); if($type){ $this["actions"] = Romanah\Gokbakja\Models\Action::orderBy("id", "desc") ->with(['stock']) ->where("type", $type) ->get(); }else{ $this["actions"] = Romanah\Gokbakja\Models\Action::orderBy("id", "desc") ->with(['stock']) ->get(); } } ?> == {% put styles %} {% endput %} {% set products = builderList.records %} {% set stocks = builderList2.records %}

Harytlar

{{type}}

{% if type == 'inbox' %} {% endif %}
{% for key, record in actions %} {% endfor %}
Haryt Görnüşi Mukdary (KG) Senesi Sklad Bellik Sazlamalar
{{key + 1}} {{record.product.name}} {{record.type}} {{record.amount|number_format}} kg {{record.created_at|date('d.m.Y')}} {{record.stock.name}} {{record.note}}
Haryt Görnüşi Mukdary (KG) Senesi Sklad Bellik Sazlamalar
Täze Hereket
dogry
{% put scripts %} {% endput %} {% partial 'dataTableJs' %}