merge coupon and voucer menu

This commit is contained in:
iBNu Maksum 2025-01-07 16:16:38 +07:00
parent 9aff4dbf26
commit 45e2bb5a96
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 22 additions and 43 deletions

View File

@ -931,14 +931,17 @@
"Cards": "Cards",
"CRM": "CRM",
"Coupons": "Coupons",
"Voucher_Cards": "Voucher Cards",
"Create_Date": "Create Date",
"Search_Coupons": "Search Coupons",
"Add_Coupon": "Add Coupon",
"Value": "Value",
"Max_Usage": "Max Usage",
"Usage_Count": "Usage Count",
"Min_Order": "Min Order",
"Max_Discount": "Max Discount",
"Updated_Date": "Updated Date",
"Action": "Action",
"No_coupons_found_": "No coupons found.",
"Delete_Selected": "Delete Selected",
"Print_Now": "Print Now",
"Vouchers_Per_Page": "Vouchers Per Page",
"Save_as_template": "Save as template",
"Template_Name": "Template Name",
"Voucher_Code": "Voucher Code",
"Voucher_Package": "Voucher Package",
"Counter": "Counter"
"Voucher_Cards": "Voucher Cards",
"Create_Date": "Create Date"
}

View File

@ -1254,7 +1254,7 @@
</ul>
</li>
{$_MENU_AFTER_CUSTOMERS}
<li class="{if $_system_menu eq 'plan'}active{/if} treeview">
<li class="{if $_routes[0] eq 'plan' || $_routes[0] eq 'coupons'}active{/if} treeview">
<a href="#">
<i class="fa fa-ticket"></i> <span>{Lang::T('Services')}</span>
<span class="pull-right-container">
@ -1268,6 +1268,14 @@
<li {if $_routes[1] eq 'refill' }class="active" {/if}><a
href="{$_url}plan/refill">{Lang::T('Refill Customer')}</a></li>
{/if}
{if $_c['disable_voucher'] != 'yes'}
<li {if $_routes[1] eq 'voucher' }class="active" {/if}><a
href="{$_url}plan/voucher">{Lang::T('Vouchers')}</a></li>
{/if}
{if $_c['disable_coupons'] != 'yes'}
<li {if $_routes[0] eq 'coupons' }class="active" {/if}><a
href="{$_url}coupons">{Lang::T('Coupons')}</a></li>
{/if}
<li {if $_routes[1] eq 'recharge' }class="active" {/if}><a
href="{$_url}plan/recharge">{Lang::T('Recharge Customer')}</a></li>
{if $_c['enable_balance'] == 'yes'}
@ -1305,38 +1313,6 @@
</li>
{/if}
{$_MENU_AFTER_PLANS}
<li class="{if $_system_menu eq 'cards'}active{/if} treeview">
<a href="#">
<i class="glyphicon glyphicon-credit-card"></i> <span>{Lang::T('Cards')}</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
{if $_c['disable_voucher'] != 'yes'}
<li {if $_routes[1] eq 'voucher' }class="active" {/if}><a
href="{$_url}plan/voucher">{Lang::T('Vouchers')}</a></li>
{/if}
{$_MENU_CARDS}
</ul>
</li>
{$_MENU_AFTER_CRM}
<li class="{if $_system_menu eq 'crm'}active{/if} treeview">
<a href="#">
<i class="fa fa-users"></i> <span>{Lang::T('CRM')}</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
{if $_c['disable_coupons'] != 'yes'}
<li {if $_routes[0] eq 'coupons' }class="active" {/if}><a
href="{$_url}coupons">{Lang::T('Coupons')}</a></li>
{/if}
{$_MENU_CRM}
</ul>
</li>
{$_MENU_AFTER_CARDS}
<li class="{if $_system_menu eq 'reports'}active{/if} treeview">
{if in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])}
<a href="#">

View File

@ -1,3 +1,3 @@
{
"version": "2024.12.6.1"
"version": "2025.1.7"
}