���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
/
npln
/
resources
/
views
/
livewire
/
admin
/
pages
/
dashboard
/
Viewing: services.blade.php
<div class="w-full "> @php $previous=explode('/',url()->previous()); $page_name_edit=$previous[count($previous)-3].'/'.$previous[count($previous)-2]; $page_name_add=$previous[count($previous)-4].'/'.$previous[count($previous)-3]; $id=''; if($page_name_add == 'factor/add'){ $id=$previous[count($previous)-1]; }else if($page_name_edit == 'factor/edit' ){ $factor=App\Models\Factor::where('id',$previous[count($previous)-1])->first(); if($factor){ $id=$factor->order_id; } } @endphp @if(($page_name_edit == 'factor/edit' || $page_name_add == 'factor/add') && $id) <button id="openOrder{{$id}}" onclick='Livewire.dispatch("openModal", { component:"admin.pages.modal.dashboard.admin", arguments: {{ json_encode(["order_id" =>$id,"loading"=>"true"]) }}})' data-id="{{ $id}}" class="hidden "> مشاهده </button> @endif <div class="px-3 container_main w-fit mt-14" wire:poll> <div wire:ignore> @include('components.layouts.general.miniloading',['target'=>'changeOrderStatus']) </div> @foreach ($status as $item) <div class="bg-gray-200 border-t-2 column-main border-main-800" > <h1 class="py-3 mb-2 text-sm font-bold border-b border-gray-300 ">{{ $item->title }}</h1> <div class=" overflow-y-scroll column h-[80vh]" data-title="{{ $item->title }}"> @if (Str::contains($item->title, 'در حال پردازش') == 1) @foreach ($orders->where('status_services','send') as $row) <a href="/admin/dashboard/order/{{ $row->id }}" class="block p-2 mx-2 mb-2 border-t-2 list-group-item border-main-700" data-id="{{ $row->id }}" draggable="true"> <div class="flex items-start justify-between"> <div class="w-full text-sm "> <div class="flex items-center justify-between w-full mb-2"> <div class="w-7/12 flex items-start justify-start text-right"> <span class="flex items-start bold justify-start text-xs text-gray-600 truncate"> @if ($row->customer && ($row->customer->first_name || $row->customer->last_name || $row->customer->mobile)) @if ( $row->customer->first_name && $row->customer->last_name) {{ $row->customer->first_name.' '.$row->customer->last_name }} @elseif($row->customer->first_name) {{ $row->customer->first_name}} @else {{ $row->customer->mobile}} @endif @else @if ( $row->user->first_name && $row->user->last_name) {{ $row->user->first_name.' '.$row->user->last_name }} @elseif($row->user->first_name) {{ $row->user->first_name}} @else {{ $row->user->mobile}} @endif @endif </span> </div> <div class=" w-5/12 text-left truncate" dir="ltr"> {{\App\Helpers\dateConvert($row->created_at,'format' )}} </div> </div> <div class="flex items-center justify-between w-full mb-2"> <div class="w-7/12 text-right "> <span class="block text-xs text-gray-600 " >{{ $row->category->title }}</span> </div> <div class="w-5/12 text-left text-xs truncate"> {{ $row->status_em_services}} </div> </div> <div class="flex items-center justify-between w-full"> <div class="w-7/12 text-right "> <span class="inline-block text-xs text-gray-600 truncate" > @if ($row->employ) {{ $row->employ->first_name.' '.$row->employ->last_name}} @else طراح ندارد @endif </span> </div> <div class="w-5/12 text-left truncate text-xs"> {{ $row->number}} </div> </div> </div> </div> </a> @endforeach @endif @foreach ($orders->where('status_services',$item->title) as $row) <a href="/admin/dashboard/order/{{ $row->id }}" class="block p-2 mx-2 mb-2 border-t-2 list-group-item border-main-700" data-id="{{ $row->id }}" draggable="true"> <div class="flex items-start justify-between"> <div class="w-full text-sm "> <div class="flex items-center justify-between w-full mb-2"> <div class="w-7/12 flex items-start justify-start text-right"> <span class="flex items-start bold justify-start text-xs text-gray-600 truncate"> @if ($row->customer && ($row->customer->first_name || $row->customer->last_name || $row->customer->mobile)) @if ( $row->customer->first_name && $row->customer->last_name) {{ $row->customer->first_name.' '.$row->customer->last_name }} @elseif($row->customer->first_name) {{ $row->customer->first_name}} @else {{ $row->customer->mobile}} @endif @else @if ( $row->user->first_name && $row->user->last_name) {{ $row->user->first_name.' '.$row->user->last_name }} @elseif($row->user->first_name) {{ $row->user->first_name}} @else {{ $row->user->mobile}} @endif @endif </span> </div> <div class=" w-5/12 text-left truncate" dir="ltr"> {{\App\Helpers\dateConvert($row->created_at,'format' )}} </div> </div> <div class="flex items-center justify-between w-full mb-2"> <div class="w-7/12 text-right "> <span class="block text-xs text-gray-600 " >{{ $row->category->title }}</span> </div> <div class="w-5/12 text-left text-xs truncate"> {{ $row->status_em_services}} </div> </div> <div class="flex items-center justify-between w-full"> <div class="w-7/12 text-right "> <span class="inline-block text-xs text-gray-600 truncate" > @if ($row->employ) {{ $row->employ->first_name.' '.$row->employ->last_name}} @else طراح ندارد @endif </span> </div> <div class="w-5/12 text-left truncate text-xs"> {{ $row->number}} </div> </div> </div> </div> </a> @endforeach </div> </div> @endforeach </div> </div> @section('scripts') <script> document.addEventListener('livewire:navigated', () => { const columns = document.querySelectorAll(".column"); columns.forEach((column) => { new Sortable(column, { group: "shared", animation: 150, ghostClass: "blue-background-class", onEnd: function(evt ) { Livewire.dispatch('changeOrderStatus', { id : $(evt.item).attr("data-id"),title:$(evt.to).attr("data-title") }); }, }); }); }); </script> @endsection
Coded With 💗 by
0x6ick Mod By V1rus_Alfa