@if ($plugins->where('envato_id', config(strtolower($universalBundle) . '.envato_item_id'))->first())
@php
$currentVersion = \Illuminate\Support\Facades\File::get($universalBundle->getPath() . '/version.txt');
$latestVersion = $plugins->where('envato_id', config(strtolower($universalBundle) . '.envato_item_id'))->pluck('version')->first();
$needsUpdate = $latestVersion > $currentVersion;
@endphp
@if ($needsUpdate)
Update Available for {{ $universalBundle->getName() }}
Current version: v{{ $currentVersion }}
|
Latest version: v{{ $latestVersion }}
@lang('app.moduleUpdateMessage', [
'name' => $universalBundle->getName(),
'version' => $latestVersion
])
@if($plugins->where('envato_id', config(strtolower($universalBundle) . '.envato_item_id'))->pluck('version')->first() > \Illuminate\Support\Facades\File::get($universalBundle->getPath() . '/version.txt'))
@endif
@endif
@endif
@php
$fetchSetting = null;
if (in_array($universalBundle, $worksuitePlugins) && config(strtolower($universalBundle) . '.setting')) {
$fetchSetting = config(strtolower($universalBundle) . '.setting')::first();
}
@endphp
{{ $universalBundle->getName() }}
@if (config(strtolower($universalBundle) . '.setting'))
@include('custom-modules.sections.version', ['module' => $universalBundle])
@endif
@if ($fetchSetting?->license_type)
{{ $fetchSetting->license_type }}
@if (str_contains($fetchSetting->license_type, 'Regular'))
Upgrade now
@endif
@endif
@if (
$fetchSetting?->purchase_code &&
$fetchSetting?->supported_until &&
\Carbon\Carbon::parse($fetchSetting->supported_until)->isPast())
Support Expired
@endif
@if ($fetchSetting?->purchase_code && $fetchSetting?->supported_until)
{{-- --}}
@include('custom-modules.sections.support-date')
@endif
@if ($fetchSetting)
@if (config(strtolower($universalBundle) . '.verification_required'))
@include('custom-modules.sections.purchase-code', ['module' => $universalBundle])
@endif
@if ($plugins->where('envato_id', config(strtolower($universalBundle) . '.envato_item_id'))->first())
@include('custom-modules.sections.module-update', ['module' => $universalBundle, 'fetchSetting' => $fetchSetting])
{{--
notify_update)
id="module-notification-{{ $universalBundle }}" data-module-name="{{ $universalBundle }}">
--}}
@endif
@endif
@if (!config(strtolower($universalBundle) . '.name'))
@endif