title = "sewer/new" url = "/sewer/new" layout = "platform_main" is_hidden = 0 [sewer] == where("is_sewer", 1)->get(); $pivotSewersWorking = Romanah\Gokbakja\Models\PivotSewer::select('id', 'status', 'machine_production_id') ->where('status', 'working') ->get() ->pluck('machine_production_id') ->toArray(); //dd($pivotSewersWorking); $this["machineProductions"] = Romanah\Gokbakja\Models\ProductionMachine::with(['bag_type', 'bag_size', 'machine.building', 'employee', 'mechanic', 'color']) ->whereNotIn('id', $pivotSewersWorking) ->where('is_finished', '!=', 1) ->withCount([ 'pivot_sewer AS leftSum' => function ($query) { $query->select(DB::raw("(amount - SUM(spent_amount)) as leftSum"))->where('status', 'complated'); } ]) ->orderBy('id', 'DESC') ->get(); } ?> == {% put styles %} {% endput %}
Hasabat
| № | Önümçilik No | Halta Görnüş | Rulon Görnüş | Tikinçi | Senesi | Çig mal mukdary | Tikilen Halta | Ulanylan | Galyndy | Status | Bellik | Sazlamalar |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| № | Önümçilik No | Halta Görnüş | Rulon Görnüş | Tikinçi | Senesi | Çig mal mukdary | Tikilen Halta | Ulanylan | Galyndy | Status | Bellik | Sazlamalar |