199 lines
8.6 KiB
HTML
199 lines
8.6 KiB
HTML
title = "journal"
|
|
url = "/journal"
|
|
layout = "platform_main"
|
|
is_hidden = 0
|
|
|
|
[journal]
|
|
==
|
|
<?php
|
|
function onStart() {
|
|
|
|
$this["journals"] = Romanah\Gokbakja\Models\Journal::with('user')->orderBy("id", "DESC")->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" />
|
|
|
|
<link href="{{'assets/libs/select2/css/select2.min.css'|theme}}" rel="stylesheet" type="text/css">
|
|
{% endput %}
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<div class="collapse multi-collapse" id="multiCollapseExample1">
|
|
<form data-request="onCreateSewerProduction" data-request-flash>
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col">
|
|
<label class="form-label">Tikinçi Saýlaň</label>
|
|
<select class="form-control select2" name="employee_id">
|
|
<option value="0">Saýla</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<label class="form-label">Sene</label>
|
|
<div class="input-group" id="datepicker2">
|
|
<input type="text" class="form-control" name="date" placeholder="Sene"
|
|
data-date-format="d.m.yyyy" data-date-container='#datepicker2' data-provide="datepicker"
|
|
data-date-autoclose="true">
|
|
|
|
<span class="input-group-text"><i class="mdi mdi-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="col-3">
|
|
<label class="form-label">Rulon Saýlaň</label>
|
|
<select class="form-control select2" name="machine_production_id">
|
|
<option value="0">Saýla</option>
|
|
|
|
</select>
|
|
</div>
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Halta Ini</label>
|
|
|
|
<input type="number" name="width" step="0.01" class="form-control"
|
|
placeholder="Halta Ini">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Halta Boýy</label>
|
|
|
|
<input type="number" name="height" step="0.01" class="form-control"
|
|
placeholder="Halta Boýy">
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Halta agramy (gr)</label>
|
|
|
|
<input type="number" step="0.01" name="bag_gram" class="form-control"
|
|
placeholder="Halta gramy">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Bellik</label>
|
|
|
|
<input type="text" name="note" class="form-control" placeholder="Bellik">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col">
|
|
<button type="submit" class="btn btn-primary waves-effect waves-light"
|
|
style="margin-top: 30px;width: 100%;">Goş</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<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;">Žurnal</h3>
|
|
<p class="card-title-desc" style="color: #6c6ff5;">Hasabat</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <h1>{{machineProductions}}</h1> -->
|
|
|
|
<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>Üýtgeden Ulanyjy</th>
|
|
<th>Üýtgedilen Sene</th>
|
|
<th>Maglumat Kody</th>
|
|
<th>Bölümi</th>
|
|
<th>Sazlamalar</th>
|
|
<!-- <th>Настройки</th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody id="sewer_datas">
|
|
|
|
{% for key, item in journals %}
|
|
<tr>
|
|
<td style="font-weight: bold;">{{(key+1)}}</td>
|
|
<td><a href="#" style="font-weight: bold;">{{item.user.username}}</a></td>
|
|
<td>{{item.created_at|date('d.m.Y | H:i')}}</td>
|
|
<td>#{{item.content_id}}</td>
|
|
<td>{{item.type}}</td>
|
|
<td>
|
|
{% if item.is_read %}
|
|
<a href="#" data-request="onModalSetIsRead"
|
|
data-request-data="journalId: {{item.id}}"
|
|
data-bs-toggle="modal" data-bs-target=".bs-example-modal-lg" style="color: orange;"> Okaldy </a>
|
|
{% else %}
|
|
|
|
<a href="#" data-request="onModalSetIsRead"
|
|
data-request-data="journalId: {{item.id}}"
|
|
data-bs-toggle="modal" data-bs-target=".bs-example-modal-lg" style="color: orange;"> Oka </a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th style="width: 5%;">№</th>
|
|
<th>Üýtgeden Ulanyjy</th>
|
|
<th>Üýtgedilen Sene</th>
|
|
<th>Maglumat Kody</th>
|
|
<th>Bölümi</th>
|
|
<th>Sazlamalar</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog"
|
|
aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg" style="max-width: 1211px;">
|
|
<div class="modal-content" id="modal-form">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% put scripts %}
|
|
<script src="{{'assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js'|theme}}"></script>
|
|
<script src="{{'assets/libs/select2/js/select2.min.js'|theme}}"></script>
|
|
<script src="{{'assets/js/pages/form-advanced.init.js'|theme}}"></script>
|
|
{% endput %}
|
|
{% partial 'dataTableJs' %}
|