121 lines
5.1 KiB
PHP
121 lines
5.1 KiB
PHP
@php use Illuminate\Support\Carbon; @endphp
|
|
@php use App\Http\Helpers\Helper; @endphp
|
|
<div class="box clients-summary__box p-4">
|
|
|
|
<div class="row form-group">
|
|
<table class="form" width="100%" border="0" cellspacing="2" cellpadding="3">
|
|
<tbody>
|
|
<tr>
|
|
<td class="fieldlabel">Order #</td>
|
|
<td class="fieldarea">
|
|
<strong>{{ $product->Order->id }}</strong> -
|
|
<a href="{{ route('admin.order.edit', ['id' => $product->order->id]) }}">View Order</a>
|
|
</td>
|
|
<td class="fieldlabel">Registration Date</td>
|
|
<td class="fieldarea">
|
|
{!! Carbon::parse($product->Order->date)->format('d-m-Y') !!}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="fieldlabel">Product/Service</td>
|
|
<td class="fieldarea">
|
|
@isset($productName->name)
|
|
{{ $productName->name }}
|
|
@endisset
|
|
</td>
|
|
<td class="fieldlabel">Quantity</td>
|
|
<td class="fieldarea"><strong>1</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="fieldlabel">Server</td>
|
|
<td class="fieldarea">
|
|
|
|
@if ($product->server)
|
|
{{ $product->server->name }}
|
|
@else
|
|
Not Found
|
|
@endif
|
|
</td>
|
|
<td class="fieldlabel">First Payment Amount</td>
|
|
<td class="fieldarea">
|
|
<input type="number" class="form-control" readonly name="first_payment"
|
|
value="{{ $product->first_payment }}" id="">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="fieldlabel">Domain</td>
|
|
<td class="fieldarea">
|
|
<input type="text" class="form-control change-validate" placeholder="abc.com" name="name"
|
|
value="{{ $product->name }}" id="">
|
|
</td>
|
|
<td class="fieldlabel">Recurring Amount</td>
|
|
<td class="fieldarea">
|
|
<input type="number" class="form-control" readonly name="first_payment"
|
|
value="{{ $product->next_payment }}" id="">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="fieldlabel">Billing Cycle</td>
|
|
<td class="fieldarea">
|
|
{!! $invoice_item ? $invoice_item->getBilling() : 'N/A' !!}
|
|
</td>
|
|
<td class="fieldlabel">Next Due Date</td>
|
|
<td class="fieldarea">
|
|
<input type="text" name="next_due_date" id="next_due_date"
|
|
class="form-control datetime-picker" placeholder="dd/mm/yy"
|
|
value=" {{ Carbon::parse($product->next_due_date)->format('d/m/Y') }}">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="fieldlabel">Payment Method</td>
|
|
<td class="fieldarea">
|
|
{{ $product->Order->Payment->name }}
|
|
</td>
|
|
<td class="fieldlabel">Status</td>
|
|
<td class="fieldarea">
|
|
{!! $product->getStatus() !!}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="fieldlabel">Username</td>
|
|
<td class="fieldarea">
|
|
<input type="text" class="form-control" name="username" value="{{ $product->username }}">
|
|
</td>
|
|
<td class="fieldlabel">Password</td>
|
|
<td class="fieldarea">
|
|
<input type="text" class="form-control" name="password"
|
|
value="{{ $product->password ? SignRSA::DecryptFunc($product->password) : '' }}">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="row form-group">
|
|
<div class="col">
|
|
<form action="{{ route('task.manager') }}" method="post">
|
|
@csrf
|
|
<input type="hidden" name="type" value="{{ $type }}">
|
|
<input type="hidden" name="product" value="{{ $product->id }}">
|
|
<input type="hidden" name="userid" value="{{ $userid }}">
|
|
<input type="hidden" name="domain" value="{{ $product->name }}">
|
|
<input type="hidden" name="action" value="create">
|
|
<button type="submit" {{ $product->status === 0 ? '' : 'disabled' }}
|
|
class="btn btn-block btn-outline-secondary">Create
|
|
</button>
|
|
</form>
|
|
|
|
</div>
|
|
<div class="col">
|
|
<button type="button" class="btn btn-block btn-outline-secondary">Suspend</button>
|
|
</div>
|
|
<div class="col">
|
|
<button type="button" class="btn btn-block btn-outline-secondary">Unsuspend</button>
|
|
</div>
|
|
<div class="col">
|
|
<button type="button" class="btn btn-block btn-outline-secondary">Change Password</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|