<?php $__env->startSection('content'); ?>
<div class="mb-4">
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="<?php echo e(route('documents.index')); ?>">সব প্রতিষ্ঠান</a></li>
            <li class="breadcrumb-item active"><?php echo e($company->name); ?></li>
        </ol>
    </nav>
    
    <div class="d-flex justify-content-between align-items-center">
        <h2><i class="fas fa-folder-open"></i> <?php echo e($company->name); ?></h2>
        <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#uploadModal" 
                onclick="setCompanyId(<?php echo e($company->id); ?>)">
            <i class="fas fa-upload"></i> নতুন ডকুমেন্ট আপলোড
        </button>
    </div>
</div>

<div class="row">
    <?php $__currentLoopData = $documentTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="col-md-3 mb-4">
        <div class="card folder-card" style="border-left: 4px solid <?php echo e($type->color); ?>">
            <div class="card-body">
                <div class="d-flex justify-content-between align-items-start">
                    <div>
                        <i class="fas <?php echo e($type->icon); ?> fa-2x" style="color: <?php echo e($type->color); ?>"></i>
                        <h6 class="mt-2"><?php echo e($type->name); ?></h6>
                        <small class="text-muted">
                            <i class="fas fa-file"></i> <?php echo e($type->document_count); ?> টি
                        </small>
                        <?php if($type->expiring_count > 0): ?>
                            <span class="badge bg-warning ms-2"><?php echo e($type->expiring_count); ?> টি মেয়াদ শেষ হবে</span>
                        <?php endif; ?>
                    </div>
                </div>
                
                <a href="<?php echo e(route('documents.financial-years', [$company, $type])); ?>" 
                   class="btn btn-sm btn-outline-primary mt-3 w-100">
                    <i class="fas fa-calendar"></i> অর্থবছর দেখুন
                </a>
            </div>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>

<?php echo $__env->make('documents.partials.upload-modal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script>
function setCompanyId(id) {
    $('#uploadModal').data('company-id', id);
}
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/naowarin/mydoc.naowarinternational.my.id/resources/views/documents/company-folders.blade.php ENDPATH**/ ?>