

<?php $__env->startSection('title', 'Requirements Check'); ?>

<?php $__env->startSection('content'); ?>
<div class="text-center mb-6">
    <h2 class="text-2xl font-bold text-gray-800">System Requirements</h2>
    <p class="text-gray-600 mt-2">Please ensure your server meets the following requirements</p>
</div>

<div class="space-y-3 mb-8">
    <?php $__currentLoopData = $requirements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $requirement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="flex items-center justify-between p-4 rounded-lg <?php echo e($requirement['met'] ? 'bg-green-50 border border-green-200' : 'bg-red-50 border border-red-200'); ?>">
        <div class="flex items-center">
            <div class="w-8 h-8 rounded-full flex items-center justify-center mr-3 <?php echo e($requirement['met'] ? 'bg-green-500 text-white' : 'bg-red-500 text-white'); ?>">
                <i class="fas <?php echo e($requirement['met'] ? 'fa-check' : 'fa-times'); ?>"></i>
            </div>
            <span class="font-medium <?php echo e($requirement['met'] ? 'text-gray-800' : 'text-red-700'); ?>"><?php echo e($requirement['name']); ?></span>
        </div>
        <span class="text-sm <?php echo e($requirement['met'] ? 'text-green-600' : 'text-red-600'); ?>"><?php echo e($requirement['current']); ?></span>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>

<?php
    $allMet = collect($requirements)->every(fn($r) => $r['met']);
?>

<?php if($allMet): ?>
    <div class="bg-green-50 border border-green-200 rounded-lg p-4 mb-6">
        <div class="flex items-center">
            <i class="fas fa-check-circle text-green-500 text-xl mr-3"></i>
            <div>
                <p class="font-semibold text-green-800">All requirements met!</p>
                <p class="text-sm text-green-600">Your server is ready for installation.</p>
            </div>
        </div>
    </div>

    <div class="text-center">
        <a href="<?php echo e(route('install.database')); ?>" class="inline-flex items-center bg-purple-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-purple-700 transition">
            Start Installation
            <i class="fas fa-arrow-right ml-2"></i>
        </a>
    </div>
<?php else: ?>
    <div class="bg-red-50 border border-red-200 rounded-lg p-4 mb-6">
        <div class="flex items-center">
            <i class="fas fa-exclamation-triangle text-red-500 text-xl mr-3"></i>
            <div>
                <p class="font-semibold text-red-800">Requirements not met</p>
                <p class="text-sm text-red-600">Please fix the issues above before continuing.</p>
            </div>
        </div>
    </div>

    <div class="text-center">
        <button disabled class="inline-flex items-center bg-gray-400 text-white px-8 py-3 rounded-lg font-semibold cursor-not-allowed">
            Start Installation
            <i class="fas fa-arrow-right ml-2"></i>
        </button>
    </div>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('install.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\saber\Desktop\autoparts-multivendor (1)\autoparts-multivendor\resources\views/install/welcome.blade.php ENDPATH**/ ?>