%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ActiveForm;
/** @var yii\web\View $this */
/** @var backend\models\PcounterUsers $model */
$this->title = "Rekap Pengunjung";
$this->params['breadcrumbs'][] = ['label' => 'Pcounter Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="box box-primary box-solid">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $judul?></h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<?php $form = ActiveForm::begin(); ?>
<div class="form-group">
<label>Pilih tanggal awal - akhir</label>
<input type="text" id="dateselect_filter" name="tgls" class="form-control">
</div>
<div class="form-group">
<?= Html::submitButton('Cari', ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th>Tanggal</th>
<th>Jumlah Pengunjung</th>
</tr>
</thead>
<tbody>
<?php
$total = 0;
foreach ($model as $key) {
echo "<tr>";
echo "<td>".$key['tgl']."</td>";
echo "<td>".$key['jml']."</td>";
echo "</tr>";
$total += $key['jml'];
}
?>
<tr>
<th>TOTAL PENGUNJUNG</th>
<th><?php echo $total;?></th>
</tr>
</tbody>
</table>
</div>
</div>
<?php
$this->registerJS('$("#dateselect_filter").daterangepicker({autoUpdateInput: false, locale : {cancelLabel: "Clear"}});$("#dateselect_filter").on("apply.daterangepicker", function(ev, picker) {$(this).val(picker.startDate.format("DD-MM-YYYY") + " - " + picker.endDate.format("DD-MM-YYYY"));$("#dateselect_filter").trigger("change");});$("#dateselect_filter").on("cancel.daterangepicker", function(ev, picker) {$(this).val("");$("#dateselect_filter").trigger("change");});');
?>