title = "Production" url = "/production/:excruiter" layout = "platform_main" is_hidden = 0 [builderList] modelClass = "Romanah\Gokbakja\Models\Product" scope = "scopeGetReport" scopeValue = "{{ :scope }}" displayColumn = "id" noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" pageNumber = "{{ :page }}" sortColumn = "order" sortDirection = "asc" [production] == format('Y-m-d'); $this["currentDate"] = $currentDate; $this["currentMonth"] = $currentDate->format('m'); $this["currentYear"] = $currentDate->format('Y'); $excruiter = $this->param("excruiter"); $this["productions"] = Romanah\Gokbakja\Models\Production::where('excruiter_id', $excruiter)->with(['pivot_production', 'excruiter', 'shift'])->orderBy('id', 'DESC')->get(); $this["productCounts"] = Romanah\Gokbakja\Models\Product::where('report', 'simple')->count(); $this["shifts"] = Romanah\Gokbakja\Models\Shift::get(); $this["calcAll"] = Romanah\Gokbakja\Models\Production::sum('time'); } ?> == {% set records = builderList.records %} {% set displayColumn = builderList.displayColumn %} {% set noRecordsMessage = builderList.noRecordsMessage %} {% set detailsPage = builderList.detailsPage %} {% set detailsKeyColumn = builderList.detailsKeyColumn %} {% set detailsUrlParameter = builderList.detailsUrlParameter %} {% put styles %} {% endput %}
{% if crudExtrudor %}
{% for key, record in records %} {% endfor %}
{% endif %}
Yza

{{productCounts}}

{% for key, record in records %}

{{record.id}}

{% endfor %} {% if crudExtrudor %}
{% for key, record in records %} {% endfor %}
Saýla Dowam et
{% endif %} {% partial "production/modal" %} {% for key, report in productions %} {% endfor %}
Senesi Smen Ekskruiter Hemmesi HARYTLAR Bellik Sazlama
{{key + 1}} {{report.date|date('d.m.Y')}} | {{report.time|date('H:i')}} {{report.shift.desc}} {{report.excruiter.name}} {{report.all_amount|number_format}} kg
{% for product in report.pivot_production %}
{% if report.user_id == user.id %} {{product.product_code}}: {% if product.amount_percentage %} {{product.amount_percentage|number_format(2)}} % {% else %} 0 % {% endif %} {% else %} {{product.product_code}}: {{product.amount_percentage|number_format(2)}} % {% endif %}
{% if crudExtrudor %} {% if report.user_id == user.id %} {% endif %} {% endif %} {% endfor %}
{{report.note}} {% if crudExtrudor %} {% if report.user_id == user.id %} POZ {% else %} Size degişli däl {% endif %} {% endif %}
{% partial 'dataTableJs' %} {% put scripts %} {% endput %}