@extends('layouts.admin') @section('title', __('operations.title')) @section('content') @if(auth()->user()->role !== 'reader')

{{ __('operations.discover') }}

@csrf

{{ __('operations.automation') }}

{{ __('operations.automation_hint') }}

@csrf
@foreach($schedules as $schedule)

{{ __('operations.kind.'.$schedule->subject_type) }} #{{ $schedule->subject_id }} · {{ $schedule->interval_hours }} h · {{ $schedule->is_enabled ? __('operations.enabled') : __('operations.disabled') }}

@endforeach
@endif

{{ __('operations.tasks') }}

@forelse($tasks as $task)@empty@endforelse
{{ __('operations.operation') }}{{ __('operations.status_label') }}{{ __('operations.date') }}
#{{ $task->id }} · {{ __('operations.operation_names.'.$task->operation) }}{{ __('operations.status.'.$task->status) }}{{ $task->created_at->format('d/m/Y H:i') }}
{{ __('operations.empty') }}
{{ $tasks->links() }}
@if(auth()->user()->isAdmin())

{{ __('operations.backups') }}

{{ __('operations.backup_hint') }}

@foreach(['backup','integrity'] as $operation)
@csrf
@endforeach
@foreach($backups as $backup)

{{ $backup['filename'] }} · {{ number_format($backup['bytes']/1024, 0) }} KiB

@endforeach
@endif @endsection