Files
mtdb_movie/common/resources/views/install/requirements.blade.php
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

30 lines
2.2 KiB
PHP
Executable File

<x-install-layout>
@if($allPassed)
<p class="mb-24">Your server meets all the requirements for {{config('app.name')}}. Click continue button below to proceed with the installation.</p>
@else
<p class="mb-24">We've found some issues that need to be fixed before you can proceed with the installation.</p>
@endif
@foreach($results as $groupName => $group)
<div class="border-b py-12">
<div class="flex items-center justify-between gap-24">
<div class="capitalize">{{$groupName}}</div>
@if($group['allPassed'])
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#22c55e"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>
@else
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#ef4444"><path d="M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>
@endif
</div>
@if(!$group['allPassed'])
@foreach($group['items'] as $item)
@if(!$item['passes'])
<p class="text-sm text-danger mt-10">{!! $item['errorMessage'] !!}</p>
@endif
@endforeach
@endif
</div>
@endforeach
<x-install-button
:href="$allPassed ? url('install/database') : url('install/requirements')"
>{{ $allPassed ? 'Continue' : 'Check again' }}</x-install-button>
</x-install-layout>