| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/app.houseland.info/application/views/admin/estimates/ |
Upload File : |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php if (count($estimates_years) > 1 || isset($currencies)) { ?>
<div class="tw-flex tw-space-x-3 tw-mb-2">
<?php if (isset($currencies)) { ?>
<div class="!tw-w-28 simple-bootstrap-select">
<select class="selectpicker !tw-w-28" data-width="auto" name="total_currency"
onchange="init_estimates_total();">
<?php foreach ($currencies as $currency) {
$selected = '';
if (!$this->input->post('currency')) {
if ($currency['isdefault'] == 1 || isset($_currency) && $_currency == $currency['id']) {
$selected = 'selected';
}
} else {
if ($this->input->post('currency') == $currency['id']) {
$selected = 'selected';
}
} ?>
<option value="<?php echo e($currency['id']); ?>" <?php echo e($selected); ?>
data-subtext="<?php echo e($currency['name']); ?>"><?php echo e($currency['symbol']); ?></option>
<?php
} ?>
</select>
</div>
<?php } ?>
<?php
if (count($estimates_years) > 1) { ?>
<div class="simple-bootstrap-select !tw-max-w-xs">
<select data-none-selected-text="<?php echo date('Y'); ?>" data-width="auto" class="selectpicker tw-w-full"
multiple name="estimates_total_years" onchange="init_estimates_total();">
<?php foreach ($estimates_years as $year) { ?>
<option value="<?php echo e($year['year']); ?>" <?php if ($this->input->post('years') && in_array($year['year'], $this->input->post('years')) || !$this->input->post('years') && date('Y') == $year['year']) {
echo ' selected';
} ?>>
<?php echo e($year['year']); ?>
</option>
<?php } ?>
</select>
</div>
<?php } ?>
</div>
<?php } ?>
<dl class="tw-grid tw-grid-cols-1 md:tw-grid-cols-2 lg:tw-grid-cols-5 tw-gap-3 sm:tw-gap-5 tw-mb-0">
<?php
foreach ($totals as $key => $data) {
$class = estimate_status_color_class($data['status']);
$name = estimate_status_by_id($data['status']); ?>
<div class="tw-border tw-border-solid tw-border-neutral-200 tw-rounded-md tw-bg-white">
<div class="tw-px-4 tw-py-5 sm:tw-px-4 sm:tw-py-2">
<dt class="tw-font-medium text-<?php echo e($class); ?>"><?php echo e($name); ?></dt>
<dd class="tw-mt-1 tw-flex tw-items-baseline tw-justify-between md:tw-block lg:tw-flex">
<div class="tw-flex tw-items-baseline tw-text-base tw-font-semibold tw-text-primary-600">
<?php echo e(app_format_money($data['total'], $data['currency_name'])); ?>
</div>
</dd>
</div>
</div>
<?php
} ?>
</dl>
<script>
$(function() {
init_selectpicker();
});
</script>