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 %}
{{type}}
| № | Haryt | Görnüşi | Mukdary (KG) | Senesi | Sklad | Direktor | Bugalter | Bellik | Sazlamalar |
|---|---|---|---|---|---|---|---|---|---|
| {{key + 1}} | {{record.product.name}} | {% if record.type == 'inbox' %} GIRIŞ {% else %} ÇYKYŞ {% endif %} | {{record.amount|number_format}} kg | {{record.created_at|date('d.m.Y')}} | {{record.stock.name}} | {% if record.status_director == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {% if record.status_accountant == 'accept' %} + {% else %} Tassyklanmadyk {% endif %} | {{record.note}} | |
| № | Haryt | Görnüşi | Mukdary (KG) | Senesi | Sklad | Direktor | Bugalter | Bellik | Sazlamalar |