<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>QualityFlow - Final Selection</title>
    <link rel="icon" type="image/png" href="<?php echo e(asset('gplogofinal.png')); ?>">
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap" rel="stylesheet">
    
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f5f6f8; /* Light gray background */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Hide specific navbar elements for this view */
        #navScanNext {
            display: none !important;
        }

        /* Large selection cards container */
        .selection-cards-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            max-width: 1800px;
            flex-grow: 1;
            padding: 2rem 1rem 4rem 1rem;
            flex-wrap: wrap; 
        }

        /* Shared Card Styling */
        .final-card {
            flex: 1;
            min-width: 320px;
            max-width: 750px;
            height: 800px;
            border-radius: 28px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        }

        .final-card:hover {
            transform: translateY(-8px);
        }
        
        /* Rework Card Specifics (Blue) */
        .card-rework {
            background-color: #f0f7ff; /* Brand light blue tint */
            border: 4px solid #bfdbfe;
        }

        .card-rework:hover {
            box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
            border-color: #93c5fd;
        }

        .icon-rework-circle {
            background-color: #2563eb; /* Brand blue */
            width: 140px;
            height: 140px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2.5rem;
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }

        .title-rework {
            color: #1d4ed8;
            font-size: 3.2rem;
            font-weight: 900;
            margin: 0;
            text-align: center;
            line-height: 1.1;
        }

        .subtitle-rework {
            color: #3b82f6;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-top: 1rem;
        }

        /* Confirmation Card Specifics (Red) */
        .card-confirm {
            background-color: #fff1f2; /* Brand light red tint */
            border: 4px solid #fecaca;
        }

        .card-confirm:hover {
            box-shadow: 0 20px 40px rgba(220, 38, 38, 0.12);
            border-color: #fca5a5;
        }

        .icon-confirm-circle {
            background-color: #dc2626; /* Brand red */
            width: 140px;
            height: 140px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2.5rem;
            box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
        }

        .title-confirm {
            color: #991b1b;
            font-size: 3.2rem;
            font-weight: 900;
            margin: 0;
            text-align: center;
            line-height: 1.1;
        }

        .subtitle-confirm {
            color: #ef4444;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-top: 1rem;
        }

        /* Icons */
        .final-icon {
            color: white;
            font-size: 5rem;
        }

    </style>
</head>
<body>

    <?php
        $emp_checker = session('endline_checker');
        $emp_id_from_session = $emp_checker ? $emp_checker['employee_id'] : '';
    ?>

    <!-- Injecting the navigation bar blade components -->
    <?php echo $__env->make('Quality.Endline_nav', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <!-- Selection Cards -->
    <div class="selection-cards-container">
        
        <!-- Change to Rework Card -->
        <a href="<?php echo e(route('endline.tablepage')); ?>" id="reworkActionCard" class="final-card card-rework">
            <div class="icon-rework-circle">
                <i class="bi bi-arrow-90deg-left final-icon"></i>
            </div>
            <h1 class="title-rework">CHANGE TO REWORK</h1>
            <span class="subtitle-rework">SEND FOR REPAIR INSTEAD</span>
        </a>

        <!-- Confirm Rejection Card -->
        <a href="<?php echo e(route('endline.tablepage')); ?>" id="confirmRejectCard" class="final-card card-confirm">
            <div class="icon-confirm-circle">
                <i class="bi bi-check-circle final-icon"></i>
            </div>
            <h1 class="title-confirm">CONFIRM REJECTION</h1>
            <span class="subtitle-confirm">PROCEED TO NEXT ITEM</span>
        </a>

    </div>

    <!-- External Script Dependencies (jQuery & Bootstrap) -->
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        $(document).ready(function() {
            console.log("Final Selection page initialized.");
            $('#garmentIdDiv').addClass('d-none');
        });
    </script>
</body>
</html>
<?php /**PATH C:\Apache24\htdocs\Quality_Endline\Endline\resources\views/Quality/Endline_finalselection.blade.php ENDPATH**/ ?>