<?php if (isset($component)) { $__componentOriginalb3b4e25e31274b83c23af9eed7c9e4b9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb3b4e25e31274b83c23af9eed7c9e4b9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.portal-layout','data' => ['title' => 'Notifikasi']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Notifikasi']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

    <section class="rounded-lg bg-white p-5 shadow-sm">
        <div class="text-sm text-slate-500">Pusat notifikasi</div>
        <h1 class="text-2xl font-semibold"><?php echo e($customer->name); ?></h1>
    </section>

    <section class="mt-4 rounded-lg bg-white p-5 shadow-sm">
        <h2 class="font-semibold">Update Terbaru</h2>
        <div class="mt-3 divide-y text-sm">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                <form method="post" action="<?php echo e(route('portal.notifications.read', $notification)); ?>" class="py-3">
                    <?php echo csrf_field(); ?>
                    <button class="block w-full text-left">
                        <div class="flex items-start justify-between gap-3">
                            <div>
                                <div class="font-medium <?php echo e($notification->read_at ? 'text-slate-600' : 'text-slate-950'); ?>"><?php echo e($notification->title); ?></div>
                                <div class="mt-1 text-slate-500"><?php echo e($notification->body); ?></div>
                            </div>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if (! ($notification->read_at)): ?>
                                <span class="mt-1 h-2.5 w-2.5 shrink-0 rounded-full bg-red-500"></span>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                        <div class="mt-2 text-xs text-slate-400"><?php echo e($notification->created_at->diffForHumans()); ?></div>
                    </button>
                </form>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                <div class="py-3 text-slate-500">Belum ada notifikasi.</div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </section>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb3b4e25e31274b83c23af9eed7c9e4b9)): ?>
<?php $attributes = $__attributesOriginalb3b4e25e31274b83c23af9eed7c9e4b9; ?>
<?php unset($__attributesOriginalb3b4e25e31274b83c23af9eed7c9e4b9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb3b4e25e31274b83c23af9eed7c9e4b9)): ?>
<?php $component = $__componentOriginalb3b4e25e31274b83c23af9eed7c9e4b9; ?>
<?php unset($__componentOriginalb3b4e25e31274b83c23af9eed7c9e4b9); ?>
<?php endif; ?>
<?php /**PATH /Users/dedehermawan/Dokumen/project/laundry/resources/views/portal/notifications.blade.php ENDPATH**/ ?>