File manager - Edit - /var/www/ratemypay_dev/storage/framework/views/4216c287c97474e5f1161002fbfe5020.php
Back
<?php /** @var \App\Models\User|null $user */ $user = auth()->user(); // Always show the logged-in user's name (never the company name). // Fall back to the email handle, then to a generic placeholder. $emailHandle = \Illuminate\Support\Str::title(\Illuminate\Support\Str::before($user?->email ?? '', '@')); $displayName = trim($user?->name ?? '') !== '' ? $user->name : ($emailHandle !== '' ? $emailHandle : 'Admin'); $avatarUrl = 'https://ui-avatars.com/api/?name=' . urlencode($displayName) . '&background=2F3D7E&color=fff'; $roleLabel = ucfirst($user?->role ?? 'admin') . ' Admin'; ?> <header class="px-6 lg:px-10 py-5 flex items-center justify-between gap-4 bg-white border-b border-[#E5E7EB]"> <a href="<?php echo e(route('business.dashboard')); ?>" class="inline-flex items-center"> <img src="<?php echo e(asset('logo.png')); ?>" alt="ratemypay" class="h-6 w-auto"> </a> <div class="flex items-center gap-4"> <a href="<?php echo e(route('business.activity')); ?>" class="relative w-10 h-10 bg-white hover:bg-gray-50 flex items-center justify-center transition"> <svg width="30" height="30" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M32.4013 25.1024L30.7112 22.5635C30.3562 21.9976 30.0351 20.9271 30.0351 20.3V16.4306C30.0351 12.8365 27.7028 9.73176 24.3395 8.27882C23.4606 6.87176 21.8381 6 19.979 6C18.1368 6 16.4805 6.90235 15.6016 8.32471C12.3059 9.80824 10.0243 12.8824 10.0243 16.4306V20.3C10.0243 20.9271 9.70315 21.9976 9.34823 22.5482L7.64122 25.1024C6.96518 26.1271 6.81307 27.2588 7.23559 28.2988C7.64122 29.3235 8.60458 30.1188 9.85526 30.5012C13.1341 31.5106 16.5819 32 20.0297 32C23.4775 32 26.9253 31.5106 30.2041 30.5165C31.3872 30.1647 32.2999 29.3541 32.7393 28.2988C33.1787 27.2435 33.0604 26.0812 32.4013 25.1024Z" fill="#2F3D7E"/> <path d="M24.7135 33.35C24.0135 35.2834 22.1635 36.6667 19.9969 36.6667C18.6802 36.6667 17.3802 36.1334 16.4635 35.1834C15.9302 34.6834 15.5302 34.0167 15.2969 33.3334C15.5135 33.3667 15.7302 33.3834 15.9635 33.4167C16.3469 33.4667 16.7469 33.5167 17.1469 33.55C18.0969 33.6334 19.0635 33.6834 20.0302 33.6834C20.9802 33.6834 21.9302 33.6334 22.8635 33.55C23.2135 33.5167 23.5635 33.5 23.8969 33.45C24.1635 33.4167 24.4302 33.3834 24.7135 33.35Z" fill="#2F3D7E"/> </svg> </a> <div class="relative" @click.outside="userMenuOpen = false"> <button type="button" @click="userMenuOpen = !userMenuOpen" class="flex items-center gap-3 pl-1 pr-2 py-1 rounded-full hover:bg-gray-50 transition"> <img src="<?php echo e($avatarUrl); ?>" alt="<?php echo e($displayName); ?>" class="w-10 h-10 rounded-full object-cover"> <div class="hidden sm:block text-left"> <div class="text-sm font-semibold text-[#101828] leading-tight"><?php echo e($displayName); ?></div> <div class="text-xs text-[#4A5565] flex items-center gap-1"> <?php echo e($roleLabel); ?> <svg width="6" height="3" viewBox="0 0 6 3" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2.95233 2.71653C2.76444 2.87924 2.48556 2.87924 2.29767 2.71653L0.174684 0.877965C-0.175267 0.574898 0.0390684 3.37342e-07 0.502011 2.9687e-07L4.74799 -3.12744e-07C5.21093 -3.53215e-07 5.42527 0.574897 5.07532 0.877964L2.95233 2.71653Z" fill="#2F3D7E"/> </svg> </div> </div> </button> <div x-show="userMenuOpen" x-cloak x-transition.opacity class="absolute right-0 mt-2 w-48 bg-white border border-[#E5E7EB] rounded-xl shadow-lg overflow-hidden z-30"> <button type="button" @click="userMenuOpen = false; logoutOpen = true" class="w-full text-left px-4 py-3 text-sm text-[#F43F5E] hover:bg-[#FEF2F2]"> Sign Out </button> </div> </div> </div> </header> <?php /**PATH /var/www/ratemypay_dev/resources/views/business/dashboard/partials/topbar.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings