title = "Get Mechanic" url = "/get-mechanic/:mechanicId/:month" layout = "platform_main" is_hidden = 0 == timezone('UTC +05:00'); $this["currentYear"] = $currentDate->year; $this["month"] = $this->param("month"); $mechanicId = $this->param("mechanicId"); $month = $this->param("month"); $this["mechanicProductions"] = Romanah\Gokbakja\Models\ProductionMachine::where('mechanic_id', $mechanicId)->whereMonth('created_at', $month)->whereYear('created_at', $this["currentYear"])->with(['bag_type', 'bag_size', 'machine.building', 'employee', 'mechanic'])->get(); $this["month_all_amount"] = Romanah\Gokbakja\Models\ProductionMachine::whereMonth('created_at', $month) ->whereYear('created_at', $this["currentYear"]) ->sum('produced_weight'); } ?> == {% put styles %} {% endput %}

Enjamlar boýunça ({{month}}.{{currentYear}})

Hasabat

{% for key, machine in mechanicProductions %} {% endfor %}
Bina No Enjam No Ölçegi Görnüşi Önen Önüm (kg) Ady Familiýasy Mehanik Bellik
{{key + 1}} {{machine.building_name}} {{machine.machine.name}} {{machine.bag_size.name}} {{machine.bag_type.name}} {{machine.produced_weight|number_format}} kg {{machine.employee_name}} {{machine.mechanic_name}} {{machine.note}}
# JEMI {{month_all_amount|number_format}} kg
Bina No Enjam No Ölçegi Görnüşi Önen Önüm (kg) Ady Familiýasy Mehanik Bellik
{% partial 'dataTableJs' %}