@extends($templatePathAdmin.'layout') @section('main')
@if (!$plugins) @else @foreach ($plugins as $codePlugin => $pluginClassName) @php //Begin try catch error try { $classConfig = $pluginClassName.'\\AppConfig'; $pluginClass = new $classConfig; //Check Plugin installed if (!array_key_exists($codePlugin, $pluginsInstalled->toArray())) { $pluginStatusTitle = sc_language_render('admin.plugin.not_install'); $pluginAction = ''; } else { //Check plugin enable if($pluginsInstalled[$codePlugin]['value']){ $pluginStatusTitle = sc_language_render('admin.plugin.actived'); $pluginAction =' '; if($pluginClass->config()){ $pluginAction .=' '; } //Delete data $pluginAction .=''; //You can not remove if plugin is default if(!in_array($codePlugin, $arrDefault)) { $pluginAction .=' '; } }else{ $pluginStatusTitle = sc_language_render('admin.plugin.disabled'); $pluginAction = ' '; if($pluginClass->config()){ $pluginAction .=' '; } //Delete data $pluginAction .=''; //You can not remove if plugin is default if(!in_array($codePlugin, $arrDefault)) { $pluginAction .=' '; } } } @endphp @php //End try cacth } catch(\Throwable $e) { sc_report(json_encode($pluginClassName)." : ".$e->getMessage()); echo json_encode($pluginClassName)." : ".$e->getMessage(); } @endphp @endforeach @endif
{{ sc_language_render('admin.plugin.image') }} {{ sc_language_render('admin.plugin.code') }} {{ sc_language_render('admin.plugin.name') }} {{ sc_language_render('admin.plugin.version') }} {{ sc_language_render('admin.plugin.auth') }} {{ sc_language_render('admin.plugin.link') }} {{ sc_language_render('admin.plugin.sort') }} {{ sc_language_render('admin.plugin.action') }}
{{ sc_language_render('admin.plugin.empty') }}
{!! sc_image_render($pluginClass->image,'50px', '', $pluginClass->title) !!} {{ $codePlugin }} {{ $pluginClass->title }} {{ $pluginClass->version??'' }} {{ $pluginClass->auth??'' }} Link {{ $pluginsInstalled[$codePlugin]['sort']??'' }} {!! $pluginAction !!}
@endsection @push('styles') @endpush @push('scripts') {{-- //Pjax --}} @endpush