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

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

{{ __('client.hosting.backups.subtitle') }}
{{ $policy['count'] }} {{ __('client.hosting.backups.points') }}
@if(! $policy['enabled'])
{{ __('client.hosting.backups.plan_disabled') }}
@elseif(empty($domains))
{{ __('client.hosting.backups.no_domains') }}
@else
{{ __('client.hosting.backups.create_title') }}
@csrf
{{ __('client.hosting.backups.create_hint') }}
{{ __('client.hosting.backups.restore_points') }}
@if(empty($backups))
{{ __('client.hosting.backups.empty') }}
@else
@foreach($backups as $b) {{-- A small archive is not "0.0 MB"; show the unit that actually reads. --}} @endforeach
{{ __('client.hosting.backups.created') }} {{ __('client.hosting.backups.contents') }} {{ __('client.hosting.backups.size') }} {{ __('common.table.actions') }}
{{ $b['created_at'] ? \Illuminate\Support\Carbon::parse($b['created_at'])->format('d M Y H:i') : '—' }}
{{ $b['name'] ?: $b['filename'] }}
{{ implode(', ', $b['domains']) }}
{{ $b['type'] === 'incremental' ? __('client.hosting.backups.incremental') : __('client.hosting.backups.full') }} @if($b['encrypted']) {{ __('client.hosting.backups.encrypted') }}@endif
@php($mb = (float) $b['size_mb']) @if($mb >= 1024) {{ number_format($mb / 1024, 2) }} GB @elseif($mb >= 1) {{ number_format($mb, 1) }} MB @elseif($mb > 0) {{ number_format($mb * 1024, $mb * 1024 >= 100 ? 0 : 1) }} KB @else — @endif
{{-- Archives run to gigabytes; the panel serves the file directly instead of streaming it through billing. SSO puts the customer one click away. --}}
@csrf
{{ __('client.hosting.backups.restore_hint') }}
@endif
@endif @endsection