2022-03-05 16:29:58 +01:00
|
|
|
@section('title') {{'Edit domain'}} @endsection
|
|
|
|
<x-app-layout>
|
|
|
|
<x-slot name="header">
|
2022-07-19 16:19:05 +02:00
|
|
|
Edit {{ $domain_info->domain }}.{{ $domain_info->extension }}
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-slot>
|
|
|
|
<div class="container">
|
|
|
|
<x-card class="shadow mt-3">
|
|
|
|
<h4 class="mb-3">Domain information</h4>
|
|
|
|
<x-back-button>
|
|
|
|
<x-slot name="href">{{ route('domains.index') }}</x-slot>
|
|
|
|
Go back
|
|
|
|
</x-back-button>
|
2022-10-13 05:36:21 +02:00
|
|
|
<x-response-alerts></x-response-alerts>
|
2022-07-19 16:19:05 +02:00
|
|
|
<form action="{{ route('domains.update', $domain_info->id) }}" method="POST">
|
2022-03-05 16:29:58 +01:00
|
|
|
@csrf
|
|
|
|
@method('PUT')
|
|
|
|
<div class="row mt-4">
|
|
|
|
<div class="col-12 col-lg-4 mb-4">
|
|
|
|
<input type="hidden" value="1" name="service_type">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-prepend"><span class="input-group-text">domain</span></div>
|
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="domain"
|
2022-07-19 16:19:05 +02:00
|
|
|
value="{{ $domain_info->domain }}">
|
2022-03-05 16:29:58 +01:00
|
|
|
@error('name') <span class="text-red-500">{{ $message }}
|
|
|
|
</span>@enderror
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-4 mb-4">
|
|
|
|
<x-text-input>
|
|
|
|
<x-slot name="title">Extension</x-slot>
|
|
|
|
<x-slot name="name">extension</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{ $domain_info->extension }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-text-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-lg-4 mb-4">
|
|
|
|
<x-text-input>
|
|
|
|
<x-slot name="title">NS1</x-slot>
|
|
|
|
<x-slot name="name">ns1</x-slot>
|
|
|
|
<x-slot name="max">255</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{$domain_info->ns1}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-text-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-4 mb-4">
|
|
|
|
<x-text-input>
|
|
|
|
<x-slot name="title">NS2</x-slot>
|
|
|
|
<x-slot name="name">ns2</x-slot>
|
|
|
|
<x-slot name="max">255</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{$domain_info->ns2}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-text-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-4 mb-4">
|
|
|
|
<x-text-input>
|
|
|
|
<x-slot name="title">NS3</x-slot>
|
|
|
|
<x-slot name="name">ns3</x-slot>
|
|
|
|
<x-slot name="max">255</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{$domain_info->ns3}}</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>
|
|
|
|
<x-slot name="current">
|
2022-07-19 16:19:05 +02:00
|
|
|
{{$domain_info->provider->id}}
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-slot>
|
|
|
|
</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>
|
|
|
|
<x-slot name="step">0.01</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{ $domain_info->price->price }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-number-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
|
|
<x-term-select>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="current">{{$domain_info->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 16:19:05 +02:00
|
|
|
<x-slot name="current">{{$domain_info->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-4 mb-3">
|
|
|
|
<x-date-input>
|
|
|
|
<x-slot name="title">Owned since</x-slot>
|
|
|
|
<x-slot name="name">owned_since</x-slot>
|
2022-07-19 16:19:05 +02:00
|
|
|
<x-slot name="value">{{$domain_info->owned_since }}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-date-input>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-4 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 16:19:05 +02:00
|
|
|
<x-slot name="value">{{$domain_info->price->next_due_date}}</x-slot>
|
2022-03-05 16:29:58 +01:00
|
|
|
</x-date-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 16:19:05 +02:00
|
|
|
@if(isset($domain_info->labels[0]->label))
|
|
|
|
<x-slot name="current">{{$domain_info->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 16:19:05 +02:00
|
|
|
@if(isset($domain_info->labels[1]->label))
|
|
|
|
<x-slot name="current">{{$domain_info->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 16:19:05 +02:00
|
|
|
@if(isset($domain_info->labels[2]->label))
|
|
|
|
<x-slot name="current">{{$domain_info->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 16:19:05 +02:00
|
|
|
@if(isset($domain_info->labels[3]->label))
|
|
|
|
<x-slot name="current">{{$domain_info->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 16:19:05 +02:00
|
|
|
value="1" {{ ($domain_info->active === 1) ? 'checked' : '' }}>
|
2022-03-05 16:29:58 +01:00
|
|
|
<label class="form-check-label">
|
|
|
|
I still have this service
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
|
|
<div class="col-12 col-lg-4">
|
|
|
|
<x-submit-button>Update domain</x-submit-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</x-card>
|
|
|
|
</div>
|
|
|
|
</x-app-layout>
|