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 }}" [production] == timezone('UTC +05:00'); $currentDateFormat = Carbon\Carbon::now()->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 %}
{{productCounts}}
{% for key, record in records %}{{record.id}}
{% endfor %}| № | Senesi | Smen | Ekskruiter | Hemmesi | {% for key, record in records %}{{record.name}} | {% endfor %}Bellik |
|---|---|---|---|---|---|---|
| {{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 %}{{product.amount_percentage|number_format(2)}} % | {% endfor %}{{report.note}} |
| № | Senesi | Smen | Ekskruiter | Hemmesi | {% for key, record in records %}{{record.name}} | {% endfor %}Bellik |