@extends('layouts.app') @section('content')
| Name | Type | Status | Last Tested | Last Upload | Default | Actions |
|---|---|---|---|---|---|---|
|
{{ $destination->name }}
@if($destination->is_default)
Default
@endif
|
{{ strtoupper($destination->type) }} | @if($destination->is_active) Active @else Inactive @endif | @if($destination->last_tested_at) {{ \Carbon\Carbon::parse($destination->last_tested_at)->diffForHumans() }} @if($destination->test_passed === true) Pass @elseif($destination->test_passed === false) Fail @endif @else Not tested @endif |
@php
$config = json_decode($destination->config, true);
$lastUpload = $config['last_upload'] ?? null;
$freeSpace = $config['free_space'] ?? null;
@endphp
@if($lastUpload)
{{ \Carbon\Carbon::parse($lastUpload)->diffForHumans() }}
@else
Never
@endif
@if($freeSpace)
{{ number_format($freeSpace / 1024 / 1024 / 1024, 2) }} GB free
@endif
|
@if($destination->is_default) @else @endif |
|
| No destinations configured. Add your first storage destination. | ||||||