<?php $__env->startSection('title', $partner->organization_name . ' - Partner Profile'); ?>
<?php $__env->startSection('meta-description', Str::limit($partner->description ?? 'Learn about our partner organization.', 160)); ?>

<?php $__env->startSection('content'); ?>
<!-- Hero Banner -->
<?php if($partner->banner_image): ?>
    <div class="relative h-64 md:h-80 bg-gray-900">
        <img src="<?php echo e(asset('storage/' . $partner->banner_image)); ?>" 
             alt="<?php echo e($partner->organization_name); ?>"
             class="w-full h-full object-cover opacity-70">
        <div class="absolute inset-0 bg-gradient-to-t from-black/70 to-transparent"></div>
        <div class="absolute bottom-0 left-0 right-0 p-6 md:p-10">
            <div class="max-w-7xl mx-auto">
                <div class="flex items-center gap-4">
                    <?php if($partner->logo): ?>
                        <img src="<?php echo e(asset('storage/' . $partner->logo)); ?>" 
                             alt="<?php echo e($partner->organization_name); ?>"
                             class="w-20 h-20 md:w-24 md:h-24 rounded-lg shadow-lg object-contain bg-white p-2">
                    <?php endif; ?>
                    <div>
                        <h1 class="text-3xl md:text-4xl font-serif font-bold text-white">
                            <?php echo e($partner->organization_name); ?>

                        </h1>
                        <p class="text-gray-200 mt-1">
                            <i class="fas fa-tag mr-2"></i>
                            <?php echo e($partner->type_label); ?>

                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="bg-gradient-to-r from-blue-600 to-blue-700 shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
            <div class="flex items-center gap-6">
                <?php if($partner->logo): ?>
                    <img src="<?php echo e(asset('storage/' . $partner->logo)); ?>" 
                         alt="<?php echo e($partner->organization_name); ?>"
                         class="w-24 h-24 md:w-32 md:h-32 rounded-lg shadow-lg object-contain bg-white p-2">
                <?php else: ?>
                    <div class="w-24 h-24 md:w-32 md:h-32 rounded-lg shadow-lg bg-white/20 flex items-center justify-center">
                        <i class="fas fa-building text-white text-4xl"></i>
                    </div>
                <?php endif; ?>
                <div>
                    <h1 class="text-3xl md:text-4xl font-serif font-bold text-white">
                        <?php echo e($partner->organization_name); ?>

                    </h1>
                    <p class="text-blue-100 mt-2">
                        <i class="fas fa-tag mr-2"></i>
                        <?php echo e($partner->type_label); ?>

                        <?php if($partner->is_verified): ?>
                            <span class="ml-3 text-green-300">
                                <i class="fas fa-check-circle"></i> Verified
                            </span>
                        <?php endif; ?>
                        <?php if($partner->is_featured): ?>
                            <span class="ml-3 text-yellow-300">
                                <i class="fas fa-star"></i> Featured
                            </span>
                        <?php endif; ?>
                    </p>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<!-- Breadcrumb -->
<div class="bg-gray-50 border-b">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3">
        <nav class="flex items-center space-x-2 text-sm text-gray-600">
            <a href="<?php echo e(route('partners.public.index')); ?>" class="hover:text-blue-600">
                <i class="fas fa-home mr-1"></i>
                Partners
            </a>
            <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
            <span class="text-gray-900"><?php echo e($partner->organization_name); ?></span>
        </nav>
    </div>
</div>

