ldc-web/resources/views/status-checker/index.blade.php
Vincent BRIDIER 9d5b54a5ea - SAML OK
- TOTP OK
- STATUS Checker (to do : code)
- EDL Web edit
2020-04-14 15:58:24 +02:00

78 lines
3.4 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></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_checked}} B
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection