���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix
/
storage
/
framework
/
views
/
Viewing: 34df114b5b2b69e090482cdedf18b78e.php
<?php $__env->startSection('styles'); ?> <link href="<?php echo e(asset('/css/slimselect.min.css')); ?>" rel="stylesheet"> <link rel="stylesheet" href="<?php echo e(asset('/css/jalalidatepicker.min.css')); ?>"/> <?php $__env->stopSection(); ?> <div class="w-11/12 pt-10 mx-auto mt-10"> <div class="flex items-center justify-center py-3 mb-10 text-center border-b-2 border-main-700 "> <div class="w-3/12"> <h2 class="text-lg font-thin text-main-800 xl:font-bold">مشاهده پیگیری های کاربر</h2> </div> </div> <?php if(session()->has('successRequest')): ?> <div class="my-3"> <?php $__split = function ($name, $params = []) { return [$name, $params]; }; [$__name, $__params] = $__split('general.success-validate', ['message' => session('successRequest')]); $__html = app('livewire')->mount($__name, $__params, 'lw-3816070347-0', $__slots ?? [], get_defined_vars()); echo $__html; unset($__html); unset($__name); unset($__params); unset($__split); if (isset($__slots)) unset($__slots); ?> </div> <?php endif; ?> <div> <!------------ Filter ----------> <div class="flex justify-between my-2"> <div> <div x-data="{open:false}"> <button type="button" class="inline-flex w justify-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 " x-on:click="open = !open"> فیلتر <svg class="w-5 h-5 mr-2 -ml-1" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"></path> </svg> </button> <div x-show="open " x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" class=" mt-3 w-full md:flex md:space-y-0 md:space-x-2"> <div class=" space-y-2 lg:space-y-0 lg:flex justify-start items-center"> <input type="text" wire:model.live='search' placeholder="جستجو" class="block w-full ml-2 border-gray-300 rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5"> </div> </div> </div> </div> <div> <button onclick='Livewire.dispatch("openModal", { component:"admin.pages.user.tracking.add", arguments:<?php echo e(json_encode(["id" => $user->id])); ?>} )' class="inline-flex w justify-center px-4 py-2 text-sm font-medium bg-green-800 text-white rounded"> <i class="bx bx-plus"></i> افزودن </button> </div> </div> </div> <h2>مشخصات کاربر:</h2> <div class=" w-full mb-5"> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <table class="w-full text-left overflow-hidden"> <thead> <tr class="text-gray-900 bg-gray-100 "> <th class="truncate py-2 text-center text-sm font-light min-w-[4rem] px-1 "> # </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300 "> نام و نام خانوادگی </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> موبایل </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> شغل </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> شهر </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> حساب کاربری </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> لاگین فعال </th> <th class="truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> حساب دمو </th> <th class="truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> وضعیت پرداخت </th> <th class="truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> آخرین پیگیری </th> <th class="truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> استفاده از کد اشتراک </th> <th class="truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> تاریخ ثبت نام </th> <th class="truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> انقضاء اشتراک </th> <th class=" truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> پلتفرم </th> <th class="truncate py-2 text-center text-sm font-light w-[8rem] px-1 border-r border-gray-300"> نقش </th> <th class="truncate py-2 text-center text-sm font-light min-w-[12rem] px-1 border-r border-gray-300"> تعداد سفارش </th> <th class="truncate py-2 text-center text-sm font-light min-w-[12rem] px-1 border-r border-gray-300"> آخرین سفارش </th> <th class="truncate py-2 text-center text-sm font-light min-w-[12rem] px-1 border-r border-gray-300"> تراکنش ها </th> <th class="truncate py-2 text-center text-sm font-light min-w-[12rem] px-1 border-r border-gray-300"> سفارشات </th> <th class="truncate py-2 text-center text-sm font-light min-w-[12rem] px-1 border-r border-gray-300"> عملیات </th> </tr> </thead> <tbody> <tr wire:key='<?php echo e($user->id); ?>' class="w-full font-light text-gray-800 whitespace-no-wrap bg-white border border-b "> <td class="truncate px-2 py-2 text-sm text-center font-light "> <?php echo e($user->id); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($user->first_name ?? ''); ?> <?php echo e($user->last_name ?? ''); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($user->mobile ?? '-'); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($user->job ?? '-'); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> استان: <?php echo e($user->state?->state ?? '-'); ?> شهر: <?php echo e($user->city?->city ?? '-'); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <button type="button" wire:click="loginUser(<?php echo e($user->id); ?>)" class="w-full p-2 text-xs font-semibold text-center text-white rounded bg-main-800 xl:w-full focus:outline-none"> ورود </button> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="p-1 rounded text-white text-xs <?php if($user->has_app): ?> bg-green-700 <?php else: ?> bg-red-600 <?php endif; ?>"> <?php echo e($user->has_app ? 'دارد' : 'ندارد'); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <button type="button" wire:confirm="آیا از انجام این عملیات اطمینان دارید؟" wire:click="activateDemoAccount(<?php echo e($user->id); ?>)" class="w-full p-2 text-xs rounded border xl:w-full focus:outline-none flex gap-1 text-center justify-center font-semibold"> <?php if($user->isExpired()): ?> <span class="text-nowrap text-green-800 h-full w-full border-green-800 "> فعالسازی </span> <?php else: ?> <span class="text-nowrap text-red-800 h-full w-full border-red-800 "> غیر فعال </span> <?php endif; ?> </button> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if($user->transactions()->count() > 0 && $user->has_any_success_payment): ?> <div class="text-green-700 text-lg"> <i class="bx bx-check"></i> </div> <?php else: ?> <div class="text-red-600 text-lg"> <i class="bx bx-x"></i> </div> <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if(count($user->trackings)): ?> <p> <?php echo e($user->trackings()->latest()->first()->description); ?> </p> <p> <?php echo e($user->trackings()->latest()->first()->status_reason); ?> </p> <hr> <div dir="ltr" class="text-gray-700 text-left flex justify-between"> <span> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->trackings()->latest()->first()->date)->format('Y/m/d')); ?> </span> <span> <i class="bx bx-stopwatch"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->trackings()->latest()->first()->date)->format('H:i')); ?> </span> </div> <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if($user->marketer != null): ?> <div class="text-green-700 text-lg"> <i class="bx bx-check"></i> </div> <?php else: ?> <div class="text-red-600 text-lg"> <i class="bx bx-x"></i> </div> <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->created_at)->format('Y/m/d')); ?> </div> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-stopwatch"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->created_at)->format('H:i')); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->expire_date)->format('Y/m/d')); ?> </div> <div class="<?php if(\Carbon\Carbon::parse($user->expire_date)->greaterThanOrEqualTo(\Carbon\Carbon::now())): ?> text-green-700 <?php else: ?> text-red-700 <?php endif; ?>"> <?php echo e(\Morilog\Jalali\Jalalian::forge($user->expire_date)->ago()); ?> <?php if(\Carbon\Carbon::parse($user->expire_date)->greaterThanOrEqualTo(\Carbon\Carbon::now())): ?> دیگر <?php endif; ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($user->platform); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if( 0 < count($user->getRoleNames())): ?> <div class=" flex flex-wrap justify-start items-center"> <?php $__currentLoopData = $user->getRoleNames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="flex justify-center items-center bg-gray-200 rounded py-1 px-2 mb-2 ml-1"> <span class=" inline-block text-xs bold text-red-700"> <?php echo e($name); ?> </span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if($user->count_orders): ?> <?php echo e($user->count_orders); ?> <?php else: ?> --- <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if($user->last_order): ?> <?php echo e($user->last_order); ?> <?php else: ?> --- <?php endif; ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo $__env->make('tables.cells.actionsB',['link'=>'/admin/cutunixshot/payment/show/'.$user->id,'color'=>"bg-red-800 hover:bg-red-600 ",'name'=>"مشاهده "], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo $__env->make('tables.cells.actionsB',['link'=>'/admin/order/user/'.$user->id,'name'=>"مشاهده "], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo $__env->make('tables.cells.edit',['row'=>$user,'name'=>"admin.pages.modal.user.all.edit"], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </td> </tr> </tbody> </table> </div> </div> <hr class="my-4"> <h2>لیست پیگیری ها:</h2> <div class=" w-full mb-3"> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <table class="w-full text-left overflow-hidden"> <thead> <tr class="text-gray-900 bg-gray-100 "> <th class="truncate py-2 text-center text-sm font-light w-[1rem] px-1 "> # </th> <th class=" truncate py-2 text-center text-sm font-light w-[4rem] px-1 border-r border-gray-300 "> تاریخ ایجاد </th> <th class=" truncate py-2 text-center text-sm font-light px-1 border-r border-gray-300"> توضیحات </th> <th class=" truncate py-2 text-center text-sm font-light w-[4rem] px-1 border-r border-gray-300"> تاریخ پیگیری </th> <th class=" truncate py-2 text-center text-sm font-light w-[4rem] px-1 border-r border-gray-300"> پیگیری کننده </th> <th class="truncate py-2 text-center text-sm font-light w-[1rem] px-1 border-r border-gray-300"> وضعیت </th> <th class="truncate py-2 text-center text-sm font-light min-w-[3rem] px-1 border-r border-gray-300"> دلیل لغو یا... </th> <th class="truncate py-2 text-center text-sm font-light w-[1rem] px-1 border-r border-gray-300"> عملیات </th> </tr> </thead> <tbody> <?php $__currentLoopData = $result; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr wire:key='<?php echo e($row->id); ?>' class="w-full font-light text-gray-800 whitespace-no-wrap bg-white border border-b "> <td class="truncate px-2 py-2 text-sm text-center font-light "> <?php echo e($row->id); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->created_at)->format('Y/m/d')); ?> </div> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-stopwatch"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->created_at)->format('H:i')); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->description ?? '---'); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->date)->format('Y/m/d')); ?> </div> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-stopwatch"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->date)->format('H:i')); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div><?php echo e($row->tracker?->first_name ?? ''); ?> <?php echo e($row->tracker?->last_name ?? ''); ?></div> <div><?php echo e($row->tracker->mobile ?? ''); ?></div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="rounded <?php if($row->status == \App\Models\UserTrackingLog::STATUS_DONE): ?> bg-green-700 <?php elseif($row->status == \App\Models\UserTrackingLog::STATUS_PENDING): ?> bg-blue-600 <?php else: ?> bg-red-500 <?php endif; ?> text-white p-1"> <?php echo e($statuses[$row->status]); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->status_reason ?? '---'); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300 flex gap-1"> <button class="block w-full p-2 text-xs font-semibold text-center text-white rounded cursor-pointer bg-main-800 hover:text-white hover:bg-main-700 focus:outline-none" onclick='Livewire.dispatch("openModal", { component:"admin.pages.user.tracking.edit", arguments:<?php echo e(json_encode(["id" => $row->id])); ?>} )' > ویرایش </button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('/js/slimselect.min.js')); ?>"></script> <script type="text/javascript" src="<?php echo e(asset('/js/jalalidatepicker.min.js')); ?>"></script> <script> $('#loadingSpinner').hide(); </script> <script> jalaliDatepicker.startWatch({ time: true, }); </script> <?php $__env->stopSection(); ?> <?php /**PATH /home2/cutunixc/repositories/cutunix/resources/views/livewire/admin/pages/table/user/tracking/user.blade.php ENDPATH**/ ?>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa