228 lines
11 KiB
PHP
228 lines
11 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
@if ($errors->any())
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
|
|
<h4 class="font-weight-bold mb-4">
|
|
Subdomains prüfen SSL/Aktiv
|
|
</h4>
|
|
|
|
<div class="card mb-4">
|
|
|
|
|
|
|
|
|
|
|
|
@if(count($dobbleDomains)>0)
|
|
{!! Form::open(['action' => route('sysadmin_tool_store', ['domainssl']), 'class' => '']) !!}
|
|
<div class="card-body">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;">ID</th>
|
|
<th style="max-width: 60px;">User-ID</th>
|
|
<th>SubDomain</th>
|
|
<th>#</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($dobbleDomains as $userId=>$domains)
|
|
@foreach($domains as $domainId=>$slug)
|
|
<tr>
|
|
<td>{{ $domainId }}</td>
|
|
<td>{{ $userId }}</td>
|
|
|
|
<td><a href="{{ $slug }}" target="_blank">{{ $slug }}</a></td>
|
|
<td>
|
|
<button type="submit" class="btn btn-warning btn-xs" name="delete_user_shop" value="{{ $domainId }}"
|
|
onclick="return confirm('Shop {{ $slug }} wirklich löschen?');"><i class="ion"></i>Shop löschen</button>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{!! Form::close() !!}
|
|
@endif
|
|
|
|
@if(count($SubDomains)>0)
|
|
{!! Form::open(['action' => route('sysadmin_tool_store', ['domainssl']), 'class' => '']) !!}
|
|
<div class="card-body">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>SubDomain</th>
|
|
<th>SSL</th>
|
|
<th>#</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($SubDomains as $SubDomain=>$ssl)
|
|
<tr>
|
|
<td><a href="{{ $SubDomain }}" target="_blank">{{ $SubDomain }}</a></td>
|
|
<td>@if(!is_array($ssl)){{ $ssl }}@endif</td>
|
|
<td>
|
|
<button type="submit" class="btn btn-danger btn-xs" name="delete_sub_kas" value="{{ $SubDomain }}"><i class="ion"></i> löschen</button>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{!! Form::close() !!}
|
|
@endif
|
|
|
|
@if(count($values)>0)
|
|
{!! Form::open(['action' => route('sysadmin_tool_store', ['domainssl']), 'class' => '']) !!}
|
|
|
|
<div class="card-body">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;">ID</th>
|
|
<th style="max-width: 60px;">User-ID</th>
|
|
<th>Domain</th>
|
|
<th>Sub</th>
|
|
<th>SSL</th>
|
|
<th>#</th>
|
|
<th>PHP</th>
|
|
<th>seit</th>
|
|
<th>Datum</th>
|
|
<th>Erreichbar</th>
|
|
<th>Status</th>
|
|
<th>User Account</th>
|
|
<th>User Shop</th>
|
|
<th>User seit</th>
|
|
|
|
<th>#</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($values as $value)
|
|
<tr>
|
|
<td>{{ $value->id }}</td>
|
|
<td>{{ $value->user_id }}</td>
|
|
<td><a href="https://{{ $value->slug }}.mivita.care" target="_blank">{{ $value->slug }}.mivita.care</a></td>
|
|
<td> {!! get_active_badge($value->hasSubdomain) !!} </td>
|
|
<td> {!! get_active_badge($value->hasSSL) !!} </td>
|
|
<td><button type="submit" class="btn btn-success btn-xs" name="update_ssl" value="{{ $value->id }}"><i class="ion"></i>update</button></td>
|
|
<td> {!! $value->PHPversion !!} </td>
|
|
|
|
<td>{{ $value->getActiveDateFormatSmall() }}</td>
|
|
<td>
|
|
@if($value->user && $value->user->payment_shop)
|
|
@if($value->user->isActiveShop())
|
|
<span class="badge badge-pill badge-success"><i class="fa fa-check"></i> {{ $value->user->getPaymentShopDateFormat() }}</span>
|
|
@else
|
|
<span class="badge badge-pill badge-warning"><i class="fa fa-ban"></i>{{ $value->user->getPaymentShopDateFormat() }}</span></a>
|
|
@endif
|
|
@else
|
|
<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>
|
|
@endif
|
|
|
|
</td>
|
|
<td>
|
|
--
|
|
{{--
|
|
@if($value->getSubdomainAvailable())
|
|
<span class="badge badge-pill badge-success"><i class="fa fa-check"> {{ __('available') }} </i>
|
|
@if($value->getSubdomainSslSin()) HTTPS @else HTTP @endif
|
|
</span>
|
|
@else
|
|
<span class="badge badge-pill badge-danger"><i class="fa fa-times"> {{ __('not available') }} </i> HTTP </span>
|
|
@endif
|
|
--}}
|
|
</td>
|
|
<td>{!! get_active_badge($value->active) !!}</td>
|
|
<td>@if($value->user)
|
|
@if($value->user->payment_account)
|
|
@if($value->user->isActiveAccount())
|
|
<span class="badge badge-pill badge-success"><i class="fa fa-check"></i> {{ $value->user->getPaymentAccountDateFormat() }}</span></a>
|
|
@else
|
|
<span class="badge badge-pill badge-warning"><i class="fa fa-ban"></i>{{ $value->user->getPaymentAccountDateFormat() }}</span></a>
|
|
@endif
|
|
@else
|
|
<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span></a>
|
|
@endif
|
|
@else
|
|
-
|
|
@endif
|
|
</td>
|
|
|
|
<td>
|
|
@if($value->user)
|
|
@if($value->user->payment_shop)
|
|
@if($value->user->isActiveShop())
|
|
<span class="badge badge-pill badge-success"><i class="fa fa-check"></i> {{ $value->user->getPaymentShopDateFormat() }}</span></a>
|
|
@else
|
|
<span class="badge badge-pill badge-warning"><i class="fa fa-ban"></i>{{ $value->user->getPaymentShopDateFormat() }}</span></a>
|
|
@endif
|
|
@else
|
|
<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span></a>
|
|
@endif
|
|
@else
|
|
-
|
|
@endif
|
|
</td>
|
|
|
|
<td>
|
|
@if($value->user)
|
|
@if($value->user->shop)
|
|
@if($value->user->shop->active)
|
|
<span class="badge badge-pill badge-success"><i class="fa fa-check"></i> {{ $value->user->shop->getActiveDateFormatSmall() }}</span></a>
|
|
@else
|
|
<span class="badge badge-pill badge-warning"><i class="fa fa-ban"></i>{{ $value->user->shop->getActiveDateFormatSmall() }}</span></a>
|
|
@endif
|
|
@else
|
|
<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span></a>
|
|
@endif
|
|
@else
|
|
-
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if(!$value->user || !$value->user->payment_shop || !$value->user->isActiveShop())
|
|
<button type="submit" class="btn btn-danger btn-xs" name="delete_user_shop" value="{{ $value->id }}"><i class="ion"></i>Shop löschen</button>
|
|
@else
|
|
<button type="submit" class="btn btn-warning btn-xs" name="delete_user_shop" value="{{ $value->id }}"
|
|
onclick="return confirm('Shop {{ $value->slug }}.mivita.care wirklich löschen?');"><i class="ion"></i>Shop löschen</button>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
@endif
|
|
</div>
|
|
@endsection
|
|
|