<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <div class="d-flex flex-wrap justify-content-between align-items-center gap-3">
            <div>
                <h2 class="h4 mb-1">Plugin Manager</h2>
            </div>
            <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#installPluginModal"><i data-feather="upload" class="icon-xs me-1"></i> Install Plugin</button>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="row g-3">
        <?php $__empty_1 = true; $__currentLoopData = $plugins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plugin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <div class="col-md-6 col-xl-4">
                <div class="card border-0 shadow-sm h-100">
                    <div class="card-body d-flex flex-column">
                        <div class="d-flex align-items-start justify-content-between gap-2 mb-3">
                            <div class="d-flex align-items-center gap-2"><span class="rounded-3 bg-primary-subtle text-primary p-2"><i data-feather="package"></i></span><div><h3 class="h6 mb-0"><?php echo e($plugin->name); ?></h3><small class="text-muted">v<?php echo e($plugin->version); ?></small></div></div>
                            <span class="badge <?php echo e($plugin->is_enabled ? 'text-bg-success' : 'text-bg-secondary'); ?>"><?php echo e($plugin->is_enabled ? 'Enabled' : 'Disabled'); ?></span>
                        </div>
                        <div class="d-flex justify-content-between align-items-center border-top pt-3 mt-auto"><code class="small"><?php echo e($plugin->slug); ?></code><?php if($plugin->is_core): ?><span class="badge text-bg-light border">Core</span><?php else: ?><form method="POST" action="<?php echo e(route('admin.plugins.toggle', $plugin)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('PATCH'); ?><button class="btn btn-sm <?php echo e($plugin->is_enabled ? 'btn-outline-secondary' : 'btn-outline-success'); ?>"><?php echo e($plugin->is_enabled ? 'Disable' : 'Enable'); ?></button></form><?php endif; ?></div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <div class="col-12"><div class="card border-0 shadow-sm"><div class="card-body text-center py-5 text-muted">No plugins found. The core module manifests will appear after the first sync.</div></div></div>
        <?php endif; ?>
    </div>

    <div class="modal fade" id="installPluginModal" tabindex="-1" aria-hidden="true"><div class="modal-dialog modal-dialog-centered"><form class="modal-content" method="POST" action="<?php echo e(route('admin.plugins.install')); ?>" enctype="multipart/form-data"><?php echo csrf_field(); ?><div class="modal-header"><h5 class="modal-title">Install Plugin ZIP</h5><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div><div class="modal-body"><label class="form-label">Signed plugin package</label><input type="file" name="plugin" accept=".zip,application/zip" class="form-control" required><div class="form-text">Maximum <?php echo e(config('plugins.max_upload_kilobytes') / 1024); ?> MB. The ZIP must include a root plugin.json manifest.</div></div><div class="modal-footer"><button type="button" class="btn btn-light" data-bs-dismiss="modal">Cancel</button><button class="btn btn-primary">Install safely</button></div></form></div></div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH D:\herd\billing\laravel-app\resources\views/admin/plugins/index.blade.php ENDPATH**/ ?>