@extends('admin::layouts.vuexy.layoutMaster')

@section('title', 'Ajustes de caché')

@section('page-script')
    @vite('modules/Admin/Resources/js/cache-manager/cache-scripts.js')
@endsection

@section('content')
    <div class="row">
        <div class="col-md-4">
            <div class="mb-6">
                @livewire('cache-stats')
            </div>
            <div class="mb-6">
                @livewire('session-stats')
            </div>
        </div>
        <div class="col-md-8">
            <div class="mb-6">
                @livewire('cache-functions')
            </div>
            <div class="row">
                @if($configCache['redisInUse'])
                    <div class="col-md-6">
                        <div class="mb-6">
                            @livewire('redis-stats')
                        </div>
                    </div>
                @endif
                @if($configCache['memcachedInUse'])
                    <div class="col-md-6">
                        <div class="mb-6">
                            @livewire('memcached-stats')
                        </div>
                    </div>
                @endif
            </div>
        </div>
    </div>
@endsection
