You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
497 B
PHTML

5 years ago
<?php
if(!function_exists('set_active')){
function set_active($url, $output = 'active'){
if(is_array($url)){
foreach($url as $u){
if(Route::is($u)){
return $output;
}
}
}else{
if(Route::is($url)){
return $output;
}
}
}
}
if (! function_exists('format_idr')) {
function format_idr($val){
return number_format($val , 0, ',', '.');
}
5 years ago
}