@extends('backend.layouts.main') @section('title') {{ __('Add-ons') }} @endsection @section('content') @foreach($packages as $package)
{{ $package->name }}

{{ $package->description }}

@if($package->installed) @if($package->enabled) @if(isset($releases->{'add-ons'}->{$package->id})) @if(version_compare($releases->{'add-ons'}->{$package->id}->version, $package->version, '>'))

{{ __('New version :v is available.', ['v' => $releases->{'add-ons'}->{$package->id}->version]) }}

@endif @endif
@if(isset($releases->{'add-ons'}->{$package->id})) @if(version_compare($releases->{'add-ons'}->{$package->id}->version, $package->version, '>')) {{ __('Upgrade to v:v', ['v' => $releases->{'add-ons'}->{$package->id}->version]) }} @endif @endif @else
@if(isset($package->min_app_version) && version_compare(config('app.version'), $package->min_app_version, '<'))

{{ __('Main app version should be at least :v1 (:v2 installed)', ['v1' => $package->min_app_version, 'v2' => config('app.version')]) }}

@endif @endif @elseif($package->purchase_url) {{ __('Purchase') }} {{ __('Install') }} @endif
@endforeach @endsection