<div class="btn-group" role="group">
    <a href="<?php echo e(route('qcs.show', $qc->id)); ?>" class="btn btn-sm btn-info" title="View Details">
        <i class="fas fa-eye"></i>
    </a>

    <?php if($qc->status === 'pending'): ?>
        <a href="<?php echo e(route('qcs.create', ['grn' => $qc->grn_id])); ?>" class="btn btn-sm btn-primary" title="Start QC Inspection">
            <i class="fas fa-clipboard-check"></i>
        </a>
    <?php elseif($qc->status === 'in_progress'): ?>
        <a href="<?php echo e(route('qcs.create', ['grn' => $qc->grn_id])); ?>" class="btn btn-sm btn-warning" title="Continue QC Inspection">
            <i class="fas fa-edit"></i>
        </a>
    <?php elseif($qc->status === 'completed'): ?>
        <?php if(!$qc->stock_added): ?>
            <button class="btn btn-sm btn-success" title="Add to Stock" onclick="addToStock(<?php echo e($qc->id); ?>)">
                <i class="fas fa-warehouse"></i>
            </button>
        <?php endif; ?>
        <a href="<?php echo e(route('qcs.show', [$qc->id, 'tab' => 'stock'])); ?>" class="btn btn-sm btn-secondary" title="View Stock Details">
            <i class="fas fa-boxes"></i>
        </a>
    <?php endif; ?>

    <?php if(in_array($qc->status, ['pending', 'in_progress'])): ?>
        <button class="btn btn-sm btn-danger" title="Cancel QC" onclick="cancelQc(<?php echo e($qc->id); ?>)">
            <i class="fas fa-times"></i>
        </button>
    <?php endif; ?>
</div>
<?php /**PATH C:\laragon\www\habibcables-ERP\resources\views\qcs\partials\actions.blade.php ENDPATH**/ ?>