<!-- Main Content -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10">
    <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
        <!-- Main Column -->
        <div class="lg:col-span-2 space-y-8">
            <!-- About Section -->
            <div class="bg-white rounded-lg shadow-md p-6">
                <h2 class="text-xl font-serif font-bold text-gray-900 mb-4">
                    <i class="fas fa-info-circle text-blue-600 mr-2"></i>
                    About
                </h2>
                <?php if($partner->description): ?>
                    <div class="prose prose-gray max-w-none">
                        <p class="text-gray-700 leading-relaxed">
                            <?php echo e($partner->description); ?>

                        </p>
                    </div>
                <?php else: ?>
                    <p class="text-gray-500 italic">No description available.</p>
                <?php endif; ?>

                <?php if($partner->mission_statement): ?>
                    <div class="mt-6 p-4 bg-blue-50 rounded-lg border-l-4 border-blue-500">
                        <h3 class="font-semibold text-blue-900 mb-2">Our Mission</h3>
                        <p class="text-blue-800 italic"><?php echo e($partner->mission_statement); ?></p>
                    </div>
                <?php endif; ?>
            </div>

            <!-- Services Offered -->
            <?php if($partner->services_offered && is_array($partner->services_offered) && count($partner->services_offered) > 0): ?>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h2 class="text-xl font-serif font-bold text-gray-900 mb-4">
                        <i class="fas fa-concierge-bell text-blue-600 mr-2"></i>
                        Services Offered
                    </h2>
                    <div class="flex flex-wrap gap-2">
                        <?php $__currentLoopData = $partner->services_offered; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="px-3 py-1 bg-gray-100 text-gray-700 rounded-full text-sm">
                                <?php echo e($service); ?>

                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            <?php endif; ?>

            <!-- Active Partnerships -->
            <?php if($partner->partnerships->count() > 0): ?>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h2 class="text-xl font-serif font-bold text-gray-900 mb-4">
                        <i class="fas fa-file-contract text-blue-600 mr-2"></i>
                        Active Collaborations
                    </h2>
                    <div class="space-y-4">
                        <?php $__currentLoopData = $partner->partnerships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partnership): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg">
                                <div>
                                    <h3 class="font-semibold text-gray-900"><?php echo e($partnership->title); ?></h3>
                                    <p class="text-sm text-gray-600">
                                        <?php echo e($partnership->type_label); ?>

                                    </p>
                                </div>
                                <div class="text-right">
                                    <?php if($partnership->end_date): ?>
                                        <p class="text-sm text-gray-500">
                                            Valid until <?php echo e($partnership->end_date->format('M d, Y')); ?>

                                        </p>
                                    <?php endif; ?>
                                    <span class="inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">
                                        Active
                                    </span>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>

        <!-- Sidebar -->
        <div class="space-y-6">
            <!-- Contact Information -->
            <div class="bg-white rounded-lg shadow-md p-6">
                <h2 class="text-lg font-serif font-bold text-gray-900 mb-4">
                    <i class="fas fa-address-card text-blue-600 mr-2"></i>
                    Contact Information
                </h2>
                <ul class="space-y-3">
                    <?php if($partner->email): ?>
                        <li class="flex items-center">
                            <i class="fas fa-envelope text-gray-400 w-5 mr-3"></i>
                            <a href="mailto:<?php echo e($partner->email); ?>" class="text-blue-600 hover:underline">
                                <?php echo e($partner->email); ?>

                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if($partner->phone): ?>
                        <li class="flex items-center">
                            <i class="fas fa-phone text-gray-400 w-5 mr-3"></i>
                            <a href="tel:<?php echo e($partner->phone); ?>" class="text-gray-700 hover:text-blue-600">
                                <?php echo e($partner->phone); ?>

                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if($partner->website): ?>
                        <li class="flex items-center">
                            <i class="fas fa-globe text-gray-400 w-5 mr-3"></i>
                            <a href="<?php echo e($partner->website); ?>" target="_blank" rel="noopener noreferrer" class="text-blue-600 hover:underline">
                                Visit Website
                                <i class="fas fa-external-link-alt text-xs ml-1"></i>
                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if($partner->full_address): ?>
                        <li class="flex items-start">
                            <i class="fas fa-map-marker-alt text-gray-400 w-5 mr-3 mt-1"></i>
                            <span class="text-gray-700"><?php echo e($partner->full_address); ?></span>
                        </li>
                    <?php endif; ?>
                </ul>

                <!-- Social Media -->
                <?php if($partner->social_links && is_array($partner->social_links) && count($partner->social_links) > 0): ?>
                    <div class="mt-6 pt-6 border-t">
                        <h3 class="text-sm font-semibold text-gray-700 mb-3">Follow Us</h3>
                        <div class="flex space-x-3">
                            <?php $__currentLoopData = $partner->social_links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $platform => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <a href="<?php echo e($url); ?>" 
                                   target="_blank" 
                                   rel="noopener noreferrer"
                                   class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center text-gray-600 hover:bg-blue-600 hover:text-white transition">
                                    <i class="fab fa-<?php echo e($platform); ?>"></i>
                                </a>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                <?php endif; ?>
            </div>

            <!-- Key Contacts -->
            <?php if($partner->contacts->count() > 0): ?>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h2 class="text-lg font-serif font-bold text-gray-900 mb-4">
                        <i class="fas fa-users text-blue-600 mr-2"></i>
                        Key Contacts
                    </h2>
                    <ul class="space-y-4">
                        <?php $__currentLoopData = $partner->contacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="flex items-start">
                                <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3 flex-shrink-0">
                                    <span class="text-blue-600 font-semibold">
                                        <?php echo e(Str::substr($contact->name, 0, 1)); ?>

                                    </span>
                                </div>
                                <div>
                                    <p class="font-medium text-gray-900"><?php echo e($contact->name); ?></p>
                                    <p class="text-sm text-gray-500"><?php echo e($contact->role_label); ?></p>
                                    <?php if($contact->email): ?>
                                        <a href="mailto:<?php echo e($contact->email); ?>" class="text-sm text-blue-600 hover:underline">
                                            <?php echo e($contact->email); ?>

                                        </a>
                                    <?php endif; ?>
                                </div>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <!-- Partnership Level -->
            <div class="bg-white rounded-lg shadow-md p-6">
                <h2 class="text-lg font-serif font-bold text-gray-900 mb-4">
                    <i class="fas fa-award text-blue-600 mr-2"></i>
                    Partnership Level
                </h2>
                <div class="text-center py-4">
                    <div class="inline-flex items-center justify-center w-16 h-16 rounded-full 
                        <?php if($partner->partnership_level === 'platinum'): ?> bg-gradient-to-br from-purple-400 to-purple-600
                        <?php elseif($partner->partnership_level === 'gold'): ?> bg-gradient-to-br from-yellow-400 to-yellow-600
                        <?php elseif($partner->partnership_level === 'silver'): ?> bg-gradient-to-br from-gray-300 to-gray-500
                        <?php else: ?> bg-gradient-to-br from-orange-400 to-orange-600
                        <?php endif; ?> text-white mb-3">
                        <i class="fas fa-medal text-2xl"></i>
                    </div>
                    <p class="text-xl font-semibold text-gray-900 capitalize">
                        <?php echo e($partner->partnership_level ?? 'Standard'); ?> Partner
                    </p>
                    <?php if($partner->partnership_start_date): ?>
                        <p class="text-sm text-gray-500 mt-1">
                            Partner since <?php echo e($partner->partnership_start_date->format('F Y')); ?>

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

    <!-- Back to Directory -->
    <div class="mt-10 text-center">
        <a href="<?php echo e(route('partners.public.index')); ?>" 
           class="inline-flex items-center px-6 py-3 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
            <i class="fas fa-arrow-left mr-2"></i>
            Back to Partner Directory
        </a>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.site', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/www/sshia.org/sshia/resources/views/partners/show.blade.php ENDPATH**/ ?>