whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
app
/
Helpers
/
Upload File:
files >> //home/qbizpnmr/arif.umairtax.com/app/Helpers/ClientPortal.php
<?php /** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2025. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */ use Illuminate\Contracts\View\Factory; use Illuminate\Support\Facades\Route; use Illuminate\View\View; /** * Check if passed page is currently active. * * @param $page * @param bool $boolean * @return bool | string */ function isActive($page, bool $boolean = false) { $current_page = Route::currentRouteName(); $action = Route::currentRouteAction(); // string $show = str_replace(['.show','payment_methodss','documentss','subscriptionss','paymentss'], ['s.index','payment_methods','documents','subscriptions','payments'], $current_page); if ($page == $current_page && $boolean) { return true; } if ($page == $current_page) { return 'bg-gray-200'; } if (($page == $show) && $boolean) { return true; } return false; } /** * New render method that works with themes. * * @param string $path * @param array $options * @return Factory|View */ function render(string $path, array $options = []) { $theme = array_key_exists('theme', $options) ? $options['theme'] : 'ninja2020'; if (array_key_exists('root', $options)) { return view( sprintf('%s.%s.%s', $options['root'], $theme, $path), $options ); } return view("portal.$theme.$path", $options); }
Copyright ©2021 || Defacer Indonesia