@extends("client.layouts.app") @section("title", __('client.hosting.backups.title')) @section("content") {{ $service->product?->name ?? __('client.services.title') }}
| {{ __('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
|
{{-- A small archive is not "0.0 MB"; show the unit that actually reads. --}}
@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 |