ldc-web/resources/views/status-checker/index.blade.php
Vincent BRIDIER 4fd8f4bf37 - Add Datastore PCC Management
- Add Domain Names Management
- Add Servers Management
- Update EDL Web Management
- Add SAML conf
- Add Laravel to StatusChecker
2020-04-17 09:18:42 +02:00

101 lines
4.6 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<table class="table text-center">
<thead class="thead-dark">
<tr>
<th scope="col">Status</th>
<th scope="col">HTTPS</th>
<th scope="col">Site</th>
<th scope="col">PHP</th>
<th scope="col">Type</th>
<th scope="col">Code</th>
<th scope="col">Sitemap</th>
<th scope="col">Robots.txt</th>
<th scope="col">Log d'erreurs</th>
</tr>
</thead>
<tbody>
@foreach($projects as $project)
<tr>
<td>
@if ($project->checked === 'missing')
<i class="fas fa-ghost"></i>
@elseif($project->checked === 'true')
<div class="status checked">checked</div>
@else
<div class="status unchecked">unchecked</div>
@endif
</td>
<td>
@if($project->https === 0)
<i class="fas fa-unlock red"></i>
@else
<i class="fas fa-lock green"></i>
@endif
</td>
<th scope="row" class="text-left"><a href="/projects/{{$project->uuid}}/edit">{{$project->display_name}}</a></th>
<td><b>{{$project->php}}</b></td>
<td>{{$project->type}}</td>
<td>
@if ($project->code === 'missing')
<i class="fas fa-ghost"></i>
@else
@php
$code = json_decode($project->code);
@endphp
@if ($project->type === 'WP')
@if ($code->version === $wp_latest)
{{$code->version}}
@else
<b class="red">{{$code->version}} ({{$wp_latest}})</b>
@endif
@elseif ($project->type === 'Laravel')
@if ($code->version === $laravel_latest)
{{$code->version}}
@else
<b class="red">{{$code->version}} ({{$laravel_latest}})</b>
@endif
@else
{{$code->version}}
@endif
@endif
</td>
<td>
@if ($project->sitemap_checked === 'missing')
<i class="fas fa-ghost"></i>
@elseif($project->sitemap_checked === 'true')
<i class="fas fa-check-circle green"></i>
@else
<i class="fas fa-times-circle red"></i>
@endif
</td>
<td>
@if ($project->robots_checked === 'missing')
<i class="fas fa-ghost"></i>
@elseif($project->robots_checked === 'true')
<i class="fas fa-check-circle green"></i>
@else
<i class="fas fa-times-circle red"></i>
@endif
</td>
<td>
@if ($project->logs_checked === 'missing')
<i class="fas fa-ghost"></i>
@elseif($project->logs_checked === 0)
<i class="fas fa-bug green"></i>
@else
<i class="fas fa-bug red"></i> {{ $project->logs_HR }}
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection