|
|
|
@ -15,7 +15,8 @@ function formatRp($number) |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Overide Laravel Collective link_to_route helper function
|
|
|
|
* Overide Laravel Collective link_to_route helper function. |
|
|
|
* |
|
|
|
* @param string $name Name of route |
|
|
|
* @param string $title Text that displayed on view |
|
|
|
* @param array $parameters URL Parameter |
|
|
|
@ -23,8 +24,10 @@ function formatRp($number) |
|
|
|
*/ |
|
|
|
function html_link_to_route($name, $title = null, $parameters = [], $attributes = []) |
|
|
|
{ |
|
|
|
if (array_key_exists('icon', $attributes)) |
|
|
|
if (array_key_exists('icon', $attributes)) { |
|
|
|
$title = '<i class="fa fa-'.$attributes['icon'].'"></i> '.$title; |
|
|
|
} |
|
|
|
|
|
|
|
return app('html')->decode(link_to_route($name, $title, $parameters, $attributes)); |
|
|
|
|
|
|
|
} |