2022-03-02 14:00:58 +01:00
|
|
|
@section('title') {{ $provider->name }} {{'provider'}} @endsection
|
|
|
|
<x-app-layout>
|
|
|
|
<x-slot name="header">
|
|
|
|
{{ __('Provider details') }}
|
|
|
|
</x-slot>
|
|
|
|
<div class="container">
|
|
|
|
<x-card class="shadow mt-3">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-6 mb-2">
|
|
|
|
<h2>{{ $provider->name }}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6 text-md-end">
|
|
|
|
<h6 class="text-muted pe-lg-4">{{ $provider->id }}</h6>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-lg-6">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-borderless text-nowrap">
|
|
|
|
<tbody>
|
2022-03-02 14:03:42 +01:00
|
|
|
@if(!empty($data))
|
2022-03-02 14:00:58 +01:00
|
|
|
@foreach($data as $l)
|
|
|
|
<tr>
|
|
|
|
<td class="py-2 text-muted">
|
|
|
|
@if(isset($l->hostname))
|
|
|
|
Server
|
|
|
|
@elseif(isset($l->main_domain_shared))
|
|
|
|
Shared
|
|
|
|
@elseif(isset($l->main_domain_reseller))
|
|
|
|
Reseller
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if(isset($l->hostname))
|
|
|
|
<a href="{{ route('servers.show', $l->id) }}" class="text-decoration-none">{{$l->hostname}}</a>
|
|
|
|
@elseif(isset($l->main_domain_shared))
|
|
|
|
<a href="{{ route('shared.show', $l->id) }}" class="text-decoration-none">{{$l->main_domain_shared}}</a>
|
|
|
|
@elseif(isset($l->main_domain_reseller))
|
|
|
|
<a href="{{ route('reseller.show', $l->id) }}" class="text-decoration-none">{{$l->main_domain_reseller}}</a>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
2022-03-02 14:03:42 +01:00
|
|
|
@else
|
|
|
|
<tr>
|
|
|
|
<td class="px-4 py-2 text-muted" colspan="3">No services found for {{ $provider->name }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2022-03-02 14:00:58 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<x-back-button>
|
|
|
|
<x-slot name="href">{{ route('providers.index') }}</x-slot>
|
|
|
|
Go back
|
|
|
|
</x-back-button>
|
|
|
|
</x-card>
|
|
|
|
</div>
|
|
|
|
</x-app-layout>
|