<?php if(isset($assignment) && !empty($assignment)): ?>
    <div class="dropdown">
        <button type="button" class="btn p-0 dropdown-toggle hide-arrow" data-bs-toggle="dropdown">
            <i class="bx bx-dots-vertical-rounded"></i>
        </button>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="<?php echo e(route('edit.assignment', ['assignment' => $assignment->encrypted_id])); ?>">
                <i class="bx bx-edit-alt me-1"></i> Edit
            </a>
            <a class="dropdown-item"
                href="<?php echo e(route('manage.assignment.files', ['assignment' => $assignment->encrypted_id])); ?>">
                <i class="bx bx-upload me-1 text-info"></i>
                Manage Assignment Files
            </a>
            <a class="dropdown-item"
                href="<?php echo e(route('manage.why.choose.content', ['assignment' => $assignment->encrypted_id])); ?>">
                <i class="bx bx-badge-check me-1 text-success"></i> Manage Why Choose Us Content
            </a>
            
            <button class="dropdown-item" onclick="delete_item('<?= $model ?>', '<?= $assignment->encrypted_id ?>');">
                <i class="bx bx-trash me-1 text-danger"></i> Delete
            </button>
        </div>
    </div>
<?php endif; ?>

<?php if(isset($project) && !empty($project)): ?>
    <div class="dropdown">
        <button type="button" class="btn p-0 dropdown-toggle hide-arrow" data-bs-toggle="dropdown">
            <i class="bx bx-dots-vertical-rounded"></i>
        </button>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="<?php echo e(route('edit.project', ['project' => $project->encrypted_id])); ?>">
                <i class="bx bx-edit-alt me-1"></i> Edit
            </a>
            <a class="dropdown-item" href="<?php echo e(route('manage.project.files', ['project' => $project->encrypted_id])); ?>">
                <i class="bx bx-upload me-1 text-info"></i>
                Manage Project Files
            </a>
            <a class="dropdown-item"
                href="<?php echo e(route('manage.project.why.choose.content', ['project' => $project->encrypted_id])); ?>">
                <i class="bx bx-badge-check me-1 text-success"></i> Manage Why Choose Us Content
            </a>
            
            <button class="dropdown-item" onclick="delete_item('<?= $model ?>', '<?= $project->encrypted_id ?>');">
                <i class="bx bx-trash me-1 text-danger"></i> Delete
            </button>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH D:\github-backend\excelsius-ignou-api\resources\views/admin/components/action.blade.php ENDPATH**/ ?>