File manager - Edit - /var/www/ratemypay_dev/storage/framework/views/90ea259a1b00af0b2c6a8abf15b71605.php
Back
<?php $__env->startSection('title', 'Activity - Business - ' . config('app.name')); ?> <?php $__env->startSection('content'); ?> <p class="text-sm font-semibold text-[#101828] mb-6">Activity</p> <section class="mb-8 flex flex-col lg:flex-row lg:items-end lg:justify-between gap-4"> <div> <h1 class="text-3xl font-bold text-[#101828]">Activity Feed</h1> <p class="text-sm text-[#4A5565] mt-2">Real-time updates on system activities and user actions</p> </div> <div class="flex items-center gap-3"> <form method="POST" action="<?php echo e(route('business.activity.mark-read')); ?>"> <?php echo csrf_field(); ?> <button type="submit" class="inline-flex items-center gap-2 h-11 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] hover:bg-gray-50 transition"> <svg class="w-4 h-4" 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"/><polyline points="9 12 11 14 15 10"/></svg> Mark All Read </button> </form> <a href="<?php echo e(route('business.activity.export', request()->only(['range', 'module', 'status', 'search']))); ?>" class="inline-flex items-center gap-2 h-11 px-4 rounded-xl bg-[#2F3D7E] hover:bg-[#1E2858] text-white text-sm font-semibold transition"> <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg> Export CSV </a> </div> </section> <section class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8"> <?php $__currentLoopData = $stats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="rounded-2xl border border-[#E5E7EB] bg-white p-5"> <span class="inline-flex items-center justify-center w-10 h-10 rounded-xl mb-3" style="background-color: <?php echo e($stat['bg']); ?>;"> <?php echo $stat['icon']; ?> </span> <div class="text-3xl font-bold text-[#101828] leading-none"><?php echo e($stat['value']); ?></div> <div class="text-sm text-[#4A5565] mt-2"><?php echo e($stat['label']); ?></div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </section> <section class="rounded-2xl border border-[#E5E7EB] bg-white p-6"> <div class="flex items-start justify-between gap-4 mb-5 flex-col lg:flex-row"> <div> <h2 class="text-lg font-bold text-[#101828]">User Activity Log</h2> <p class="text-sm text-[#4A5565] mt-1">Recent user actions and system events</p> </div> <div class="flex items-center gap-3"> <button type="button" class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] hover:bg-gray-50 transition"> <svg class="w-4 h-4" 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 class="relative" x-data="{ rangeOpen: false, range: '<?php echo e(request('range', '7days')); ?>' }" @click.outside="rangeOpen = false"> <button type="button" @click="rangeOpen = !rangeOpen" class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] hover:bg-gray-50 transition"> <span x-text="range"></span> <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg> </button> <div x-show="rangeOpen" x-cloak x-transition.opacity class="absolute right-0 mt-2 w-40 bg-white border border-[#E5E7EB] rounded-xl shadow-lg overflow-hidden z-20"> <?php $__currentLoopData = ['Today', '7days', '30days', '90days', 'All time']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $opt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(request()->fullUrlWithQuery(['range' => $opt, 'page' => 1])); ?>" @click="rangeOpen = false" class="block w-full text-left px-4 py-2.5 text-sm hover:bg-gray-50 <?php echo e(request('range', '7days') === $opt ? 'text-[#2F3D7E] font-semibold bg-[#EEF1F7]' : 'text-[#101828]'); ?>"> <?php echo e($opt); ?> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> <?php if(empty($userActivity)): ?> <?php echo $__env->make('business.dashboard.partials.activity-empty', ['title' => 'No activity yet', 'subtitle' => 'User actions will appear here once your team starts working.'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php else: ?> <div class="overflow-x-auto -mx-6 px-6"> <div class="min-w-[760px] rounded-2xl border border-[#E5E7EB] overflow-hidden"> <table class="w-full text-sm"> <thead> <tr class="text-left text-[11px] font-semibold uppercase tracking-wider text-[#94A3B8] bg-[#F8FAFC] border-b border-[#E5E7EB]"> <th class="py-4 px-6">Timestamp</th> <th class="py-4 px-4">User</th> <th class="py-4 px-4">Action</th> <th class="py-4 px-4">Module</th> <th class="py-4 px-4">IP Address</th> <th class="py-4 px-6 text-right">Status</th> </tr> </thead> <tbody> <?php $__currentLoopData = $userActivity; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr class="border-b border-[#F1F5F9] last:border-b-0 hover:bg-[#F8FAFC]/50 transition"> <td class="py-4 px-6 text-[#4A5565] whitespace-nowrap font-mono text-xs"><?php echo e($row['timestamp']); ?></td> <td class="py-4 px-4 text-[#101828] font-medium whitespace-nowrap"><?php echo e($row['user']); ?></td> <td class="py-4 px-4 text-[#4A5565]"><?php echo e($row['action']); ?></td> <td class="py-4 px-4 whitespace-nowrap"> <span class="inline-flex items-center px-2.5 py-1 rounded-md text-xs font-medium <?php echo e($moduleColors[$row['module']] ?? 'bg-[#F1F5F9] text-[#475569]'); ?>"> <?php echo e($row['module']); ?> </span> </td> <td class="py-4 px-4 text-[#4A5565] whitespace-nowrap font-mono text-xs"><?php echo e($row['ip']); ?></td> <td class="py-4 px-6 text-right whitespace-nowrap"> <?php if($row['status'] === 'success'): ?> <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-[#DCFCE7] text-[#166534]">success</span> <?php elseif($row['status'] === 'failed'): ?> <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-[#FEE2E2] text-[#991B1B]">failed</span> <?php else: ?> <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-[#FEF3C7] text-[#92400E]"><?php echo e($row['status']); ?></span> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <?php $window = 5; $showEllipsis = $lastPage > $window + 1; $pages = range(1, min($window, $lastPage)); ?> <nav class="mt-6 flex items-center justify-between gap-3 flex-wrap"> <?php if($currentPage <= 1): ?> <button type="button" disabled class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] opacity-50 cursor-not-allowed transition"> <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg> Previous </button> <?php else: ?> <a href="<?php echo e(request()->fullUrlWithQuery(['page' => $currentPage - 1])); ?>" class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] hover:bg-gray-50 transition"> <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg> Previous </a> <?php endif; ?> <div class="flex items-center gap-1"> <?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($p === $currentPage): ?> <span class="w-9 h-9 rounded-lg bg-[#2F3D7E] text-white text-sm font-semibold flex items-center justify-center"><?php echo e($p); ?></span> <?php else: ?> <a href="?page=<?php echo e($p); ?>" class="w-9 h-9 rounded-lg text-[#4A5565] text-sm font-medium hover:bg-gray-100 flex items-center justify-center"><?php echo e($p); ?></a> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($showEllipsis): ?> <span class="w-9 h-9 text-[#94A3B8] text-sm font-medium flex items-center justify-center">.....</span> <a href="?page=<?php echo e($lastPage); ?>" class="w-9 h-9 rounded-lg text-[#4A5565] text-sm font-medium hover:bg-gray-100 flex items-center justify-center"><?php echo e($lastPage); ?></a> <?php endif; ?> </div> <?php if($currentPage >= $lastPage): ?> <button type="button" disabled class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] opacity-50 cursor-not-allowed transition"> Next <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg> </button> <?php else: ?> <a href="<?php echo e(request()->fullUrlWithQuery(['page' => $currentPage + 1])); ?>" class="inline-flex items-center gap-2 h-10 px-4 rounded-xl border border-[#E5E7EB] bg-white text-sm font-semibold text-[#101828] hover:bg-gray-50 transition"> Next <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg> </a> <?php endif; ?> </nav> <?php endif; ?> </section> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.business-dashboard', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/ratemypay_dev/resources/views/business/dashboard/activity.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings