@extends('layouts.app') @push('styles') @endpush @section('content')
@lang('menu.goBackToCustomModules')

@lang('modules.update.installCustomModule')

1

@lang('modules.update.uploadModule')

@php $uploadMaxFilesize = \App\Helper\Files::getUploadMaxFilesize(); $postMaxSize = \App\Helper\Files::getPostMaxSize(); @endphp @if(!$uploadMaxFilesize['greater'] || !$postMaxSize['greater'])

Server Configuration Warning

@if(!$uploadMaxFilesize['greater'])

Server upload_max_filesize: {{\App\Helper\Files::getUploadMaxFilesize()['size']}}
Required: {{\App\Helper\Files::REQUIRED_FILE_UPLOAD_SIZE}}MB

@endif @if(!$postMaxSize['greater'])

Server post_max_size: {{\App\Helper\Files::getPostMaxSize()['size']}}
Required: {{\App\Helper\Files::REQUIRED_FILE_UPLOAD_SIZE}}MB

@endif

Please update your server configuration to meet the requirements for uploading module files.

Server Software: {{ $_SERVER['SERVER_SOFTWARE'] }}
@if(str_contains(strtolower($_SERVER['SERVER_SOFTWARE']), 'apache')) Apache Server @elseif(str_contains(strtolower($_SERVER['SERVER_SOFTWARE']), 'nginx')) Nginx Server @endif
@endif

@lang('messages.downloadFilefromCodecanyon')

2

@lang('modules.update.moduleFile')

    @forelse (collect(\Illuminate\Support\Facades\File::files($updateFilePath))->sortByDesc(function($file) { return \Illuminate\Support\Facades\File::lastModified($file); })->filter(function($file) { return \Illuminate\Support\Facades\File::basename($file) !== 'modules_statuses.json'; }) as $key => $filename) @if (\Illuminate\Support\Facades\File::basename($filename) != 'modules_statuses.json' && strpos(\Illuminate\Support\Facades\File::basename($filename), 'auto') === false)
  • {{ \Illuminate\Support\Facades\File::basename($filename) }}

    @lang('app.uploadDate'): @php $lastModified = \Carbon\Carbon::parse(\Illuminate\Support\Facades\File::lastModified($filename))->timezone(global_setting()->timezone); $now = \Carbon\Carbon::now(global_setting()->timezone); $diffInMinutes = $lastModified->diffInMinutes($now); @endphp {{ $lastModified->translatedFormat('jS M, Y g:i A') }}

    @if($diffInMinutes < 10) @if($diffInMinutes < 1) uploaded now @else uploaded {{ intval($diffInMinutes) }} minutes ago @endif @endif
  • @endif @empty
  • @lang('messages.noRecordFound')
  • @endforelse
@endsection @push('scripts') @endpush