Deon George 176be19043
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 30s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m36s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
The call to dns_get_record() in error.blade is not returning IP addresses, so use DNS_A|DNS_AAAA instead of the default DNS_ANY
This is referenced in #211, but not the actual cause of that issue though
2025-02-23 13:59:56 +11:00

56 lines
1.7 KiB
PHP

<!DOCTYPE html>
<html>
@section('htmlheader')
@include('architect::layouts.partials.htmlheader')
@show
<body class="hold-transition error-page">
<div id="app">
<!-- /.login-logo -->
<div class="app-container app-theme-white body-tabs-shadow">
<div class="app-container">
<div class="h-100 bg-animation">
<div class="d-flex h-100 justify-content-center align-items-center">
<div class="mx-auto app-login-box col-md-8">
<div class="modal-dialog w-100 mx-auto">
<div class="modal-content">
<div class="modal-header">
<img class="w-25" src="{{ url('images/logo-h-lg.png') }}">
<span class="card-header-title text-danger ms-auto fs-4">@yield('title')</span>
</div>
<div class="modal-body">
<div class="text-center">
<span class="badge text-danger fsize-2 mb-3">@yield('error')</span>
</div>
<table class="table">
<tr>
<th>Configuration</th>
<td>{{ $x=config('ldap.default') }}</td>
</tr>
<tr>
<th>Host</th>
<td>{{ ($y=collect(config('ldap.connections.'.$x.'.hosts')))->join(',') }} (IP: <strong>{!! $y->transform(fn($item)=>collect(@dns_get_record($item,DNS_A|DNS_AAAA))->transform(fn($item)=>Arr::get($item,'ip',Arr::get($item,'ipv6')))->filter()->join('</strong>,<strong>'))->join(',') !!}</strong>)</td>
</tr>
<tr>
<th>Port</th>
<td>{{ config('ldap.connections.'.$x.'.port') }}</td>
</tr>
<tr>
<th>Message</th>
<td>@yield('content')</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>