@if ($plugins->where('envato_id', config(strtolower($module) . '.envato_item_id'))->first()) @if ($plugins->where('envato_id', config(strtolower($module) . '.envato_item_id'))->pluck('version')->first() > File::get($module->getPath() . '/version.txt')) {{ File::get($module->getPath() . '/version.txt') }} @else {{ File::get($module->getPath() . '/version.txt') }} @endif @else {{ File::get($module->getPath() . '/version.txt') }} @endif