���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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
/
resources
/
views
/
livewire
/
admin
/
pages
/
bot
/
Viewing: table.blade.php
<div> <!------------ Filter ----------> <div class="mb-3"> <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> <!------------ 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-[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-[9rem] px-1 border-r border-gray-300 "> وضعیت </th> <th class="truncate py-2 text-center text-sm font-light min-w-[9rem] px-1 border-r border-gray-300 "> نوع </th> <th class="truncate py-2 text-center text-sm font-light min-w-[9rem] px-1 border-r border-gray-300 "> آی پی </th> <th class="truncate py-2 text-center text-sm font-light min-w-[9rem] px-1 border-r border-gray-300 "> پورت </th> <th class="truncate py-2 text-center text-sm font-light min-w-[9rem] 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"> دستور PING </th> <th class="truncate py-2 text-center text-sm font-light min-w-[8rem] px-1 border-r border-gray-300"> عملیات </th> </tr> </thead> <tbody> @foreach ($processBots as $key => $bot) <tr wire:key='{{ $bot['id'] }}' class="w-full font-light text-gray-800 cursor-pointer hover:bg-main-800 hover:text-white whitespace-no-wrap bg-white border border-b"> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->id }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->title }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <span class="p-1 rounded text-white @if($bot->status == \App\Models\ProcessBot::STATUS_ACTIVE || $bot->status == \App\Models\ProcessBot::STATUS_AVAILABLE) bg-green-800 @else bg-red-700 @endif"> {{ $statuses[$bot->status] }} </span> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->type }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->remote_ip_address }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->remote_port_number ?? '-' }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ $bot->queue_number }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> @if ($bot->last_response_at <= now()->subMinutes(2)) <span class="p-1 rounded text-white bg-red-700"> غیرفعال </span> @else <span class="p-1 rounded text-white bg-green-800"> {{ $statuses[$bot->last_response_status] }} </span> @endif </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> {{ \App\Helpers\dateConvert($bot->last_response_at,'formatS') }} </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <a wire:click.prevent="pingIpAddress({{ $bot }})" wire:loading.attr="disabled" class="rounded px-2 m-2 bg-blue-300 text-black"> اجرا </a> </td> <td> <div class="flex gap-2 mx-auto justify-center"> @include('tables.cells.edit',['row'=>$bot ,'name'=>"admin.pages.bot.modal.edit"]) <button class="rounded p-1 bg-red-700 text-white" wire:confirm="آیا از انجام این عملیات اطمینان دارید؟" wire:click="deleteItem({{ $bot->id }})"> حذف </button> </div> </td> </tr> @endforeach </tbody> </table> </div> <div class="mt-2"> {{-- {{ $result->links() }}--}} </div> </div> </div>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa