SSL Configuration
@if($database->enable_ssl)
@php
$cert = \App\Models\SslCertificate::where('resource_type', $database->getMorphClass())
->where('resource_id', $database->id)
->first();
@endphp
@if($cert)
Valid until:
@if(now()->gt($cert->valid_until))
{{ $cert->valid_until->format('d.m.Y H:i:s') }} - Expired
@elseif(now()->addDays(30)->gt($cert->valid_until))
{{ $cert->valid_until->format('d.m.Y H:i:s') }} - Expiring soon
@else
{{ $cert->valid_until->format('d.m.Y H:i:s') }}
@endif
@endif
@endif
@if($database->enable_ssl)
@endif