2022-10-13 07:03:31 +02:00
|
|
|
@section("title", "Shared hosting")
|
2022-03-05 16:29:58 +01:00
|
|
|
@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">
|
|
|
|
{{ __('Shared hosting') }}
|
|
|
|
</x-slot>
|
|
|
|
<div class="container" id="app">
|
|
|
|
<x-delete-confirm-modal></x-delete-confirm-modal>
|
|
|
|
<div class="card shadow mt-3">
|
|
|
|
<div class="card-body">
|
|
|
|
<a href="{{ route('shared.create') }}" class="btn btn-primary mb-3">Add shared hosting</a>
|
|
|
|
@if ($message = Session::get('success'))
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
<p class="my-1">{{ $message }}</p>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead class="table-light">
|
|
|
|
<tr class="bg-gray-100">
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Location</th>
|
|
|
|
<th>Provider</th>
|
|
|
|
<th>Disk</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Due</th>
|
|
|
|
<th>Had since</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if(!empty($shared))
|
|
|
|
@foreach($shared as $row)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $row->main_domain }}</td>
|
|
|
|
<td>{{ $row->shared_type }}</td>
|
2022-07-19 07:21:13 +02:00
|
|
|
<td class="text-nowrap">{{ $row->location->name }}</td>
|
|
|
|
<td class="text-nowrap">{{ $row->provider->name }}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
<td>{{ $row->disk_as_gb }} <small>GB</small></td>
|
2022-07-19 07:21:13 +02:00
|
|
|
<td>{{ $row->price->price }} {{$row->price->currency}} {{\App\Process::paymentTermIntToString($row->price->term)}}</td>
|
|
|
|
<td>{{Carbon\Carbon::parse($row->price->next_due_date)->diffForHumans()}}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
<td class="text-nowrap">{{ $row->owned_since }}</td>
|
|
|
|
<td class="text-nowrap">
|
2022-07-19 07:21:13 +02:00
|
|
|
<form action="{{ route('shared.destroy', $row->id) }}" method="POST">
|
|
|
|
<a href="{{ route('shared.show', $row->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 07:21:13 +02:00
|
|
|
<a href="{{ route('shared.edit', $row->id) }}"
|
2022-03-05 16:29:58 +01:00
|
|
|
class="text-body mx-1">
|
|
|
|
<i class="fas fa-pen" title="edit"></i>
|
|
|
|
</a>
|
|
|
|
|
2022-10-13 05:19:39 +02:00
|
|
|
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal"
|
|
|
|
id="{{$row->id}}" title="{{$row->main_domain}}"></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 shared hosting found.</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-20 02:59:03 +02:00
|
|
|
<x-details-footer></x-details-footer>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
2022-10-20 02:56:35 +02:00
|
|
|
<x-modal-delete-script>
|
|
|
|
<x-slot name="uri">shared</x-slot>
|
|
|
|
</x-modal-delete-script>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-app-layout>
|