File manager - Edit - /var/www/ratemypay/storage/framework/views/6565f0aaef9da2193a79b9a96f31681c.php
Back
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; $__newAttributes = []; $__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([ 'isEmbedded' => false, 'discoverUsers' => [], 'networkUsers' => [], 'requestUsers' => [] ])); 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, 'discoverUsers' => [], 'networkUsers' => [], 'requestUsers' => [] ]), '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="{ activeDirTab: 'discover', searchQuery: '' }"> <?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="mb-8"> <h1 class="text-3xl font-bold text-[#2F3D7E]">People Directory</h1> <p class="text-gray-500 mt-1">Connect with professionals anonymously via nicknames to track salary journeys.</p> </div> <div class="w-full"> <div class="mb-6 bg-white border border-gray-200 p-1 h-auto rounded-xl inline-flex"> <button @click="activeDirTab = 'discover'" :class="activeDirTab === 'discover' ? 'bg-[#2F3D7E] text-white' : 'text-gray-600 hover:bg-gray-50'" class="rounded-lg px-6 py-2 transition-all text-sm font-medium" > Discover </button> <button @click="activeDirTab = 'network'" :class="activeDirTab === 'network' ? 'bg-[#2F3D7E] text-white' : 'text-gray-600 hover:bg-gray-50'" class="rounded-lg px-6 py-2 transition-all text-sm font-medium" > My Network (<?php echo e(isset($networkUsers) ? $networkUsers->count() : 0); ?>) </button> <button @click="activeDirTab = 'requests'" :class="activeDirTab === 'requests' ? 'bg-[#2F3D7E] text-white' : 'text-gray-600 hover:bg-gray-50'" class="rounded-lg px-6 py-2 transition-all flex gap-2 items-center text-sm font-medium" > Requests <?php if(isset($requestUsers) && $requestUsers->count() > 0): ?> <span class="bg-red-500 text-white text-[10px] px-1.5 py-0.5 rounded-full font-bold"> <?php echo e($requestUsers->count()); ?> </span> <?php endif; ?> </button> </div> <div class="flex flex-col md:flex-row gap-4 mb-8"> <div class="relative flex-1"> <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" x-model="searchQuery" placeholder="Filter by role, location, or skill..." class="flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2 pl-10 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[#2F3D7E]/20 focus:border-[#2F3D7E]" > <button x-show="searchQuery.length > 0" @click="searchQuery = ''" class="absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600" > <svg class="w-4 h-4" 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="M18 6 6 18"/><path d="m6 6 12 12"/></svg> </button> </div> <button class="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium border border-gray-200 bg-white hover:bg-gray-50 h-10 px-4 py-2 text-gray-600 gap-2"> <svg class="w-4 h-4" 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"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/></svg> Filters </button> </div> <div x-show="activeDirTab === 'discover'" class="mt-0" style="display: none;"> <?php if(isset($discoverUsers) && count($discoverUsers) > 0): ?> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <?php $__currentLoopData = $discoverUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div x-show="searchQuery === '' || $el.dataset.search.toLowerCase().includes(searchQuery.toLowerCase())" data-search="<?php echo e($user->nickname); ?> <?php echo e($user->role); ?> <?php echo e($user->companyType); ?> <?php echo e($user->location); ?> <?php echo e(implode(' ', $user->tags)); ?>" > <?php if (isset($component)) { $__componentOriginal707428e520f573388e9b5b15fba84923 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal707428e520f573388e9b5b15fba84923 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.user-card','data' => ['user' => $user]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.user-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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($user)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal707428e520f573388e9b5b15fba84923)): ?> <?php $attributes = $__attributesOriginal707428e520f573388e9b5b15fba84923; ?> <?php unset($__attributesOriginal707428e520f573388e9b5b15fba84923); ?> <?php endif; ?> <?php if (isset($__componentOriginal707428e520f573388e9b5b15fba84923)): ?> <?php $component = $__componentOriginal707428e520f573388e9b5b15fba84923; ?> <?php unset($__componentOriginal707428e520f573388e9b5b15fba84923); ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="text-center py-12"> <p class="text-gray-500">No users found.</p> </div> <?php endif; ?> </div> <div x-show="activeDirTab === 'network'" class="mt-0" style="display: none;"> <?php if(isset($networkUsers) && count($networkUsers) > 0): ?> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <?php $__currentLoopData = $networkUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div x-show="searchQuery === '' || $el.dataset.search.toLowerCase().includes(searchQuery.toLowerCase())" data-search="<?php echo e($user->nickname); ?> <?php echo e($user->role); ?> <?php echo e($user->companyType); ?> <?php echo e($user->location); ?> <?php echo e(implode(' ', $user->tags)); ?>" > <?php if (isset($component)) { $__componentOriginal707428e520f573388e9b5b15fba84923 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal707428e520f573388e9b5b15fba84923 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.user-card','data' => ['user' => $user]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.user-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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($user)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal707428e520f573388e9b5b15fba84923)): ?> <?php $attributes = $__attributesOriginal707428e520f573388e9b5b15fba84923; ?> <?php unset($__attributesOriginal707428e520f573388e9b5b15fba84923); ?> <?php endif; ?> <?php if (isset($__componentOriginal707428e520f573388e9b5b15fba84923)): ?> <?php $component = $__componentOriginal707428e520f573388e9b5b15fba84923; ?> <?php unset($__componentOriginal707428e520f573388e9b5b15fba84923); ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </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"/><line x1="20" x2="20" y1="8" y2="14"/><line x1="23" x2="17" y1="11" y2="11"/></svg> </div> <h3 class="text-lg font-semibold text-gray-900">No connections yet</h3> <button @click="activeDirTab = 'discover'" class="mt-4 text-[#2F3D7E] font-medium hover:underline">Discover People</button> </div> <?php endif; ?> </div> <div x-show="activeDirTab === 'requests'" class="mt-0" style="display: none;"> <?php if(isset($requestUsers) && count($requestUsers) > 0): ?> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <?php $__currentLoopData = $requestUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div x-show="searchQuery === '' || $el.dataset.search.toLowerCase().includes(searchQuery.toLowerCase())" data-search="<?php echo e($user->nickname); ?> <?php echo e($user->role); ?> <?php echo e($user->location); ?>" > <?php if (isset($component)) { $__componentOriginalc95d395d9fb2bfe7551f50437c8593bd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc95d395d9fb2bfe7551f50437c8593bd = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.network.request-card','data' => ['user' => $user]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('network.request-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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($user)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc95d395d9fb2bfe7551f50437c8593bd)): ?> <?php $attributes = $__attributesOriginalc95d395d9fb2bfe7551f50437c8593bd; ?> <?php unset($__attributesOriginalc95d395d9fb2bfe7551f50437c8593bd); ?> <?php endif; ?> <?php if (isset($__componentOriginalc95d395d9fb2bfe7551f50437c8593bd)): ?> <?php $component = $__componentOriginalc95d395d9fb2bfe7551f50437c8593bd; ?> <?php unset($__componentOriginalc95d395d9fb2bfe7551f50437c8593bd); ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="text-center py-20 bg-white rounded-xl border border-gray-200"> <h3 class="text-lg font-semibold text-gray-900">No pending requests</h3> </div> <?php endif; ?> </div> </div> <?php if(!$isEmbedded): ?> </div> </div> <?php endif; ?> </div><?php /**PATH /var/www/ratemypay/resources/views/components/network/people-directory.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings