show customer is online or not and Rearange Customer View
This commit is contained in:
parent
e70a6c4dae
commit
5adb09efcf
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2024.10.7
|
||||||
|
|
||||||
|
- Show Customer is Online or not
|
||||||
|
- Change Invoice Theme for printing
|
||||||
|
- Rearange Customer View
|
||||||
|
|
||||||
## 2024.9.23
|
## 2024.9.23
|
||||||
|
|
||||||
- Discount Price
|
- Discount Price
|
||||||
|
@ -100,7 +100,8 @@
|
|||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Coordinates')}</b> <span class="pull-right">
|
<b>{Lang::T('Coordinates')}</b> <span class="pull-right">
|
||||||
<i class="glyphicon glyphicon-road"></i> <a style="color: black;"
|
<i class="glyphicon glyphicon-road"></i> <a style="color: black;"
|
||||||
href="https://www.google.com/maps/dir//{$d['coordinates']}/" target="_blank">{Lang::T('Get Directions')}</a>
|
href="https://www.google.com/maps/dir//{$d['coordinates']}/"
|
||||||
|
target="_blank">{Lang::T('Get Directions')}</a>
|
||||||
</span>
|
</span>
|
||||||
<div id="map" style="width: '100%'; height: 100px;"></div>
|
<div id="map" style="width: '100%'; height: 100px;"></div>
|
||||||
</li>
|
</li>
|
||||||
@ -119,10 +120,95 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-8 col-md-8">
|
||||||
|
<div class="box box-info">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li role="presentation" {if $v=='order' }class="active" {/if}><a
|
||||||
|
href="{$_url}customers/view/{$d['id']}/order">30 {Lang::T('Order History')}</a></li>
|
||||||
|
<li role="presentation" {if $v=='activation' }class="active" {/if}><a
|
||||||
|
href="{$_url}customers/view/{$d['id']}/activation">30 {Lang::T('Activation History')}</a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="table-responsive" style="background-color: white;">
|
||||||
|
<table id="datatable" class="table table-bordered table-striped">
|
||||||
|
{if Lang::arrayCount($activation)}
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{Lang::T('Invoice')}</th>
|
||||||
|
<th>{Lang::T('Username')}</th>
|
||||||
|
<th>{Lang::T('Plan Name')}</th>
|
||||||
|
<th>{Lang::T('Plan Price')}</th>
|
||||||
|
<th>{Lang::T('Type')}</th>
|
||||||
|
<th>{Lang::T('Created On')}</th>
|
||||||
|
<th>{Lang::T('Expires On')}</th>
|
||||||
|
<th>{Lang::T('Method')}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach $activation as $ds}
|
||||||
|
<tr onclick="window.location.href = '{$_url}plan/view/{$ds['id']}'" style="cursor:pointer;">
|
||||||
|
<td>{$ds['invoice']}</td>
|
||||||
|
<td>{$ds['username']}</td>
|
||||||
|
<td>{$ds['plan_name']}</td>
|
||||||
|
<td>{Lang::moneyFormat($ds['price'])}</td>
|
||||||
|
<td>{$ds['type']}</td>
|
||||||
|
<td class="text-success">
|
||||||
|
{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])}
|
||||||
|
</td>
|
||||||
|
<td class="text-danger">{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}</td>
|
||||||
|
<td>{$ds['method']}</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
{/if}
|
||||||
|
{if Lang::arrayCount($order)}
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{Lang::T('Plan Name')}</th>
|
||||||
|
<th>{Lang::T('Gateway')}</th>
|
||||||
|
<th>{Lang::T('Routers')}</th>
|
||||||
|
<th>{Lang::T('Type')}</th>
|
||||||
|
<th>{Lang::T('Plan Price')}</th>
|
||||||
|
<th>{Lang::T('Created On')}</th>
|
||||||
|
<th>{Lang::T('Expires On')}</th>
|
||||||
|
<th>{Lang::T('Date Done')}</th>
|
||||||
|
<th>{Lang::T('Method')}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach $order as $ds}
|
||||||
|
<tr>
|
||||||
|
<td>{$ds['plan_name']}</td>
|
||||||
|
<td>{$ds['gateway']}</td>
|
||||||
|
<td>{$ds['routers']}</td>
|
||||||
|
<td>{$ds['payment_channel']}</td>
|
||||||
|
<td>{Lang::moneyFormat($ds['price'])}</td>
|
||||||
|
<td class="text-primary">{Lang::dateTimeFormat($ds['created_date'])}</td>
|
||||||
|
<td class="text-danger">{Lang::dateTimeFormat($ds['expired_date'])}</td>
|
||||||
|
<td class="text-success">{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if}
|
||||||
|
</td>
|
||||||
|
<td>{if $ds['status']==1}{Lang::T('UNPAID')}
|
||||||
|
{elseif $ds['status']==2}{Lang::T('PAID')}
|
||||||
|
{elseif $ds['status']==3}{$_L['FAILED']}
|
||||||
|
{elseif $ds['status']==4}{Lang::T('CANCELED')}
|
||||||
|
{elseif $ds['status']==5}{Lang::T('UNKNOWN')}
|
||||||
|
{/if}</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
{/if}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{include file="pagination.tpl"}
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
{foreach $packages as $package}
|
{foreach $packages as $package}
|
||||||
|
<div class="col-md-6">
|
||||||
<div class="box box-{if $package['status']=='on'}success{else}danger{/if}">
|
<div class="box box-{if $package['status']=='on'}success{else}danger{/if}">
|
||||||
<div class="box-body box-profile">
|
<div class="box-body box-profile">
|
||||||
<h4 class="text-center">{$package['type']} - {$package['namebp']}</h4>
|
<h4 class="text-center">{$package['type']} - {$package['namebp']} <span
|
||||||
|
api-get-text="{$_url}autoload/customer_is_active/{$package['username']}/{$package['plan_id']}"></span>
|
||||||
|
</h4>
|
||||||
<ul class="list-group list-group-unbordered">
|
<ul class="list-group list-group-unbordered">
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
{Lang::T('Active')} <span class="pull-right">{if
|
{Lang::T('Active')} <span class="pull-right">{if
|
||||||
@ -162,99 +248,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<div class="row">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
<a href="{$_url}customers/list" class="btn btn-primary btn-sm btn-block">{Lang::T('Back')}</a>
|
<a href="{$_url}customers/list" class="btn btn-primary btn-sm btn-block">{Lang::T('Back')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
<a href="{$_url}customers/sync/{$d['id']}"
|
<a href="{$_url}customers/sync/{$d['id']}" onclick="return confirm('This will sync Customer to Mikrotik?')"
|
||||||
onclick="return confirm('This will sync Customer to Mikrotik?')"
|
|
||||||
class="btn btn-info btn-sm btn-block">{Lang::T('Sync')}</a>
|
class="btn btn-info btn-sm btn-block">{Lang::T('Sync')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
<a href="{$_url}message/send/{$d['id']}" class="btn btn-success btn-sm btn-block">{Lang::T('Send
|
<a href="{$_url}message/send/{$d['id']}" class="btn btn-success btn-sm btn-block">{Lang::T('Send
|
||||||
Message')}</a>
|
Message')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-8 col-md-8">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li role="presentation" {if $v=='order' }class="active" {/if}><a
|
|
||||||
href="{$_url}customers/view/{$d['id']}/order">30 {Lang::T('Order History')}</a></li>
|
|
||||||
<li role="presentation" {if $v=='activation' }class="active" {/if}><a
|
|
||||||
href="{$_url}customers/view/{$d['id']}/activation">30 {Lang::T('Activation History')}</a></li>
|
|
||||||
</ul>
|
|
||||||
<div class="table-responsive" style="background-color: white;">
|
|
||||||
<table id="datatable" class="table table-bordered table-striped">
|
|
||||||
{if Lang::arrayCount($activation)}
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{Lang::T('Invoice')}</th>
|
|
||||||
<th>{Lang::T('Username')}</th>
|
|
||||||
<th>{Lang::T('Plan Name')}</th>
|
|
||||||
<th>{Lang::T('Plan Price')}</th>
|
|
||||||
<th>{Lang::T('Type')}</th>
|
|
||||||
<th>{Lang::T('Created On')}</th>
|
|
||||||
<th>{Lang::T('Expires On')}</th>
|
|
||||||
<th>{Lang::T('Method')}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{foreach $activation as $ds}
|
|
||||||
<tr onclick="window.location.href = '{$_url}plan/view/{$ds['id']}'" style="cursor:pointer;">
|
|
||||||
<td>{$ds['invoice']}</td>
|
|
||||||
<td>{$ds['username']}</td>
|
|
||||||
<td>{$ds['plan_name']}</td>
|
|
||||||
<td>{Lang::moneyFormat($ds['price'])}</td>
|
|
||||||
<td>{$ds['type']}</td>
|
|
||||||
<td class="text-success">{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])}
|
|
||||||
</td>
|
|
||||||
<td class="text-danger">{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}</td>
|
|
||||||
<td>{$ds['method']}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</tbody>
|
|
||||||
{/if}
|
|
||||||
{if Lang::arrayCount($order)}
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{Lang::T('Plan Name')}</th>
|
|
||||||
<th>{Lang::T('Gateway')}</th>
|
|
||||||
<th>{Lang::T('Routers')}</th>
|
|
||||||
<th>{Lang::T('Type')}</th>
|
|
||||||
<th>{Lang::T('Plan Price')}</th>
|
|
||||||
<th>{Lang::T('Created On')}</th>
|
|
||||||
<th>{Lang::T('Expires On')}</th>
|
|
||||||
<th>{Lang::T('Date Done')}</th>
|
|
||||||
<th>{Lang::T('Method')}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{foreach $order as $ds}
|
|
||||||
<tr>
|
|
||||||
<td>{$ds['plan_name']}</td>
|
|
||||||
<td>{$ds['gateway']}</td>
|
|
||||||
<td>{$ds['routers']}</td>
|
|
||||||
<td>{$ds['payment_channel']}</td>
|
|
||||||
<td>{Lang::moneyFormat($ds['price'])}</td>
|
|
||||||
<td class="text-primary">{Lang::dateTimeFormat($ds['created_date'])}</td>
|
|
||||||
<td class="text-danger">{Lang::dateTimeFormat($ds['expired_date'])}</td>
|
|
||||||
<td class="text-success">{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if}</td>
|
|
||||||
<td>{if $ds['status']==1}{Lang::T('UNPAID')}
|
|
||||||
{elseif $ds['status']==2}{Lang::T('PAID')}
|
|
||||||
{elseif $ds['status']==3}{$_L['FAILED']}
|
|
||||||
{elseif $ds['status']==4}{Lang::T('CANCELED')}
|
|
||||||
{elseif $ds['status']==5}{Lang::T('UNKNOWN')}
|
|
||||||
{/if}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</tbody>
|
|
||||||
{/if}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{include file="pagination.tpl"}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if $d['coordinates']}
|
{if $d['coordinates']}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.9.25"
|
"version": "2024.10.7"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user