my-idlers/resources/views/providers/show.blade.php
cp6 d13e170f22 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:22:16 +11:00

61 lines
2.9 KiB
PHP

@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>
@if(!empty($data))
@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
@else
<tr>
<td class="px-4 py-2 text-muted" colspan="3">No services found for {{ $provider->name }}</td>
</tr>
@endif
</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>