<?php if (isset($component)) { $__componentOriginal3f11930a8702d3d700513f5d743b90ca = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3f11930a8702d3d700513f5d743b90ca = $attributes; } ?>
<?php $component = App\View\Components\TenantLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tenant-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(\App\View\Components\TenantLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <div class="flex items-center justify-between">
            <h2 class="text-xl font-semibold text-gray-800">
                Notification Details
            </h2>
            <a href="<?php echo e(route('tenant.notifications.index')); ?>" 
               class="text-gray-600 hover:text-gray-800">
                ← Back to Notifications
            </a>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
        <?php if($notification): ?>
            <div class="bg-white shadow-sm rounded-lg">
                <!-- Notification Header -->
                <div class="p-6 border-b border-gray-200">
                    <div class="flex items-start justify-between">
                        <div class="flex items-center">
                            <div class="flex-shrink-0">
                                <div class="inline-flex items-center justify-center w-12 h-12 rounded-full
                                    <?php if($notification->type === 'info'): ?> bg-blue-100 text-blue-600
                                    <?php elseif($notification->type === 'success'): ?> bg-green-100 text-green-600
                                    <?php elseif($notification->type === 'warning'): ?> bg-yellow-100 text-yellow-600
                                    <?php elseif($notification->type === 'error'): ?> bg-red-100 text-red-600
                                    <?php else: ?> bg-gray-100 text-gray-600 <?php endif; ?>">
                                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                        <?php if($notification->type === 'info'): ?>
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                                        <?php elseif($notification->type === 'success'): ?>
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                                        <?php elseif($notification->type === 'warning'): ?>
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 15.5c-.77.833.192 2.5 1.732 2.5z"></path>
                                        <?php elseif($notification->type === 'error'): ?>
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                                        <?php else: ?>
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                                        <?php endif; ?>
                                    </svg>
                                </div>
                            </div>
                            <div class="ml-4">
                                <h1 class="text-2xl font-bold text-gray-900"><?php echo e($notification->title); ?></h1>
                                <div class="mt-1 flex items-center space-x-4 text-sm text-gray-500">
                                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium
                                        <?php if($notification->type === 'info'): ?> bg-blue-100 text-blue-600
                                        <?php elseif($notification->type === 'success'): ?> bg-green-100 text-green-600
                                        <?php elseif($notification->type === 'warning'): ?> bg-yellow-100 text-yellow-600
                                        <?php elseif($notification->type === 'error'): ?> bg-red-100 text-red-600
                                        <?php else: ?> bg-gray-100 text-gray-600 <?php endif; ?>">
                                        <?php echo e(ucfirst($notification->type)); ?>

                                    </span>
                                    <span>From: Admin</span>
                                    <span><?php echo e($notification->sent_at->format('M j, Y g:i A')); ?></span>
                                </div>
                            </div>
                        </div>
                        <div class="flex-shrink-0 ml-4">
                            <?php if(!$notification->is_read): ?>
                                <form method="POST" action="<?php echo e(route('tenant.notifications.read', $notification->id)); ?>" class="inline">
                                    <?php echo csrf_field(); ?>
                                    <button type="submit" class="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700 text-sm">
                                        Mark as Read
                                    </button>
                                </form>
                            <?php else: ?>
                                <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800">
                                    Read
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

                <!-- Notification Content -->
                <div class="p-6">
                    <div class="prose max-w-none">
                        <p class="text-gray-700 text-lg leading-relaxed"><?php echo e($notification->message); ?></p>
                    </div>

                    <?php if($notification->target_type === 'tenant' && $notification->target_id): ?>
                        <div class="mt-6 p-4 bg-gray-50 rounded-lg">
                            <h3 class="text-sm font-medium text-gray-900 mb-2">Target Information</h3>
                            <p class="text-sm text-gray-600">
                                This notification was sent specifically to your tenant account.
                            </p>
                        </div>
                    <?php endif; ?>

                    <?php if($notification->read_at): ?>
                        <div class="mt-6 p-4 bg-green-50 rounded-lg">
                            <h3 class="text-sm font-medium text-green-900 mb-2">Read Status</h3>
                            <p class="text-sm text-green-700">
                                Read on <?php echo e($notification->read_at->format('M j, Y g:i A')); ?>

                            </p>
                        </div>
                    <?php endif; ?>
                </div>

                <!-- Actions -->
                <div class="p-6 border-t border-gray-200 bg-gray-50">
                    <div class="flex justify-between items-center">
                        <a href="<?php echo e(route('tenant.notifications.index')); ?>" 
                           class="text-gray-600 hover:text-gray-800">
                            ← Back to Notifications
                        </a>
                        <div class="space-x-3">
                            <?php if(!$notification->is_read): ?>
                                <form method="POST" action="<?php echo e(route('tenant.notifications.read', $notification->id)); ?>" class="inline">
                                    <?php echo csrf_field(); ?>
                                    <button type="submit" class="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700 text-sm">
                                        Mark as Read
                                    </button>
                                </form>
                            <?php endif; ?>
                            <form method="POST" action="<?php echo e(route('tenant.notifications.show', $notification->id)); ?>" 
                                  onsubmit="return confirm('Are you sure you want to delete this notification?')" class="inline">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 text-sm">
                                    Delete
                                </button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        <?php else: ?>
            <div class="bg-white shadow-sm rounded-lg p-6">
                <div class="text-center">
                    <div class="text-gray-400">
                        <svg class="w-12 h-12 mx-auto mb-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                        </svg>
                        <p class="text-sm">Notification not found</p>
                    </div>
                    <div class="mt-4">
                        <a href="<?php echo e(route('tenant.notifications.index')); ?>" 
                           class="text-blue-600 hover:text-blue-800">
                            ← Back to Notifications
                        </a>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3f11930a8702d3d700513f5d743b90ca)): ?>
<?php $attributes = $__attributesOriginal3f11930a8702d3d700513f5d743b90ca; ?>
<?php unset($__attributesOriginal3f11930a8702d3d700513f5d743b90ca); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3f11930a8702d3d700513f5d743b90ca)): ?>
<?php $component = $__componentOriginal3f11930a8702d3d700513f5d743b90ca; ?>
<?php unset($__componentOriginal3f11930a8702d3d700513f5d743b90ca); ?>
<?php endif; ?>
<?php /**PATH D:\laragon\www\Laravel_gorsary\resources\views/tenant/notifications/show.blade.php ENDPATH**/ ?>