���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: 900f54f72e18f7c307595bcd6e09463d.php
<div> <!------------ Filter ----------> <div class="my-2 w-full text-left " x-data="{open: false}"> <div class="flex justify-between w-full"> <div class="flex gap-2 flex-nowrap"> <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> <button x-show="open" class="bg-red-700 text-xs text-white p-1 rounded text-nowrap" wire:click="clearFilters"> حذف فیلتر </button> </div> <div class="flex gap-2 flex-nowrap"> <button class="bg-main-800 text-white p-2 rounded flex gap-2 items-center transition-all text-xs" wire:click="handelExcel" > <span wire:loading.class="!hidden" wire:target="handelExcel" class="flex w-full justify-center items-center"> </span> <span class="text-nowrap"> خروجی اکسل </span> <i class="bx bx-export"></i> <section wire:loading wire:target="handelExcel" wire:loading.class="w-full flex justify-center items-start" > <?php echo $__env->make('components.layouts.general.miniLoadingButton',['without_text'=>'true'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </section> </button> <button class="bg-green-700 text-white p-2 rounded flex gap-2 items-center hover:bg-green-600 transition-all text-xs" onclick='Livewire.dispatch("openModal", { component:"admin.pages.user.add", arguments:<?php echo e(json_encode(["loading"=>"true"])); ?>} )' > <i class="bx bx-plus"></i> <span>افزودن کاربر</span> </button> </div> </div> <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 flex space-y-0 space-x-2"> <div class="my-2 flex gap-4 items-center w-full flex-wrap"> <div class="flex justify-start items-center w-2/12"> <input type="text" wire:model.live='search' placeholder="جستجو" class="block w-full ml-2 border-gray-500 rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5"> </div> <div class="flex gap-2 items-center w-1/12 py-2 px-1 border-[1px] rounded border-gray-500 text-xs"> <label for="own" class="cursor-pointer text-nowrap"> کاربران من</label> <input type="checkbox" id="own" wire:model.live="own_users"> </div> <div class="flex gap-2 items-center w-3/12 text-xs border-[1px] rounded border-gray-500 py-2 px-1"> <label for="" class="text-nowrap">لاگین فعال:</label> <div class="flex gap-2 items-center text-xs bg-green-800 text-white p-1 rounded"> <input type="radio" name="has_app" id="has_app_1" wire:model.live="has_app" value="1" class="cursor-pointer"> <label for="has_app_1" class="px-1 rounded cursor-pointer flex items-center">دارد</label> </div> <div class="flex gap-2 items-center text-xs bg-red-800 text-white rounded p-1"> <input type="radio" name="has_app" id="has_app_0" wire:model.live="has_app" value="0" class="cursor-pointer"> <label for="has_app_0" class="px-1 rounded cursor-pointer flex items-center">ندارد</label> </div> <div class="flex gap-2 items-center text-xs bg-blue-600 text-white p-1 rounded"> <input type="radio" name="has_app" id="has_app_2" wire:model.live="has_app" value="all" class="cursor-pointer"> <label for="has_app_2" class="px-1 rounded cursor-pointer items-center flex">همه</label> </div> </div> <div class="flex gap-2 items-center w-4/12 text-xs border-[1px] rounded border-gray-500 py-2 px-1"> <label for="" class="text-nowrap">پرداختی ها:</label> <div class="flex gap-2 items-center text-xs bg-green-800 text-white p-1 rounded"> <input type="radio" name="has_payment" id="has_payment_1" wire:model.live="has_payment" value="true" class="cursor-pointer"> <label for="has_payment_1" class="px-1 rounded cursor-pointer flex items-center">موفق</label> </div> <div class="flex gap-2 items-center text-xs bg-red-800 text-white p-1 rounded"> <input type="radio" name="has_payment" id="has_payment_0" wire:model.live="has_payment" value="false" class="cursor-pointer"> <label for="has_payment_0" class="px-1 rounded cursor-pointer flex items-center">ناموفق</label> </div> <div class="flex gap-2 items-center text-xs bg-red-800 text-white p-1 rounded"> <input type="radio" name="has_payment" id="has_payment_n" wire:model.live="has_payment" value="null" class="cursor-pointer"> <label for="has_payment_n" class="px-1 rounded cursor-pointer flex items-center">ندارد</label> </div> <div class="flex gap-2 items-center text-xs bg-blue-600 text-white p-1 rounded"> <input type="radio" name="has_payment" id="has_payment_2" wire:model.live="has_payment" value="all" class="cursor-pointer"> <label for="has_payment_2" class="px-1 rounded cursor-pointer items-center flex">همه</label> </div> </div> <div class=" flex gap-2 items-center w-4/12"> <div class=" flex gap-2 items-center"> <div class="flex lg:w-6/12 gap-2 items-center"> <label for="own" class="cursor-pointer">از:</label> <input type="text" wire:model.live='start_date' readonly data-jdp autocomplete="off" name="start_date" class="block w-full ml-2 border-gray-500 rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 "> </div> <div class="flex lg:w-6/12 gap-2 items-center"> <label for="own" class="cursor-pointer">تا:</label> <input type="text" wire:model.live='end_date' readonly data-jdp autocomplete="off" name="end_date" class="block w-full ml-2 border-gray-500 rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 "> </div> </div> </div> </div> </div> </div> <!------------ Table ----------> <div class=" w-full"> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <table class="w-full text-left overflow-hidden" wire:poll> <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-[3rem] px-1 border-r border-gray-300"> لاگین فعال </th> <th class="truncate py-2 text-center text-sm font-light min-w-[1rem] px-1 border-r border-gray-300 text-wrap"> پرداخت موفق </th> <th class="truncate py-2 text-center text-sm font-light min-w-[1rem] px-1 border-r border-gray-300 text-wrap"> استفاده از کد اشتراک </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 max-w-24 overflow-y-auto 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-[3rem] 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-[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-[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-[10rem] 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> <?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"> <p><?php echo e($row->first_name ?? '-'); ?> <?php echo e($row->last_name ?? '-'); ?></p> <?php echo e($row->mobile); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300 <?php if($row->is_temporary): ?> bg-gray-200 <?php endif; ?>"> <div class="p-1 rounded text-white text-xs <?php if($row->has_app): ?> bg-green-700 <?php else: ?> bg-red-600 <?php endif; ?>"> <?php echo e($row->has_app ? 'دارد' : 'ندارد'); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if($row->transactions()->count() > 0 && $row->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($row->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($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"> <div class="flex gap-1"> <?php echo $__env->make('tables.cells.actionsB',['link'=>'/admin/user/'.$row->id . '/trackings','name'=>"مشاهده "], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if(count($row->trackings)): ?> <p> <?php echo e($row->trackings()->latest()->first()->description); ?> </p> <p> <?php echo e($row->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($row->trackings()->latest()->first()->date)->format('Y/m/d')); ?> </span> <span> <i class="bx bx-stopwatch"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->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(count($row->trackings)): ?> <?php echo e($row->trackings()?->latest()->first()?->tracker?->full_name); ?> <?php else: ?> -- <?php endif; ?> </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($row->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 flex gap-2"> <?php echo $__env->make('tables.cells.actionsB',['link'=>'/admin/cutunixshot/payment/show/'.$row->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"> <button type="button" wire:confirm="آیا از انجام این عملیات اطمینان دارید؟" wire:click="activateDemoAccount(<?php echo e($row->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($row->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 echo $__env->make('tables.cells.actionsB',['link'=>'/admin/order/user/'.$row->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'=>$row,'name'=>"admin.pages.modal.user.all.edit"], 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"> <div dir="ltr" class="text-gray-700 text-left"> <i class="bx bx-calendar"></i> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->expire_date)->format('Y/m/d')); ?> </div> <div class="<?php if(\Carbon\Carbon::parse($row->expire_date)->greaterThanOrEqualTo(\Carbon\Carbon::now())): ?> text-green-700 <?php else: ?> text-red-700 <?php endif; ?>"> <?php echo e(\Morilog\Jalali\Jalalian::forge($row->expire_date)->ago()); ?> <?php if(\Carbon\Carbon::parse($row->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($row->platform); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php if( 0 < count($row->getRoleNames())): ?> <div class=" flex flex-wrap justify-start items-center"> <?php $__currentLoopData = $row->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($row->city && $row->city->city ): ?> <?php echo e($row->city->city); ?> <?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($row->count_orders): ?> <?php echo e($row->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($row->last_order): ?> <?php echo e($row->last_order); ?> <?php else: ?> --- <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div class="mt-2 flex gap-2"> <input type="text" class="rounded border border-gray-500 w-1/12" wire:keydown.enter="goToThisPage" wire:model.live="currentPage"> <?php echo e($result->links()); ?> </div> </div> </div> <?php /**PATH /home2/cutunixc/repositories/cutunix/resources/views/livewire/admin/pages/table/user/cutunixshot.blade.php ENDPATH**/ ?>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa