<div class="card-v">
    <ul class="list-group list-group-flush">
        <li class="list-group-item py-3 px-0">
            <div class="row align-items-center g-3">
                <div class="col">
                    <strong><?php echo e(translate('ID')); ?></strong>
                </div>
                <div class="col-auto">
                    <span>#<?php echo e($item->id); ?></span>
                </div>
            </div>
        </li>
        <li class="list-group-item py-3 px-0">
            <div class="row align-items-center g-3">
                <div class="col">
                    <strong><?php echo e(translate('Name')); ?></strong>
                </div>
                <div class="col-auto">
                    <span><?php echo e($item->name); ?></span>
                </div>
            </div>
        </li>
        <li class="list-group-item py-3 px-0">
            <div class="row align-items-center g-3">
                <div class="col">
                    <strong><?php echo e(translate('Category')); ?></strong>
                </div>
                <div class="col-auto">
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb justify-content-center m-0">
                            <li class="breadcrumb-item">
                                <a href="<?php echo e(route('categories.category', $item->category->slug)); ?>"
                                    target="_blank"><?php echo e($item->category->name); ?></a>
                            </li>
                            <?php if($item->subCategory): ?>
                                <li class="breadcrumb-item">
                                    <a href="<?php echo e(route('categories.sub-category', [$item->category->slug, $item->subCategory->slug])); ?>"
                                        target="_blank"><?php echo e($item->subCategory->name); ?></a>
                                </li>
                            <?php endif; ?>
                        </ol>
                    </nav>
                </div>
            </div>
        </li>
        <li class="list-group-item py-3 px-0">
            <div class="row align-items-center g-3">
                <div class="col">
                    <strong><?php echo e(translate('Status')); ?></strong>
                </div>
                <div class="col-auto">
                    <?php if($item->isPending()): ?>
                        <div class="badge bg-orange rounded-2 fw-light px-3 py-2">
                            <?php echo e($item->getStatusName()); ?>

                        </div>
                    <?php elseif($item->isSoftRejected()): ?>
                        <div class="badge bg-purple rounded-2 fw-light px-3 py-2">
                            <?php echo e($item->getStatusName()); ?>

                        </div>
                    <?php elseif($item->isResubmitted()): ?>
                        <div class="badge bg-blue rounded-2 fw-light px-3 py-2">
                            <?php echo e($item->getStatusName()); ?>

                        </div>
                    <?php elseif($item->isApproved()): ?>
                        <div class="badge bg-green rounded-2 fw-light px-3 py-2">
                            <?php echo e($item->getStatusName()); ?>

                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </li>
        <?php if($item->last_update_at): ?>
            <li class="list-group-item py-3 px-0">
                <div class="row align-items-center g-3">
                    <div class="col">
                        <strong><?php echo e(translate('Last Update')); ?></strong>
                    </div>
                    <div class="col-auto">
                        <span><?php echo e(dateFormat($item->last_update_at)); ?></span>
                    </div>
                </div>
            </li>
        <?php endif; ?>
        <li class="list-group-item py-3 px-0">
            <div class="row align-items-center g-3">
                <div class="col">
                    <strong><?php echo e(translate('Published Date')); ?></strong>
                </div>
                <div class="col-auto">
                    <span><?php echo e(dateFormat($item->created_at)); ?></span>
                </div>
            </div>
        </li>
        <?php if($item->isApproved()): ?>
            <li class="list-group-item py-3 px-0">
                <div class="row row-cols-1 g-3">
                    <div class="col">
                        <a href="<?php echo e($item->getLink()); ?>" target="_blank"
                            class="btn btn-outline-secondary btn-md w-100">
                            <i class="fa-solid fa-up-right-from-square me-1"></i>
                            <?php echo e(translate('View Item')); ?>

                        </a>
                    </div>
                    <div class="col">
                        <?php if($item->isMainFileExternal()): ?>
                            <a href="<?php echo e($item->main_file); ?>" target="_blank" class="btn btn-primary btn-md w-100">
                                <i class="fa fa-download me-2"></i>
                                <?php echo e(translate('Download')); ?></a>
                        <?php else: ?>
                            <form action="<?php echo e(route('workspace.items.download', $item->id)); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <button class="btn btn-primary btn-md w-100">
                                    <i class="fa fa-download me-2"></i>
                                    <?php echo e(translate('Download')); ?>

                                </button>
                            </form>
                        <?php endif; ?>
                    </div>
                </div>
            </li>
        <?php endif; ?>
    </ul>
</div>
<?php /**PATH /home/gxramdau/public_html/resources/views/themes/basic/workspace/items/includes/sidebar.blade.php ENDPATH**/ ?>