2022-03-05 16:29:58 +01:00
|
|
|
@section('title') {{'Domains'}} @endsection
|
|
|
|
@section('style')
|
|
|
|
<x-modal-style></x-modal-style>
|
|
|
|
@endsection
|
|
|
|
@section('scripts')
|
|
|
|
<script src="{{ asset('js/vue.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('js/axios.min.js') }}"></script>
|
|
|
|
@endsection
|
|
|
|
<x-app-layout>
|
|
|
|
<x-slot name="header">
|
|
|
|
{{ __('Domains') }}
|
|
|
|
</x-slot>
|
|
|
|
<div class="container" id="app">
|
|
|
|
<x-delete-confirm-modal></x-delete-confirm-modal>
|
|
|
|
<x-card class="shadow mt-3">
|
|
|
|
<a href="{{ route('domains.create') }}" class="btn btn-primary mb-3">Add a domain</a>
|
2022-10-13 05:36:21 +02:00
|
|
|
<x-response-alerts></x-response-alerts>
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead class="table-light">
|
|
|
|
<tr>
|
|
|
|
<th class="text-nowrap">Domain</th>
|
|
|
|
<th class="text-nowrap">Owned since</th>
|
|
|
|
<th class="text-nowrap">Due in</th>
|
|
|
|
<th class="text-nowrap">Provider</th>
|
|
|
|
<th class="text-nowrap">Price</th>
|
|
|
|
<th class="text-nowrap">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if(!empty($domains))
|
|
|
|
@foreach($domains as $domain)
|
|
|
|
<tr>
|
|
|
|
<td class="text-nowrap"><a href="https://{{ $domain->domain }}.{{$domain->extension}}"
|
2022-06-28 03:33:07 +02:00
|
|
|
class="text-decoration-none">{{ $domain->domain }}.{{$domain->extension}}</a></td>
|
2022-03-05 16:29:58 +01:00
|
|
|
<td class="text-nowrap">{{ $domain->owned_since}}</td>
|
2022-07-19 16:19:05 +02:00
|
|
|
<td class="text-nowrap">{{ now()->diffInDays($domain->price->next_due_date) }} <small>days</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
2022-07-19 16:19:05 +02:00
|
|
|
<td class="text-nowrap">{{ $domain->provider->name}}</td>
|
|
|
|
<td class="text-nowrap">{{ $domain->price->price }} <small>{{$domain->price->currency}}</small></td>
|
2022-03-05 16:29:58 +01:00
|
|
|
<td class="text-nowrap">
|
2022-07-19 16:19:05 +02:00
|
|
|
<form action="{{ route('domains.destroy', $domain->id) }}" method="POST">
|
|
|
|
<a href="{{ route('domains.show', $domain->id) }}"
|
2022-03-05 16:29:58 +01:00
|
|
|
class="text-body mx-1">
|
|
|
|
<i class="fas fa-eye" title="view"></i></a>
|
2022-07-19 16:19:05 +02:00
|
|
|
<a href="{{ route('domains.edit', $domain->id) }}"
|
2022-03-05 16:29:58 +01:00
|
|
|
class="text-body mx-1">
|
|
|
|
<i class="fas fa-pen" title="edit"></i></a>
|
|
|
|
@csrf
|
|
|
|
@method('DELETE')
|
|
|
|
<i class="fas fa-trash text-danger ms-3" @click="modalForm"
|
2022-07-19 16:19:05 +02:00
|
|
|
id="btn-{{$domain->domain}}" title="{{$domain->id}}"></i>
|
2022-03-05 16:29:58 +01:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<tr>
|
|
|
|
<td class="px-4 py-2 border text-red-500" colspan="3">No domains found.</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</x-card>
|
|
|
|
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
|
|
|
<p class="text-muted mt-4 text-end"><small>
|
|
|
|
Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}
|
|
|
|
)</small>
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<x-modal-delete-script>
|
|
|
|
<x-slot name="uri">domains</x-slot>
|
|
|
|
</x-modal-delete-script>
|
|
|
|
</x-app-layout>
|