@include('header')
@include('functions')
<div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">Backup Management</div>

                    <div class="card-body">
                        <h5>Backup List</h5>
                        <ul>
                            @foreach($backups as $backup)
                                <li>{{ $backup['name'] }}</li>
                                <a href="{{ route('backup.download', $backup['name']) }}">Download</a>
                                <a href="{{ route('backup.delete', $backup['name']) }}">Delete</a>
                            @endforeach
                        </ul>
                        <hr>
                        <h5>Create Backup</h5>
                        <form action="{{ route('backup.create') }}" method="POST">
                            @csrf
                            <button type="submit">Create Backup</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>