File manager - Edit - /var/www/ratemypay/storage/framework/views/9de1589d1f50cd1506615313d4939e64.php
Back
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; $__newAttributes = []; $__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([ 'isEmbedded' => false, 'myCommunities' => [], 'discoverCommunities' => [], 'categories' => [], 'connectedUsers' => [] ])); foreach ($attributes->all() as $__key => $__value) { if (in_array($__key, $__propNames)) { $$__key = $$__key ?? $__value; } else { $__newAttributes[$__key] = $__value; } } $attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes); unset($__propNames); unset($__newAttributes); foreach (array_filter(([ 'isEmbedded' => false, 'myCommunities' => [], 'discoverCommunities' => [], 'categories' => [], 'connectedUsers' => [] ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } $__defined_vars = get_defined_vars(); foreach ($attributes->all() as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } unset($__defined_vars, $__key, $__value); ?> <div x-data="{ activeHubTab: 'my-communities', showCreateModal: false, selectedCategory: 'All' }"> <?php if(!$isEmbedded): ?> <div class="w-full min-h-screen bg-[#f4f4f4]"> <div class="max-w-6xl mx-auto px-4 py-8"> <?php endif; ?> <div class="flex flex-col md:flex-row md:items-center justify-between mb-8 gap-4"> <div> <h1 class="text-3xl font-bold text-[#2F3D7E]">Communities</h1> <p class="text-gray-500 mt-1">Connect with peers, compare salaries, and grow together.</p> </div> <button @click="showCreateModal = true" class="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 h-10 px-4 py-2 bg-[#2F3D7E] hover:bg-[#232d5e] text-white shadow-lg hover:shadow-xl transition-all" > <svg class="w-4 h-4 mr-2" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg> Create Community </button> </div> <div class="w-full"> <div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4 mb-6"> <div class="bg-white border border-gray-200 p-1 h-auto rounded-xl inline-flex"> <button @click="activeHubTab = 'my-communities'" :class="activeHubTab === 'my-communities' ? 'bg-[#2F3D7E] text-white' : 'text-gray-600 hover:bg-gray-50'" class="rounded-lg px-4 py-2 transition-all text-sm font-medium" > My Communities </button> <button @click="activeHubTab = 'discover'" :class="activeHubTab === 'discover' ? 'bg-[#2F3D7E] text-white' : 'text-gray-600 hover:bg-gray-50'" class="rounded-lg px-4 py-2 transition-all text-sm font-medium" > Discover </button> </div> <div class="relative w-full md:w-72"> <svg class="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg> <input type="text" placeholder="Search communities..." class="w-full pl-10 pr-4 py-2 bg-white border border-gray-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-[#2F3D7E]/20 focus:border-[#2F3D7E]" > </div> </div> <div x-show="activeHubTab === 'my-communities'" class="mt-0" style="display: none;"> <?php if(isset($myCommunities) && count($myCommunities) > 0): ?> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <?php $__currentLoopData = $myCommunities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $community): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.community-card','data' => ['community' => $community]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.community-card'); ?> <?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(['community' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($community)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57)): ?> <?php $attributes = $__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57; ?> <?php unset($__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57); ?> <?php endif; ?> <?php if (isset($__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57)): ?> <?php $component = $__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57; ?> <?php unset($__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div @click="activeHubTab = 'discover'" class="bg-white/50 border-2 border-dashed border-gray-200 rounded-xl flex flex-col items-center justify-center p-6 text-center hover:bg-white hover:border-[#2F3D7E]/50 transition-all cursor-pointer group h-full min-h-[280px]" > <div class="w-12 h-12 bg-blue-50 rounded-xl flex items-center justify-center mb-4 group-hover:bg-[#2F3D7E] transition-colors"> <svg class="w-6 h-6 text-[#2F3D7E] group-hover:text-white" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg> </div> <h3 class="font-semibold text-gray-900 mb-1">Find more communities</h3> <p class="text-sm text-gray-500">Browse by role, location, or industry</p> </div> </div> <?php else: ?> <div class="text-center py-20 bg-white rounded-xl border border-gray-200"> <div class="w-16 h-16 bg-gray-100 rounded-xl flex items-center justify-center mx-auto mb-4"> <svg class="w-8 h-8 text-gray-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg> </div> <h3 class="text-lg font-semibold text-gray-900">No communities yet</h3> <p class="text-gray-500 max-w-sm mx-auto mt-2 mb-6">Join a community to compare salaries with peers in your industry or location.</p> <button @click="activeHubTab = 'discover'" class="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2 border-gray-200" > Browse Communities </button> </div> <?php endif; ?> </div> <div x-show="activeHubTab === 'discover'" class="mt-0 space-y-8" style="display: none;"> <div class="flex gap-4 overflow-x-auto pb-2" style="scrollbar-width: none; -ms-overflow-style: none;"> <button @click="selectedCategory = 'All'" :class="selectedCategory === 'All' ? 'bg-[#2F3D7E] text-white' : 'bg-white border border-gray-200 text-gray-600 hover:bg-gray-50'" class="px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-colors" > All </button> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <button @click="selectedCategory = '<?php echo e($cat); ?>'" :class="selectedCategory === '<?php echo e($cat); ?>' ? 'bg-[#2F3D7E] text-white' : 'bg-white border border-gray-200 text-gray-600 hover:bg-gray-50'" class="px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-colors" > <?php echo e($cat); ?> </button> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php if(isset($discoverCommunities)): ?> <div> <h2 class="text-lg font-bold text-gray-900 mb-4 flex items-center gap-2"> <svg class="w-5 h-5 text-[#2F3D7E]" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" x2="22" y1="12" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg> Explore Communities </h2> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <?php $__currentLoopData = $discoverCommunities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $community): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div x-show="selectedCategory === 'All' || selectedCategory === '<?php echo e($community->category); ?>'"> <?php if (isset($component)) { $__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.community-card','data' => ['community' => $community]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.community-card'); ?> <?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(['community' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($community)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57)): ?> <?php $attributes = $__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57; ?> <?php unset($__attributesOriginal9a76d9ff8797a4d41e70c6de45fa3b57); ?> <?php endif; ?> <?php if (isset($__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57)): ?> <?php $component = $__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57; ?> <?php unset($__componentOriginal9a76d9ff8797a4d41e70c6de45fa3b57); ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div x-show="$el.previousElementSibling.children.length > 0 && Array.from($el.previousElementSibling.children).every(child => child.style.display === 'none')" class="text-center py-12" style="display: none;"> <p class="text-gray-500">No communities found in this category.</p> </div> </div> <?php endif; ?> </div> </div> <?php if (isset($component)) { $__componentOriginal6ec22dd9d7b8a894c806cfea62c2a155 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal6ec22dd9d7b8a894c806cfea62c2a155 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.create-community-modal','data' => ['categories' => $categories,'connectedUsers' => $connectedUsers]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.create-community-modal'); ?> <?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(['categories' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($categories),'connected-users' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($connectedUsers)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal6ec22dd9d7b8a894c806cfea62c2a155)): ?> <?php $attributes = $__attributesOriginal6ec22dd9d7b8a894c806cfea62c2a155; ?> <?php unset($__attributesOriginal6ec22dd9d7b8a894c806cfea62c2a155); ?> <?php endif; ?> <?php if (isset($__componentOriginal6ec22dd9d7b8a894c806cfea62c2a155)): ?> <?php $component = $__componentOriginal6ec22dd9d7b8a894c806cfea62c2a155; ?> <?php unset($__componentOriginal6ec22dd9d7b8a894c806cfea62c2a155); ?> <?php endif; ?> <?php if(!$isEmbedded): ?> </div> </div> <?php endif; ?> </div><?php /**PATH /var/www/ratemypay/resources/views/components/network/community-hub.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings