|
@@ -6,12 +6,12 @@
|
|
<div class="container-fluid">
|
|
<div class="container-fluid">
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
<div class="col-sm-6">
|
|
<div class="col-sm-6">
|
|
- <h1>Servers</h1>
|
|
|
|
|
|
+ <h1>{{__('Servers')}}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="col-sm-6">
|
|
<ol class="breadcrumb float-sm-right">
|
|
<ol class="breadcrumb float-sm-right">
|
|
- <li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
|
|
|
|
- <li class="breadcrumb-item"><a class="text-muted" href="{{route('servers.index')}}">Servers</a>
|
|
|
|
|
|
+ <li class="breadcrumb-item"><a href="{{route('home')}}">{{__('Dashboard')}}</a></li>
|
|
|
|
+ <li class="breadcrumb-item"><a class="text-muted" href="{{route('servers.index')}}">{{__('Servers')}}</a>
|
|
</li>
|
|
</li>
|
|
</ol>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
@@ -26,9 +26,8 @@
|
|
|
|
|
|
<!-- CUSTOM CONTENT -->
|
|
<!-- CUSTOM CONTENT -->
|
|
<div class="d-flex justify-content-between mb-3">
|
|
<div class="d-flex justify-content-between mb-3">
|
|
- <p>Use your servers on our <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}">pterodactyl panel</a></p>
|
|
|
|
- <a @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled="disabled" title="Server limit reached!" @endif href="{{route('servers.create')}}" class="btn @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled @endif btn-primary"><i class="fa fa-plus mr-2"></i>Create
|
|
|
|
- Server</a>
|
|
|
|
|
|
+ <p>{{__('Use your servers on our')}} <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}">{{__('pterodactyl panel')}}</a></p>
|
|
|
|
+ <a @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled="disabled" title="{{__('Server limit reached!')}}" @endif href="{{route('servers.create')}}" class="btn @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled @endif btn-primary"><i class="fa fa-plus mr-2"></i>{{__('Create Server')}}</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -44,14 +43,14 @@
|
|
<i class="fas fa-ellipsis-v fa-sm fa-fw text-white-50"></i>
|
|
<i class="fas fa-ellipsis-v fa-sm fa-fw text-white-50"></i>
|
|
</a>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
|
- <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>Manage</span></a>
|
|
|
|
|
|
+ <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>{{__('Manage')}}</span></a>
|
|
@if(!empty(env('PHPMYADMIN_URL')))
|
|
@if(!empty(env('PHPMYADMIN_URL')))
|
|
- <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info" target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>Database</span></a>
|
|
|
|
|
|
+ <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info" target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>{{__('Database')}}</span></a>
|
|
@endif
|
|
@endif
|
|
<form method="post" onsubmit="return submitResult();" action="{{route('servers.destroy' , $server->id)}}">
|
|
<form method="post" onsubmit="return submitResult();" action="{{route('servers.destroy' , $server->id)}}">
|
|
@csrf
|
|
@csrf
|
|
@method('DELETE')
|
|
@method('DELETE')
|
|
- <button class="dropdown-item text-danger"><i title="delete" class="fas fa-trash mr-2"></i><span>Delete server</span></button>
|
|
|
|
|
|
+ <button class="dropdown-item text-danger"><i title="delete" class="fas fa-trash mr-2"></i><span>{{__('Delete server')}}</span></button>
|
|
</form>
|
|
</form>
|
|
<div class="dropdown-divider"></div>
|
|
<div class="dropdown-divider"></div>
|
|
<span class="dropdown-item"><i title="Created at" class="fas fa-sync-alt mr-2"></i><span>{{$server->created_at->isoFormat('LL')}}</span></span>
|
|
<span class="dropdown-item"><i title="Created at" class="fas fa-sync-alt mr-2"></i><span>{{$server->created_at->isoFormat('LL')}}</span></span>
|
|
@@ -61,34 +60,34 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <span class="text-muted">Server details</span>
|
|
|
|
|
|
+ <span class="text-muted">{{__('Server Details')}}</span>
|
|
<table class="table">
|
|
<table class="table">
|
|
<tr>
|
|
<tr>
|
|
- <td>CPU</td>
|
|
|
|
|
|
+ <td>{{__('Cpu')}}</td>
|
|
<td>{{$server->product->cpu}} %</td>
|
|
<td>{{$server->product->cpu}} %</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>RAM</td>
|
|
|
|
|
|
+ <td>{{__('Memory')}}</td>
|
|
<td>{{$server->product->memory}} MB</td>
|
|
<td>{{$server->product->memory}} MB</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>Disk</td>
|
|
|
|
|
|
+ <td>{{__('Disk')}}</td>
|
|
<td>{{$server->product->disk}} MB</td>
|
|
<td>{{$server->product->disk}} MB</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>Databases</td>
|
|
|
|
|
|
+ <td>{{__('Databases')}}</td>
|
|
<td>{{$server->product->databases}} MySQL</td>
|
|
<td>{{$server->product->databases}} MySQL</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>Backups</td>
|
|
|
|
|
|
+ <td>{{__('Backups')}}</td>
|
|
<td>{{$server->product->backups}}</td>
|
|
<td>{{$server->product->backups}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>Price per Hour</td>
|
|
|
|
|
|
+ <td>{{__('Price per Hour')}}</td>
|
|
<td>{{number_format($server->product->getHourlyPrice(),2,".", "")}} {{CREDITS_DISPLAY_NAME}}</td>
|
|
<td>{{number_format($server->product->getHourlyPrice(),2,".", "")}} {{CREDITS_DISPLAY_NAME}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>Price per Month</td>
|
|
|
|
|
|
+ <td>{{__('Price per Month')}}</td>
|
|
<td>{{$server->product->getHourlyPrice()*24*30}} {{CREDITS_DISPLAY_NAME}}</td>
|
|
<td>{{$server->product->getHourlyPrice()*24*30}} {{CREDITS_DISPLAY_NAME}}</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
@@ -96,9 +95,9 @@
|
|
|
|
|
|
|
|
|
|
<div class="card-footer d-flex justify-content-between">
|
|
<div class="card-footer d-flex justify-content-between">
|
|
- <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>Manage</a>
|
|
|
|
|
|
+ <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>{{__('Manage')}}</a>
|
|
@if(!empty(env('PHPMYADMIN_URL')))
|
|
@if(!empty(env('PHPMYADMIN_URL')))
|
|
- <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>Database</a>
|
|
|
|
|
|
+ <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>{{__('Database')}}</a>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -115,7 +114,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
function submitResult() {
|
|
function submitResult() {
|
|
- return confirm("Are you sure you wish to delete?") !== false;
|
|
|
|
|
|
+ return confirm("{{__('Are you sure you wish to delete?')}}") !== false;
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@endsection
|
|
@endsection
|