title = "Get Production" url = "/get-production/:id" layout = "platform_main" is_hidden = 0 == year; $productionId = $this->param("id"); $this["production"] = Romanah\Gokbakja\Models\Production::where('id', $productionId)->with('pivot_production')->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["productions"] = Romanah\Gokbakja\Models\Production::whereDay('created_at', $productionD)->whereMonth('created_at', $productionM)->whereYear('created_at', $productionY)->with('pivot_production')->get(); } ?> == {% put styles %} {% endput %}
Hasabat
| № | Senesi | Hemmesi | {% for key, record in production.pivot_production %}{{record.product_name}} | {% endfor %}Bellik |
|---|---|---|---|---|
| {{key + 1}} | {{report.created_at|date('d.m.Y | H:i')}} | {{report.all_amount|number_format}} kg | {% for product in report.pivot_production %}{{product.amount_percentage}} % {% if product.amount != 0 %} {{product.amount|number_format}} kg {% endif %} |
{% endfor %}
{{report.note}} |
| № | Senesi | Hemmesi | {% for key, record in production.pivot_production %}{{record.product_name}} | {% endfor %}Bellik |