title = "All Productions" url = "/all-productions/:month/:year?" layout = "platform_main" is_hidden = 0 == param("month"); if($this["month"] != "default"){ $this["month"] = $this->param("month"); }else{ $this["month"] = $currentDate->format('m'); } $year = $this->param("year"); $this["productions"] = Romanah\Gokbakja\Models\Production::whereMonth('created_at', $this["month"])->groupBy(DB::raw("DAY(created_at)"))->withCount(['pivot_production'])->get(); if($year){ $this["productions"] = Romanah\Gokbakja\Models\Production::whereMonth('created_at', $this["month"])->whereYear('created_at', $year)->groupBy(DB::raw("DAY(created_at)"))->with(['pivot_production'])->get(); }else{ $this["productions"] = Romanah\Gokbakja\Models\Production::whereMonth('created_at', $currentDate->format('m'))->whereYear('created_at', $currentDate->year)->groupBy(DB::raw("DAY(created_at)"))->with(['pivot_production'])->get(); } } ?> == {% put styles %} {% endput %}

Aýlar Boýunça {{year}}

{% partial 'dataTableJs' %}