Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<?= $this->extend("layout/main_layout"); ?>
|
|
|
|
|
|
<?= $this->section("content") ?>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<main x-data="monthlyEntry()" @keydown.window.ctrl.s.prevent="saveData()">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<div class="bg-white rounded-xl border border-slate-100 shadow-sm p-6">
|
|
|
|
|
|
<div class="flex items-center justify-between mb-6">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<h1 class="text-2xl font-bold text-slate-800">Monthly Entry</h1>
|
|
|
|
|
|
<p class="text-sm text-slate-500 mt-1">Enter monthly QC results</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex items-center gap-2 text-sm text-slate-500">
|
|
|
|
|
|
<i class="fa-solid fa-clock"></i>
|
|
|
|
|
|
<span>Press Ctrl+S to save</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div x-show="error" x-transition class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg mb-6">
|
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
|
<i class="fa-solid fa-circle-exclamation"></i>
|
|
|
|
|
|
<span x-text="error"></span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<div>
|
|
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Department <span class="text-red-500">*</span></label>
|
|
|
|
|
|
<select x-model="dept" @change="loadControls()" :class="errors.dept ? 'border-red-300 bg-red-50' : ''" class="w-full px-4 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500">
|
|
|
|
|
|
<option value="">Select Department</option>
|
|
|
|
|
|
<?php foreach ($depts as $d): ?>
|
|
|
|
|
|
<option value="<?= $d['dept_id'] ?>"><?= $d['name'] ?></option>
|
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<p x-show="errors.dept" x-text="errors.dept" class="text-red-500 text-xs mt-1"></p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Month <span class="text-red-500">*</span></label>
|
|
|
|
|
|
<input type="month" x-model="date" @change="loadControls(); loadMonthData()" :class="errors.date ? 'border-red-300 bg-red-50' : ''" class="w-full px-4 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<p x-show="errors.date" x-text="errors.date" class="text-red-500 text-xs mt-1"></p>
|
|
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<div class="md:col-span-2">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Control <span class="text-red-500">*</span></label>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<select x-model="control" @change="loadTests(); loadMonthData()" :class="errors.control ? 'border-red-300 bg-red-50' : ''" class="w-full px-4 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<option value="">Select Control</option>
|
|
|
|
|
|
<template x-for="c in controls" :key="c.control_id">
|
|
|
|
|
|
<option :value="c.control_id" x-text="c.name + ' (' + (c.lot || 'N/A') + ')'"></option>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<p x-show="errors.control" x-text="errors.control" class="text-red-500 text-xs mt-1"></p>
|
|
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div x-show="control && tests.length > 0" x-transition>
|
|
|
|
|
|
<div class="mb-4">
|
|
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-2">Select Tests <span class="text-red-500">*</span></label>
|
|
|
|
|
|
<div class="flex flex-wrap gap-2">
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
<template x-for="t in tests" :key="t.test_ref_id">
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<label class="inline-flex items-center px-3 py-1.5 rounded-lg border cursor-pointer transition-all"
|
|
|
|
|
|
:class="selectedTests.includes(t.test_ref_id) ? 'bg-blue-50 border-blue-500 text-blue-700' : 'bg-slate-50 border-slate-200 hover:border-slate-300'">
|
|
|
|
|
|
<input type="checkbox" :value="t.test_ref_id" x-model="selectedTests" @change="loadMonthData()" class="hidden">
|
|
|
|
|
|
<span class="text-sm font-medium" x-text="t.test_name"></span>
|
|
|
|
|
|
</label>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</template>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
</div>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<div x-show="control && selectedTests.length > 0" x-transition>
|
|
|
|
|
|
<div class="flex items-center justify-between mb-4">
|
|
|
|
|
|
<h3 class="text-lg font-semibold text-slate-800">
|
|
|
|
|
|
<span x-text="monthName"></span> <span x-text="year"></span>
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<div class="flex items-center gap-4 text-sm">
|
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
|
<span class="w-4 h-4 rounded bg-slate-100 border border-slate-200"></span>
|
|
|
|
|
|
<span class="text-slate-600">Weekday</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
|
<span class="w-4 h-4 rounded bg-red-50 border border-red-200"></span>
|
|
|
|
|
|
<span class="text-slate-600">Weekend</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<template x-if="loading">
|
|
|
|
|
|
<div class="flex items-center justify-center py-12">
|
|
|
|
|
|
<i class="fa-solid fa-spinner fa-spin text-blue-500 text-3xl"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<template x-if="!loading">
|
|
|
|
|
|
<div class="border border-slate-200 rounded-xl overflow-hidden">
|
|
|
|
|
|
<div class="overflow-x-auto">
|
|
|
|
|
|
<table class="w-full text-sm">
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr class="bg-slate-50 border-b border-slate-200">
|
|
|
|
|
|
<th class="py-3 px-3 text-left font-semibold text-slate-600 w-32 sticky left-0 bg-slate-50">Test</th>
|
|
|
|
|
|
<template x-for="day in daysInMonth" :key="day">
|
|
|
|
|
|
<th class="py-3 px-2 text-center font-medium text-slate-600 min-w-[60px]"
|
|
|
|
|
|
:class="isWeekend(day) ? 'bg-red-50 text-red-600' : ''">
|
|
|
|
|
|
<span x-text="day"></span>
|
|
|
|
|
|
</th>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<template x-for="testId in selectedTests" :key="testId">
|
|
|
|
|
|
<tr class="border-b border-slate-100 hover:bg-slate-50/50">
|
|
|
|
|
|
<td class="py-2 px-3 font-medium text-slate-700 sticky left-0 bg-white border-r border-slate-100">
|
|
|
|
|
|
<span x-text="getTestName(testId)"></span>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<template x-for="day in daysInMonth" :key="day">
|
2026-01-16 17:22:40 +07:00
|
|
|
|
<td class="py-1 px-1 relative" :class="isWeekend(day) ? 'bg-red-50' : ''">
|
|
|
|
|
|
<div class="flex items-center gap-1">
|
|
|
|
|
|
<input
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
step="0.01"
|
|
|
|
|
|
class="w-full px-2 py-1.5 text-center text-sm bg-white border border-slate-200 rounded focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500"
|
|
|
|
|
|
:placeholder="'-'"
|
|
|
|
|
|
x-model="monthlyData[testId + '_' + day]"
|
|
|
|
|
|
@change="markDirty(testId, day)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="p-1 text-slate-400 hover:text-blue-600 hover:bg-blue-50 rounded transition-colors"
|
|
|
|
|
|
:title="monthlyData[testId + '_' + day + '_comment'] || 'Add comment'"
|
|
|
|
|
|
@click.stop="toggleComment(testId, day)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<i class="fa-solid fa-comment text-xs" :class="monthlyData[testId + '_' + day + '_comment'] ? 'text-blue-500' : ''"></i>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
x-show="showCommentId === testId + '_' + day"
|
|
|
|
|
|
x-transition
|
|
|
|
|
|
class="absolute z-10 top-full left-0 mt-1 w-48"
|
|
|
|
|
|
@click.outside="showCommentId = null"
|
2026-01-16 17:13:58 +07:00
|
|
|
|
>
|
2026-01-16 17:22:40 +07:00
|
|
|
|
<textarea
|
|
|
|
|
|
class="w-full px-2 py-1.5 text-xs bg-white border border-slate-200 rounded shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 resize-none"
|
|
|
|
|
|
rows="2"
|
|
|
|
|
|
placeholder="Add comment..."
|
|
|
|
|
|
x-model="monthlyData[testId + '_' + day + '_comment']"
|
|
|
|
|
|
@keydown.enter.prevent
|
|
|
|
|
|
></textarea>
|
|
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
</td>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mt-6">
|
|
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
2026-01-16 16:51:34 +07:00
|
|
|
|
<div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Monthly Comment</label>
|
|
|
|
|
|
<textarea x-model="comment" rows="2" class="w-full px-4 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500" placeholder="Optional monthly comment"></textarea>
|
|
|
|
|
|
</div>
|
2026-01-16 17:18:10 +07:00
|
|
|
|
<div class="flex items-end gap-3">
|
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Operation Mode</label>
|
|
|
|
|
|
<select x-model="operation" class="w-full px-4 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500">
|
|
|
|
|
|
<option value="replace">Replace All</option>
|
|
|
|
|
|
<option value="add">Add Only (Skip Existing)</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<button @click="saveData()" data-save-btn :disabled="loading || selectedTests.length === 0" class="btn btn-primary flex-shrink-0">
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<template x-if="!loading">
|
|
|
|
|
|
<span class="flex items-center justify-center">
|
|
|
|
|
|
<i class="fa-solid fa-check mr-2"></i>
|
|
|
|
|
|
Save All Data
|
|
|
|
|
|
</span>
|
2026-01-16 16:51:34 +07:00
|
|
|
|
</template>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
<template x-if="loading">
|
|
|
|
|
|
<span class="flex items-center justify-center">
|
|
|
|
|
|
<i class="fa-solid fa-spinner fa-spin mr-2"></i>
|
|
|
|
|
|
Saving...
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</button>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
</div>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-16 17:13:58 +07:00
|
|
|
|
|
|
|
|
|
|
<div x-show="control && (!selectedTests || selectedTests.length === 0)" x-transition class="text-center py-12 text-slate-500">
|
|
|
|
|
|
<i class="fa-solid fa-clipboard-list text-4xl mb-3 text-slate-300"></i>
|
|
|
|
|
|
<p>Select one or more tests above to view and enter monthly data</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div x-show="!control" x-transition class="text-center py-12 text-slate-500">
|
|
|
|
|
|
<i class="fa-solid fa-list-check text-4xl mb-3 text-slate-300"></i>
|
|
|
|
|
|
<p>Select a control to view available tests</p>
|
|
|
|
|
|
</div>
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
<?= $this->endSection(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section("script") ?>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
document.addEventListener('alpine:init', () => {
|
|
|
|
|
|
Alpine.data("monthlyEntry", () => ({
|
|
|
|
|
|
dept: '',
|
|
|
|
|
|
date: new Date().toISOString().slice(0, 7),
|
|
|
|
|
|
control: '',
|
|
|
|
|
|
tests: [],
|
2026-01-16 17:13:58 +07:00
|
|
|
|
selectedTests: [],
|
|
|
|
|
|
controls: [],
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
loading: false,
|
|
|
|
|
|
errors: {},
|
|
|
|
|
|
error: '',
|
2026-01-16 17:13:58 +07:00
|
|
|
|
monthlyData: {},
|
2026-01-16 16:51:34 +07:00
|
|
|
|
comment: '',
|
2026-01-16 17:13:58 +07:00
|
|
|
|
dirtyCells: new Set(),
|
2026-01-16 17:18:10 +07:00
|
|
|
|
operation: 'replace',
|
|
|
|
|
|
saveResult: null,
|
2026-01-16 17:22:40 +07:00
|
|
|
|
showCommentId: null,
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
|
this.loadDraft();
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
get year() {
|
|
|
|
|
|
return this.date ? this.date.split('-')[0] : '';
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
get monthName() {
|
|
|
|
|
|
if (!this.date) return '';
|
|
|
|
|
|
const month = parseInt(this.date.split('-')[1]);
|
|
|
|
|
|
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
|
|
|
|
return months[month - 1] || '';
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
get daysInMonth() {
|
|
|
|
|
|
if (!this.date) return 31;
|
|
|
|
|
|
const [year, month] = this.date.split('-').map(Number);
|
|
|
|
|
|
return new Date(year, month, 0).getDate();
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
isWeekend(day) {
|
|
|
|
|
|
if (!this.date) return false;
|
|
|
|
|
|
const [year, month] = this.date.split('-').map(Number);
|
|
|
|
|
|
const date = new Date(year, month - 1, day);
|
|
|
|
|
|
const dayOfWeek = date.getDay();
|
|
|
|
|
|
return dayOfWeek === 0 || dayOfWeek === 6;
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getTestName(testId) {
|
|
|
|
|
|
const test = this.tests.find(t => t.test_ref_id === testId);
|
|
|
|
|
|
return test ? test.test_name : '';
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
markDirty(testId, day) {
|
|
|
|
|
|
this.dirtyCells.add(testId + '_' + day);
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2026-01-16 17:22:40 +07:00
|
|
|
|
toggleComment(testId, day) {
|
|
|
|
|
|
const id = testId + '_' + day;
|
|
|
|
|
|
if (this.showCommentId === id) {
|
|
|
|
|
|
this.showCommentId = null;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.showCommentId = id;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
async loadControls() {
|
|
|
|
|
|
this.errors = {};
|
|
|
|
|
|
this.controls = [];
|
|
|
|
|
|
this.control = '';
|
|
|
|
|
|
this.tests = [];
|
2026-01-16 17:13:58 +07:00
|
|
|
|
this.selectedTests = [];
|
|
|
|
|
|
this.monthlyData = {};
|
|
|
|
|
|
this.comment = '';
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
|
|
|
|
|
if (!this.dept || !this.date) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const response = await fetch(`${window.BASEURL}/api/entry/controls?date=${this.date}&deptid=${this.dept}`);
|
|
|
|
|
|
const data = await response.json();
|
|
|
|
|
|
if (data.status === 'success') {
|
|
|
|
|
|
this.controls = data.data || [];
|
|
|
|
|
|
if (this.controls.length === 0) {
|
|
|
|
|
|
App.showToast('No controls found for selected criteria', 'info');
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.error = data.message || 'Failed to load controls';
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.error(error);
|
|
|
|
|
|
this.error = 'Failed to load controls';
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
async loadTests() {
|
|
|
|
|
|
this.errors = {};
|
|
|
|
|
|
this.tests = [];
|
2026-01-16 17:13:58 +07:00
|
|
|
|
this.selectedTests = [];
|
|
|
|
|
|
this.monthlyData = {};
|
|
|
|
|
|
this.comment = '';
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
|
|
|
|
|
if (!this.control) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const response = await fetch(`${window.BASEURL}/api/entry/tests?controlid=${this.control}`);
|
|
|
|
|
|
const data = await response.json();
|
|
|
|
|
|
if (data.status === 'success') {
|
|
|
|
|
|
this.tests = data.data || [];
|
|
|
|
|
|
if (this.tests.length === 0) {
|
|
|
|
|
|
App.showToast('No tests found for this control', 'info');
|
2026-01-16 17:13:58 +07:00
|
|
|
|
} else {
|
|
|
|
|
|
this.selectedTests = this.tests.map(t => t.test_ref_id);
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.error = data.message || 'Failed to load tests';
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.error(error);
|
|
|
|
|
|
this.error = 'Failed to load tests';
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
async loadMonthData() {
|
|
|
|
|
|
if (!this.control || this.selectedTests.length === 0 || !this.date) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
2026-01-16 16:51:34 +07:00
|
|
|
|
this.loading = true;
|
2026-01-16 17:13:58 +07:00
|
|
|
|
this.monthlyData = {};
|
|
|
|
|
|
this.comment = '';
|
2026-01-16 16:51:34 +07:00
|
|
|
|
|
|
|
|
|
|
try {
|
2026-01-16 17:13:58 +07:00
|
|
|
|
for (const testId of this.selectedTests) {
|
|
|
|
|
|
const response = await fetch(`${window.BASEURL}/api/entry/monthly?controlid=${this.control}&testid=${testId}&yearmonth=${this.date}`);
|
|
|
|
|
|
const data = await response.json();
|
|
|
|
|
|
if (data.status === 'success') {
|
|
|
|
|
|
const formValues = data.data.formValues || {};
|
2026-01-16 17:22:40 +07:00
|
|
|
|
const comments = data.data.comments || {};
|
2026-01-16 17:13:58 +07:00
|
|
|
|
for (const [day, value] of Object.entries(formValues)) {
|
|
|
|
|
|
this.monthlyData[testId + '_' + day] = value;
|
|
|
|
|
|
}
|
2026-01-16 17:22:40 +07:00
|
|
|
|
for (const [day, comment] of Object.entries(comments)) {
|
|
|
|
|
|
this.monthlyData[testId + '_' + day + '_comment'] = comment;
|
|
|
|
|
|
}
|
2026-01-16 17:13:58 +07:00
|
|
|
|
if (!this.comment && data.data.comment) {
|
|
|
|
|
|
this.comment = data.data.comment;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-01-16 16:51:34 +07:00
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.error(error);
|
2026-01-16 17:13:58 +07:00
|
|
|
|
this.error = 'Failed to load monthly data';
|
2026-01-16 16:51:34 +07:00
|
|
|
|
} finally {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
validate() {
|
|
|
|
|
|
this.errors = {};
|
|
|
|
|
|
if (!this.dept) this.errors.dept = 'Department is required';
|
|
|
|
|
|
if (!this.date) this.errors.date = 'Date is required';
|
|
|
|
|
|
if (!this.control) this.errors.control = 'Control is required';
|
|
|
|
|
|
if (this.selectedTests.length === 0) {
|
|
|
|
|
|
App.showToast('Please select at least one test', 'error');
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
|
|
|
},
|
|
|
|
|
|
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
async saveData() {
|
|
|
|
|
|
if (!this.validate()) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!App.confirmSave('Save monthly entry data?')) return;
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
this.error = '';
|
2026-01-16 17:18:10 +07:00
|
|
|
|
this.saveResult = null;
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
|
2026-01-16 17:13:58 +07:00
|
|
|
|
try {
|
2026-01-16 17:18:10 +07:00
|
|
|
|
const tests = [];
|
2026-01-16 17:13:58 +07:00
|
|
|
|
for (const testId of this.selectedTests) {
|
2026-01-16 17:18:10 +07:00
|
|
|
|
const resvalue = {};
|
2026-01-16 17:22:40 +07:00
|
|
|
|
const rescomment = {};
|
2026-01-16 17:13:58 +07:00
|
|
|
|
let hasData = false;
|
|
|
|
|
|
for (let day = 1; day <= this.daysInMonth; day++) {
|
|
|
|
|
|
const key = testId + '_' + day;
|
|
|
|
|
|
const value = this.monthlyData[key];
|
2026-01-16 17:22:40 +07:00
|
|
|
|
const commentKey = testId + '_' + day + '_comment';
|
|
|
|
|
|
const comment = this.monthlyData[commentKey];
|
2026-01-16 17:13:58 +07:00
|
|
|
|
if (value !== undefined && value !== null && value !== '') {
|
2026-01-16 17:18:10 +07:00
|
|
|
|
resvalue[day] = value;
|
2026-01-16 17:13:58 +07:00
|
|
|
|
hasData = true;
|
|
|
|
|
|
}
|
2026-01-16 17:22:40 +07:00
|
|
|
|
if (comment !== undefined && comment !== null && comment !== '') {
|
|
|
|
|
|
rescomment[day] = comment;
|
|
|
|
|
|
}
|
2026-01-16 17:13:58 +07:00
|
|
|
|
}
|
|
|
|
|
|
if (hasData) {
|
2026-01-16 17:22:40 +07:00
|
|
|
|
tests.push({ testId, resvalue, rescomment });
|
2026-01-16 16:51:34 +07:00
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
}
|
2026-01-16 17:13:58 +07:00
|
|
|
|
|
2026-01-16 17:18:10 +07:00
|
|
|
|
const response = await fetch(`${window.BASEURL}/api/entry/monthly`, {
|
|
|
|
|
|
method: 'POST',
|
|
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
|
|
body: JSON.stringify({
|
|
|
|
|
|
controlId: this.control,
|
|
|
|
|
|
yearMonth: this.date,
|
|
|
|
|
|
operation: this.operation,
|
|
|
|
|
|
tests: tests
|
|
|
|
|
|
})
|
|
|
|
|
|
});
|
2026-01-16 17:13:58 +07:00
|
|
|
|
|
2026-01-16 17:18:10 +07:00
|
|
|
|
const data = await response.json();
|
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 'success') {
|
|
|
|
|
|
this.saveResult = data.data;
|
|
|
|
|
|
|
|
|
|
|
|
let message = 'Data saved successfully!';
|
|
|
|
|
|
if (data.data.statistics && data.data.statistics.length > 0) {
|
|
|
|
|
|
message += `\n\nStatistics:\n`;
|
|
|
|
|
|
for (const stat of data.data.statistics) {
|
|
|
|
|
|
const testName = this.getTestName(stat.testId);
|
|
|
|
|
|
message += `${testName}: n=${stat.n}, Mean=${stat.mean}, SD=${stat.sd}, CV=${stat.cv}%\n`;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.data.validations && data.data.validations.length > 0) {
|
|
|
|
|
|
message += `\n⚠️ ${data.data.validations.length} value(s) out of control limits!`;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
App.showToast(message, 'success');
|
|
|
|
|
|
this.dirtyCells.clear();
|
|
|
|
|
|
this.saveDraft();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
throw new Error(data.message || 'Failed to save data');
|
|
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.error(error);
|
2026-01-16 17:13:58 +07:00
|
|
|
|
this.error = error.message || 'Network error. Please try again.';
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
} finally {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2026-01-16 16:51:34 +07:00
|
|
|
|
async saveComment() {
|
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
|
formData.append('controlid', this.control);
|
2026-01-16 17:13:58 +07:00
|
|
|
|
formData.append('testid', this.selectedTests[0]);
|
2026-01-16 16:51:34 +07:00
|
|
|
|
formData.append('commonth', this.date);
|
|
|
|
|
|
formData.append('comtext', this.comment);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
await fetch(`${window.BASEURL}/api/entry/comment`, {
|
|
|
|
|
|
method: 'POST',
|
|
|
|
|
|
body: formData
|
|
|
|
|
|
});
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
console.error('Failed to save comment:', error);
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
saveDraft() {
|
|
|
|
|
|
localStorage.setItem('monthlyEntry', JSON.stringify({
|
|
|
|
|
|
dept: this.dept,
|
|
|
|
|
|
date: this.date,
|
|
|
|
|
|
control: this.control,
|
|
|
|
|
|
test: this.test
|
|
|
|
|
|
}));
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
loadDraft() {
|
|
|
|
|
|
const draft = localStorage.getItem('monthlyEntry');
|
|
|
|
|
|
if (draft) {
|
|
|
|
|
|
const data = JSON.parse(draft);
|
|
|
|
|
|
this.dept = data.dept || '';
|
|
|
|
|
|
this.date = data.date || new Date().toISOString().slice(0, 7);
|
|
|
|
|
|
this.control = data.control || '';
|
|
|
|
|
|
this.test = data.test || '';
|
|
|
|
|
|
if (this.dept && this.date) this.loadControls();
|
|
|
|
|
|
if (this.control) this.loadTests();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}));
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<?= $this->endSection(); ?>
|