2022-10-13 07:03:31 +02:00
|
|
|
@section("title", "{$shared->main_domain} edit")
|
2022-03-05 16:29:58 +01:00
|
|
|
<x-app-layout>
|
|
|
|
<x-slot name="header">
|
2022-07-19 07:55:10 +02:00
|
|
|
Edit {{ $shared->main_domain }}
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="card mt-3 shadow">
|
|
|
|
<div class="card-body">
|
|
|
|
<a href="{{ route('shared.index') }}"
|
|
|
|
class="btn btn-primary px-4 py-1">
|
|
|
|
Back to shared hosting
|
|
|
|
</a>
|
|
|
|
<x-auth-validation-errors></x-auth-validation-errors>
|
2022-07-19 07:55:10 +02:00
|
|
|
<form action="{{ route('shared.update', $shared->id) }}" method="POST">
|
2022-03-05 16:29:58 +01:00
|
|
|
@csrf
|
|
|
|
@method('PUT')
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
2022-10-31 04:42:02 +01:00
|
|
|
<x-text-input title="Domain" name="domain" value="{{$shared->main_domain}}"></x-text-input>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-prepend"><span class="input-group-text">Type</span></div>
|
|
|
|
<select class="form-control" id="shared_type" name="shared_type">
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="ApisCP" {{ ($shared->shared_type === 'ApisCP') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
ApisCP
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Centos" {{ ($shared->shared_type === 'Centos') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Centos
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="cPanel" {{ ($shared->shared_type === 'cPanel') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
cPanel
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Direct Admin" {{ ($shared->shared_type === 'Direct Admin') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Direct Admin
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Webmin" {{ ($shared->shared_type === 'Webmin') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Webmin
|
|
|
|
</option>
|
2022-07-19 07:55:10 +02:00
|
|
|
<option value="Moss" {{ ($shared->shared_type === 'Moss') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Moss
|
|
|
|
</option>
|
2022-07-19 07:55:10 +02:00
|
|
|
<option value="Other" {{ ($shared->shared_type === 'Other') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Other
|
|
|
|
</option>
|
2022-07-19 07:55:10 +02:00
|
|
|
<option value="Plesk" {{ ($shared->shared_type === 'Plesk') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Plesk
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Run cloud" {{ ($shared->shared_type === 'Run cloud') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Run cloud
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Vesta CP" {{ ($shared->shared_type === 'Vesta CP') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Vesta CP
|
|
|
|
</option>
|
|
|
|
<option
|
2022-07-19 07:55:10 +02:00
|
|
|
value="Virtual min" {{ ($shared->shared_type === 'Virtual min') ? 'selected' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
Virtual min
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6 mb-3">
|
|
|
|
<x-text-input>
|
|
|
|
<x-slot name="title">Dedicated IP</x-slot>
|
|
|
|
<x-slot name="name">dedicated_ip</x-slot>
|
|
|
|
<x-slot name="max">255</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">@if(isset($shared->ips[0]->address)) {{$shared->ips[0]->address}}@endif</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-text-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 mb-3">
|
|
|
|
<x-providers-select>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="current">{{$shared->provider->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-providers-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Price</x-slot>
|
|
|
|
<x-slot name="name">price</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->price->price}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
<x-slot name="max">9999</x-slot>
|
|
|
|
<x-slot name="step">0.01</x-slot>
|
|
|
|
<x-slot name="required"></x-slot>
|
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
|
|
<x-term-select>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="current">{{$shared->price->term}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-term-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
|
|
<x-currency-select>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="current">{{$shared->price->currency}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-currency-select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-12 col-md-3 mb-3">
|
|
|
|
<x-locations-select>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="current">{{$shared->location->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-locations-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-3 mb-3">
|
|
|
|
<x-yes-no-select>
|
|
|
|
<x-slot name="title">Promo price</x-slot>
|
|
|
|
<x-slot name="name">was_promo</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{ $shared->was_promo }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-yes-no-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-3 mb-3">
|
|
|
|
<x-date-input>
|
|
|
|
<x-slot name="title">Owned since</x-slot>
|
|
|
|
<x-slot name="name">owned_since</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->owned_since }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-date-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-3 mb-3">
|
|
|
|
<x-date-input>
|
|
|
|
<x-slot name="title">Next due date</x-slot>
|
|
|
|
<x-slot name="name">next_due_date</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->price->next_due_date }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-date-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<p class="text-muted"><b>Limits</b></p>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Domains</x-slot>
|
|
|
|
<x-slot name="name">domains</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->domains_limit}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Sub domains</x-slot>
|
|
|
|
<x-slot name="name">sub_domains</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->subdomains_limit}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Disk GB</x-slot>
|
|
|
|
<x-slot name="name">disk</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->disk_as_gb}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Email</x-slot>
|
2022-03-14 00:03:06 +01:00
|
|
|
<x-slot name="name">email</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->email_limit}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">Bandwidth GB</x-slot>
|
|
|
|
<x-slot name="name">bandwidth</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->bandwidth}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">FTP</x-slot>
|
|
|
|
<x-slot name="name">ftp</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->ftp_limit}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-number-input>
|
|
|
|
<x-slot name="title">DB</x-slot>
|
|
|
|
<x-slot name="name">db</x-slot>
|
|
|
|
<x-slot name="value">1</x-slot>
|
|
|
|
<x-slot name="max">999999</x-slot>
|
|
|
|
<x-slot name="step">1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
<x-slot name="value">{{$shared->db_limit}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-labels-select>
|
|
|
|
<x-slot name="title">label</x-slot>
|
|
|
|
<x-slot name="name">label1</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
@if(isset($shared->labels[0]->label->id))
|
|
|
|
<x-slot name="current">{{$shared->labels[0]->label->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</x-labels-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-labels-select>
|
|
|
|
<x-slot name="title">label</x-slot>
|
|
|
|
<x-slot name="name">label2</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
@if(isset($shared->labels[1]->label->id))
|
|
|
|
<x-slot name="current">{{$shared->labels[1]->label->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</x-labels-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-labels-select>
|
|
|
|
<x-slot name="title">label</x-slot>
|
|
|
|
<x-slot name="name">label3</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
@if(isset($shared->labels[2]->label->id))
|
|
|
|
<x-slot name="current">{{$shared->labels[2]->label->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</x-labels-select>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-3 mb-4">
|
|
|
|
<x-labels-select>
|
|
|
|
<x-slot name="title">label</x-slot>
|
|
|
|
<x-slot name="name">label4</x-slot>
|
2022-07-19 07:55:10 +02:00
|
|
|
@if(isset($shared->labels[3]->label->id))
|
|
|
|
<x-slot name="current">{{$shared->labels[3]->label->id}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</x-labels-select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check mt-2">
|
|
|
|
<input class="form-check-input" name="is_active" type="checkbox"
|
2022-07-19 07:55:10 +02:00
|
|
|
value="1" {{ ($shared->active === 1) ? 'checked' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
<label class="form-check-label">
|
|
|
|
I still have this server
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button type="submit"
|
|
|
|
class="btn btn-success px-4 py-1 mt-3">
|
|
|
|
Update shared hosting
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</x-app-layout>
|