@if (global_setting()->system_update == 1 && in_array('admin', user_roles())) @php $universal = \Nwidart\Modules\Facades\Module::find('UniversalBundle'); $plugins = \Froiden\Envato\Functions\EnvatoUpdate::plugins(); $versionArray = []; foreach ($plugins as $value) { $versionArray[$value['envato_id']] = $value['version']; } $version = $versionArray; @endphp @if ($universal && config(strtolower($universal) . '.envato_item_id')) @if ($version[config(strtolower($universal) . '.envato_item_id')] > File::get($universal->getPath() . '/version.txt') && (config(strtolower($universal) . '.setting')::first()?->notify_update))