title = "Get production machine" url = "/get-production-machine/:id" layout = "platform_main" is_hidden = 0 == timezone('UTC +05:00'); $this["currentYear"] = $currentDate->year; $productionId = $this->param("id"); $this["production"] = Romanah\Gokbakja\Models\ProductionMachine::where('id', $productionId)->with(['bag_type', 'bag_size', 'machine.building', 'employee', 'mechanic'])->first(); $productionD = $this["production"]->created_at->format('d'); $productionM = $this["production"]->created_at->format('m'); $productionY = $this["production"]->created_at->format('Y'); $this["productionM"] = $this["production"]->created_at->format('m'); $this["machineProductions"] = Romanah\Gokbakja\Models\ProductionMachine::whereDay('created_at', $productionD)->whereMonth('created_at', $productionM)->whereYear('created_at', $productionY)->with(['bag_type', 'bag_size', 'machine.building', 'employee', 'mechanic'])->get(); $this["month_all_amount"] = Romanah\Gokbakja\Models\ProductionMachine::whereDay('created_at', $productionD) ->whereMonth('created_at', $productionM) ->whereYear('created_at', $productionY) ->sum('produced_weight'); } ?> == {% put styles %} {% endput %}
Hasabat
| № | 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 |