| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/laragon4/www/wa-gateway/resources/views/pages/admin/ |
Upload File : |
<x-layout-dashboard title="{{ __('Update Version') }}">
<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
<div class="breadcrumb-title pe-3">{{ __('Admin') }}</div>
<div class="ps-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0 p-0">
<li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ __('Update Version') }}</li>
</ol>
</nav>
</div>
</div>
<!--end breadcrumb-->
@if (session()->has('alert'))
<x-alert>
@slot('type', session('alert')['type'])
@slot('msg', session('alert')['msg'])
</x-alert>
@endif
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row mt-4">
<div class="col">
<div class="card">
<div class="card-header d-flex justify-content-between">
<h5 class="card-title">{{ __('Update') }}</h5>
</div>
<div class="container mt-3">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@if ($updateAvailable)
<div class="alert alert-info">
{{ __('A new version is available:') }} <span
class="text-danger">v{{ $newVersion }}</span><br />
{!! __(
'<span class="text-danger">Note: Turn off <span class="text-primary">Nodejs</span> before continuing with the update, after the update is complete you can turn it back on</span>',
) !!}
@if ($whatsNew)
<br />{!! $whatsNew !!}
@endif
</div>
<form method="POST" action="{{ route('update.install') }}">
@csrf
@if ($serverProtocol == 'https')
<div class="alert alert-danger">
{!! __(
'<span class="text-danger">You are using SSL in the <span class="text-primary">server.js</span> file, but don\'t worry, <span class="text-primary">Smart Update</span> will update and run your site with SSL, just click update</span>',
) !!}<br />
@if ($updateSSL)
<input type="hidden" name="ssl" value="ssl" />
@endif
</div>
@endif
@if ($before)
<input type="hidden" name="before" value="1" />
@endif
@if ($after)
<input type="hidden" name="after" value="1" />
@endif
<input type="hidden" name="version" value="{{ $newVersion }}" />
<button type="submit" class="btn btn-primary mb-3">{{ __('Update') }}</button>
</form>
@else
<div class="alert alert-success">
{{ __('You are using the latest version.') }}
</div>
@endif
</div>
</div>
</div>
</div>
</x-layout-dashboard>