@extends('layouts.admin') @section('title', __('admin.backups')) @section('breadcrumb', __('admin.group.settings')) @section('content') @php // Header sorting re-uses the whitelisted sort keys of the controller. $sortLink = fn (string $key) => route('admin.backups.index', array_filter([ 'q' => $search !== '' ? $search : null, 'type' => $type !== 'all' ? $type : null, 'sort' => $key, 'per_page' => request()->filled('per_page') ? per_page() : null, ], fn ($value) => filled($value))); $headState = function (string $descKey, string $ascKey) use ($sort): array { $isDesc = $sort === $descKey; $isAsc = $sort === $ascKey; return [ 'active' => $isDesc || $isAsc, 'desc' => $isDesc, 'aria' => $isDesc ? 'descending' : ($isAsc ? 'ascending' : 'none'), 'next' => $isAsc ? $descKey : $ascKey, ]; }; @endphp
| {{ __('admin.backup') }} | {{ __('admin.type') }} | {{ __('admin.size') }} | {{ __('admin.note') }} | {{ __('admin.created_at') }} | {{ __('admin.actions') }} |
|---|---|---|---|---|---|
|
{{ $backup->name }}
{{ $backup->created_by ? __('admin.by_user', ['name' => $backup->created_by]) : __('admin.by_system') }}
@unless ($exists)
ยท {{ __('admin.backup_missing') }}
@endunless
|
{{ $backup->type_label }} | {{ $backup->human_size }} | {{ $backup->note ?: 'โ' }} | {{ $backup->created_at?->format('Y-m-d H:i') }} {{ $backup->created_at?->diffForHumans() }} |
{{ __('admin.backup_storage_hint') }}
{{ 'storage/app/backups' }}