���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: ba83659ce20ea8519c3c2e38f5afccc3.php
<?php use Carbon\Carbon;use Morilog\Jalali\Jalalian; ?> <div> <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> <div class=" w-full" wire:poll> <?php $__split = function ($name, $params = []) { return [$name, $params]; }; [$__name, $__params] = $__split('admin.pages.process-management.bot.queue', []); $__html = app('livewire')->mount($__name, $__params, 'lw-3041303429-0', $__slots ?? [], get_defined_vars()); echo $__html; unset($__html); unset($__name); unset($__params); unset($__split); if (isset($__slots)) unset($__slots); ?> <div class="w-full mx-auto mt-8 shadow rounded" x-data="{ activeTab: 'pending', tabs: [ { id: 'pending', label: 'در حال بررسی', class: 'border-orange-500 bg-main-700'}, { id: 'unprocessable', label: 'غیر قابل پردازش', class: 'border-red-500 bg-red-50'}, { id: 'successful', label: 'موفق', class: 'border-green-500 bg-green-50'} ], init() { // Initialize from URL on component load this.initFromUrl(); // Listen for browser back/forward button window.addEventListener('popstate', () => { this.initFromUrl(); }); }, initFromUrl() { const urlParams = new URLSearchParams(window.location.search); const tabFromUrl = urlParams.get('tab'); const validTabs = this.tabs.map(tab => tab.id); if (tabFromUrl && validTabs.includes(tabFromUrl)) { this.activeTab = tabFromUrl; } else { this.activeTab = 'pending'; // default tab } }, setOrderActiveTab(tabId) { this.activeTab = tabId; this.updateUrl(tabId); }, updateUrl(tabId) { const url = new URL(window.location); if (tabId === 'pending') { // Remove tab parameter for default tab url.searchParams.delete('tab'); } else { url.searchParams.set('tab', tabId); } // Update URL without page reload window.history.pushState({}, '', url.toString()); }, getOrderTabClass(tab) { if (this.activeTab === tab.id) { return tab.class + ' border-b-2'; } return 'border-transparent text-gray-500 hover:text-gray-700 hover:bg-gray-50 border-b-2'; } }"> <!-- Tab Component --> <div class="bg-white rounded-lg shadow-lg overflow-hidden"> <!-- Tab Headers --> <div class="border-b border-gray-200"> <nav class="flex space-x-0" aria-label="Tabs"> <template x-for="tab in tabs" :key="tab.id"> <button @click="setOrderActiveTab(tab.id)" class="whitespace-nowrap py-4 px-6 font-medium bold transition-colors duration-200 focus:outline-none flex items-center space-x-2" :class="getOrderTabClass(tab)" :aria-selected="activeTab === tab.id" role="tab" > <span x-text="tab.label"></span> </button> </template> </nav> </div> <!-- Tab Content --> <div class="p-6"> <!-- Pending Tab --> <div x-show="activeTab === 'pending'" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 transform translate-y-4" x-transition:enter-end="opacity-100 transform translate-y-0"> <div class="block"> <?php echo e($pendingTasks->links()); ?> </div> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <h3 class="m-2 p-2 text-center border bg-main-700 bold text-lg"> در حال بررسی برای پردازش (<?php echo e($pendingTasks->total()); ?>) از 120 روز گذشته </h3> <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-[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 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"> تاریخ ثبت </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> <?php $__currentLoopData = $pendingTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr wire:key='<?php echo e($key + 1); ?>' 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 onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order_id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->user?->full_name); ?> (<?php echo e($row->user?->mobile); ?>) </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->name); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->platform); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <a target="_blank" href="https://shot.cutunix.com/<?php echo e($row->order_form); ?>" class="block w-full py-1 text-sm text-center text-white bg-blue-700 rounded-md cursor-pointer hover:text-white hover:bg-blue-600 focus:outline-none"> مشاهده </a> </td> <td dir="ltr" onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="flex w-full text-center justify-center" dir="rtl"> <?php echo e(Carbon::parse($row->created_at)->diffForHumans()); ?> </div> <?php echo e(Jalalian::forge($row->created_at)->format('Y/m/d H:i:s')); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <button wire:click="sendSheetToBot(<?php echo e($row->id); ?>)" class="bg-blue-300 rounded p-2 shadow" wire:loading.class="hidden"> پردازش مجدد ورق </button> <button wire:click="sendOrderToBot(<?php echo e($row->order_id); ?>)" class="bg-blue-300 rounded p-2 shadow" wire:loading.class="hidden"> پردازش مجدد سفارش </button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <!-- Unprocessable Tab --> <div x-show="activeTab === 'unprocessable'" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 transform translate-y-4" x-transition:enter-end="opacity-100 transform translate-y-0"> <div class="block"> <?php echo e($unprocessableTasks->links()); ?> </div> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <h3 class="m-2 p-2 text-center border bg-red-500 bold text-lg"> سفارشات غیر قابل پردازش (<?php echo e($unprocessableTasks->total()); ?>) از 120 روز گذشته </h3> <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-[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 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"> تعداد تکه </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 min-w-[8rem] px-1 border-r border-gray-300"> عملیات </th> </tr> </thead> <tbody> <?php $__currentLoopData = $unprocessableTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr wire:key='<?php echo e($key + 1); ?>' 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 onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order_id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->user?->full_name); ?> (<?php echo e($row->user?->mobile); ?>) </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->name); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->platform); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <a target="_blank" href="https://shot.cutunix.com/<?php echo e($row->order_form); ?>" class="block w-full py-1 text-sm text-center text-white bg-blue-700 rounded-md cursor-pointer hover:text-white hover:bg-blue-600 focus:outline-none"> مشاهده </a> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->slices->count()); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->panel_height); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->panel_width); ?> </td> <td dir="ltr" onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="flex w-full text-center justify-center" dir="rtl"> <?php echo e(Carbon::parse($row->created_at)->diffForHumans()); ?> </div> <?php echo e(Jalalian::forge($row->created_at)->format('Y/m/d H:i:s')); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <!-- Successful Tab --> <div x-show="activeTab === 'successful'" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 transform translate-y-4" x-transition:enter-end="opacity-100 transform translate-y-0"> <div class="block shadow-md rounded-t-xl overflow-x-auto"> <h3 class="m-2 p-2 text-center border bg-green-400 bold text-lg"> سفارشات موفق 24 ساعت گذشته (<?php echo e(count($successfulTasks)); ?>) </h3> <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-[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 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"> اپتی کات </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> </tr> </thead> <tbody> <?php $__currentLoopData = $successfulTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr wire:key='<?php echo e($key + 1); ?>' 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 onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order_id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->id); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->user?->full_name); ?> (<?php echo e($row->user?->mobile); ?>) </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->name); ?> </td> <td onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <?php echo e($row->order?->platform); ?> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <a target="_blank" href="<?php echo e($row->win_cam_pdf); ?>" class="block w-full py-1 text-sm text-center text-white bg-blue-700 rounded-md cursor-pointer hover:text-white hover:bg-blue-600 focus:outline-none"> مشاهده </a> </td> <td class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <a target="_blank" href="<?php echo e($row->opticut_file); ?>" class="block w-full py-1 text-sm text-center text-white bg-blue-700 rounded-md cursor-pointer hover:text-white hover:bg-blue-600 focus:outline-none"> مشاهده </a> </td> </td> <td dir="ltr" onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="flex w-full text-center justify-center" dir="rtl"> <?php echo e(Carbon::parse($row->created_at)->diffForHumans()); ?> </div> <?php echo e(Jalalian::forge($row->created_at)->format('Y/m/d H:i:s')); ?> </td> <td dir="ltr" onclick="window.location='/admin/dashboard/order/<?php echo e($row->order_id); ?>'" class="truncate px-2 py-2 text-sm text-center font-light border-r border-gray-300"> <div class="flex w-full text-center justify-center" dir="rtl"> <?php echo e(Carbon::parse($row->updated_at)->diffForHumans()); ?> </div> <?php echo e(Jalalian::forge($row->updated_at)->format('Y/m/d H:i:s')); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php /**PATH /home2/cutunixc/repositories/cutunix/resources/views/livewire/admin/pages/process-management/all/table.blade.php ENDPATH**/ ?>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa