g_sto/themes/gokbakja/pages/production/report-production.htm

105 lines
4.7 KiB
HTML

title = "Report Production"
url = "/report-production/:year?"
layout = "platform_main"
is_hidden = 0
==
<?php
function onStart(){
$currentDate = Carbon\Carbon::now();
$this["year"] = $this->param("year");
if(!$this["year"]){
$this["year"] = $currentDate->year;
}
$this["reportProducts"] = Romanah\Gokbakja\Models\Product::where("report", "simple")->orderBy('order', 'ASC')->get();
}
?>
==
{% put styles %}
<link href="{{'assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css'|theme}}" rel="stylesheet"
type="text/css" />
<link href="{{'assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css'|theme}}" rel="stylesheet"
type="text/css" />
<link href="{{'assets/libs/datatables.net-select-bs4/css/select.bootstrap4.min.css'|theme}}" rel="stylesheet"
type="text/css" />
{% endput %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-6">
<h3 class="card-title" style="font-size: 22px;color: #1e2038;">Çig Mallar Boýunça Umumy ({{year}} ýyl)</h3>
<p class="card-title-desc" style="color: #6c6ff5;">Hasabat</p>
</div>
<!-- <div class="col-md-6" style="text-align: right;">
<button type="button" class="btn btn-primary waves-effect waves-light"
data-bs-toggle="offcanvas" data-bs-target="#offcanvasBottom"
aria-controls="offcanvasBottom">
<i class="ri-add-line align-middle ms-2" style="font-size: 17px;"></i> Добавить
</button>
</div> -->
</div>
<table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap"
style="border-collapse: collapse; border-spacing: 0; width: 100%;" data-page-length='13'>
<thead>
<tr>
<th style="width: 5%;"></th>
<th>Aýlar</th>
<th>Işlenen çig mal</th>
{% for key, record in reportProducts %}
<th>{{record.code}}</th>
{% endfor %}
<th>Bellik</th>
<!-- <th>Настройки</th> -->
</tr>
</thead>
<tbody>
{% partial 'report/row' year=year products=reportProducts title="Ýanwar" no=1 %}
{% partial 'report/row' year=year products=reportProducts title="Fewral" no=2 %}
{% partial 'report/row' year=year products=reportProducts title="Mart" no=3 %}
{% partial 'report/row' year=year products=reportProducts title="Aprel" no=4 %}
{% partial 'report/row' year=year products=reportProducts title="Maý" no=5 %}
{% partial 'report/row' year=year products=reportProducts title="Iýun" no=6 %}
{% partial 'report/row' year=year products=reportProducts title="Iýul" no=7 %}
{% partial 'report/row' year=year products=reportProducts title="Awgust" no=8 %}
{% partial 'report/row' year=year products=reportProducts title="Sentýabr" no=9 %}
{% partial 'report/row' year=year products=reportProducts title="Oktýabr" no=10 %}
{% partial 'report/row' year=year products=reportProducts title="Noýabr" no=11 %}
{% partial 'report/row' year=year products=reportProducts title="Dekabr" no=12 %}
</tbody>
<tfoot>
<tr>
<th style="width: 5%;"></th>
<th>Aýlar</th>
<th>Işlenen çig mal</th>
{% for key, record in reportProducts %}
<th>{{record.code}}</th>
{% endfor %}
<th>Bellik</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
{% partial 'dataTableJs' %}