

















































<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg border-t-4 border-cyan-500">
    <div class="p-6">
        <h3 class="text-lg font-semibold text-gray-900 dark:text-white">
            <i class="fa fa-bullhorn text-cyan-500 ml-2"></i>
            بورد اطلاعیه‌های تیم
        </h3>

        <div class="mt-4 space-y-4">
            <!--[if BLOCK]><![endif]--><?php $__empty_1 = true; $__currentLoopData = $announcements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $announcement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <?php
                    $levelClasses = [
                        'info' => 'bg-blue-50 dark:bg-blue-900/50 border-blue-400',
                        'warning' => 'bg-yellow-50 dark:bg-yellow-900/50 border-yellow-400',
                        'danger' => 'bg-red-50 dark:bg-red-900/50 border-red-400',
                    ][$announcement->level] ?? 'bg-gray-50 dark:bg-gray-700/50 border-gray-400';
                ?>
                <div x-data="{ expanded: false }" class="p-4 rounded-lg border-r-4 <?php echo e($levelClasses); ?>">
                    <div class="flex items-center justify-between">
                        <p class="font-semibold text-gray-800 dark:text-gray-200"><?php echo e($announcement->title); ?></p>
                        <!--[if BLOCK]><![endif]--><?php if($announcement->is_pinned): ?>
                            <?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lucide-pin'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-4 h-4 text-gray-500']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>

                    <p class="mt-2 text-sm text-gray-600 dark:text-gray-300"
                       x-ref="body"
                       :class="{ 'line-clamp-2': !expanded }">
                        <?php echo e($announcement->body); ?>

                    </p>

                    <div x-data="{ isClamped: false }"
                         x-init="isClamped = ($refs.body.scrollHeight > $refs.body.clientHeight)"
                         x-show="isClamped"
                         class="mt-2">
                        <button @click="expanded = !expanded" class="text-xs font-semibold text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
                            <span x-show="!expanded">بیشتر بخوانید</span>
                            <span x-show="expanded" style="display: none;">بستن</span>
                        </button>
                    </div>

                    
                    <!--[if BLOCK]><![endif]--><?php if($announcement->attachment_path): ?>
                        <div class="mt-3 pt-3 border-t border-gray-200 dark:border-gray-600">
                            <a href="<?php echo e(Storage::url($announcement->attachment_path)); ?>" target="_blank" class="inline-flex items-center text-xs font-medium text-blue-600 hover:underline">
                                <?php if (isset($component)) { $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c = $attributes; } ?>
<?php $component = BladeUI\Icons\Components\Svg::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lucide-paperclip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\BladeUI\Icons\Components\Svg::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-3 h-3 ml-1']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $attributes = $__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__attributesOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c)): ?>
<?php $component = $__componentOriginal643fe1b47aec0b76658e1a0200b34b2c; ?>
<?php unset($__componentOriginal643fe1b47aec0b76658e1a0200b34b2c); ?>
<?php endif; ?>
                                دانلود فایل پیوست (<?php echo e($announcement->attachment_name); ?>)
                            </a>
                        </div>
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

                    <p class="mt-3 text-xs text-gray-500 dark:text-gray-400 text-left">
                        توسط <?php echo e($announcement->user->name); ?> در تیم <?php echo e($announcement->team->name); ?> - <?php echo e(verta($announcement->created_at)->formatDifference()); ?>

                    </p>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="text-center py-8">
                    <i class="fa fa-check-circle text-gray-400 text-4xl mx-auto"></i>
                    <p class="mt-2 text-sm text-gray-500">در حال حاضر اطلاعیه جدیدی وجود ندارد.</p>
                </div>
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </div>
    </div>
</div>
<?php /**PATH D:\wamp64\www\benchsync\resources\views/livewire/team-announcements-widget.blade.php ENDPATH**/ ?>