@extends("client.layouts.app") @section("title", __('client.hosting.ftp.title')) @section("content") {{ $service->product?->name ?? __('client.services.title') }}

{{ __('client.hosting.ftp.title') }}

{{ __('client.hosting.ftp.subtitle') }}
{{ $policy['max'] < 0 ? $policy['used'].' / ∞' : $policy['used'].' / '.$policy['max'] }}
@if(!empty($ftpHost))
{{ __('client.hosting.ftp.connection') }}
{{ __('client.hosting.ftp.host') }}
{{ $ftpHost }}
{{ __('client.hosting.ftp.port') }}
21
{{ __('client.hosting.ftp.protocol') }}
FTP / FTPS (TLS)
{{ __('client.hosting.ftp.protocol_hint') }}
@endif {{-- Create (only when the plan allows it) --}}
{{ __('client.hosting.ftp.create_title') }}
@if(! $policy['enabled'])
{{ __('client.hosting.ftp.plan_disabled') }}
@elseif(! $policy['can_create'])
{{ __('client.hosting.ftp.limit_reached') }} ({{ $policy['used'] }}/{{ $policy['max'] }})
@else
@csrf
@endif
{{ __('client.hosting.ftp.accounts') }}
@if(empty($accounts))
{{ __('client.hosting.ftp.empty') }}
@else
@foreach($accounts as $f) @endforeach
{{ __('client.hosting.ftp.username') }}{{ __('client.hosting.ftp.home') }}{{ __('client.hosting.ftp.usage') }}{{ __('common.table.status') }}{{ __('common.table.actions') }}
{{ $f['username'] }} {{ $f['home'] ?: '—' }} {{ number_format($f['used_mb']) }} @if($f['quota_mb'] > 0)/ {{ number_format($f['quota_mb']) }} MB @else MB @endif {{ $f['status'] ?: 'active' }}
{{ __('client.hosting.ftp.change_password') }}
@csrf
@csrf
@endif
@endsection