title = "Report Production Machine"
url = "/report-production-machine/: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;
    }


}
?>
==
{% 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;">Enjamlar boýunça ({{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>Öndürlen Önüm</th>
                                <th>Brutto agramy (kg)</th>
                                <th>Öndürlen Önüm metr</th>
                                <th>Othod (kg)</th>

                                <!--  <th>Настройки</th> -->
                            </tr>
                        </thead>
                        <tbody>


                            {% partial 'reportMachine/row-machine' title="Ýanwar" no=1  %}
                            {% partial 'reportMachine/row-machine' title="Fewral" no=2  %}
                            {% partial 'reportMachine/row-machine' title="Mart" no=3  %}
                            {% partial 'reportMachine/row-machine' title="Aprel" no=4  %}
                            {% partial 'reportMachine/row-machine' title="Maý" no=5  %}
                            {% partial 'reportMachine/row-machine' title="Iýun" no=6  %}
                            {% partial 'reportMachine/row-machine' title="Iýul" no=7  %}
                            {% partial 'reportMachine/row-machine' title="Awgust" no=8  %}
                            {% partial 'reportMachine/row-machine' title="Sentýabr" no=9  %}
                            {% partial 'reportMachine/row-machine' title="Oktýabr" no=10  %}
                            {% partial 'reportMachine/row-machine' title="Noýabr" no=11  %}
                            {% partial 'reportMachine/row-machine' title="Dekabr" no=12  %}


                        </tbody>
                        <tfoot>
                            <tr>
                                <th style="width: 5%;">№</th>
                                <th>Aýlar</th>
                                <th>Öndürlen Önüm</th>
                                <th>Brutto agramy (kg)</th>
                                <th>Öndürlen Önüm metr</th>
                                <th>Othod (kg)</th>

                            </tr>
                        </tfoot>
                    </table>
                </div>



            </div>
        </div>
    </div>
</div>


{% partial 'dataTableJs' %}
