���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
/
dashboard
/
Viewing: admin.blade.php
<div class="w-full " wire:poll > <div wire:ignore> @include('components.layouts.general.miniloading',['target'=>'changeOrderStatus']) </div> <div class="fixed top-0 w-full mb-2 mt-10 pt-10 pb-3 bg-white px-5 pl-[4rem] shadow-sm"> <livewire:general.multiple-select :data="$services" :show_column_1="'first_name'" :show_column_2="'last_name'" :name="'service_id'" :idTag="'serviceTag_id'" :text="'نام خدماتی را انتخاب کنید'"> @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.emit("openModal", "admin.modal.dashboard.admin", {{ json_encode(["order_id" =>$id,"loading"=>"true"]) }})' data-id="{{ $id}}" class="hidden "> مشاهده </button> @endif </div> <div class="px-3 container_main w-fit mt-[9rem]" > @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-[77vh] " data-title="{{ $item->title }}"> @if (Str::contains($item->title, 'در حال پردازش') == 1) @foreach ($orders->where('status_services','send') as $row) <div class="list-group-item border-t-2 text-left px-2 pt-2 mx-2 mb-2 border-main-700" data-id="{{ $row->id }}" draggable="true"> <a href="/admin/dashboard/order/{{ $row->id }}" class="block " > <div class="flex items-start justify-between"> <div class="w-6/12 text-sm "> <div class="mb-2 text-right "> <span class="block text-sm text-black truncate " >شماره سفارش : {{ $row->number}}</span> </div> <div class="mb-2 text-right "> <span class="block text-sm text-gray-600 truncate" >{{ $row->status_em_services}}</span> </div> <div class="text-right "> <span class="inline-block text-xs text-gray-600 truncate" >نام سفارش : @if ($row->name) {{ $row->name}} @else - - - @endif </span> </div> </div> <div class="w-6/12 mb-3 text-sm "> <div class="mb-3 text-left truncate" dir="ltr"> {{\App\Helpers\dateConvert($row->created_at,'formatS' )}} </div> <div class="text-left truncate"> @if ($row->sheet_status_services) {{ $row->sheet_status_services }} <br /> @endif @if ($row->sheet_status_customer) {{ $row->sheet_status_customer }} @endif </div> </div> </div> <div class="w-full text-sm "> <div class="flex items-start justify-start text-right"> <span class="inline-block text-xs text-gray-600 truncate" >نام مشتری : </span> <span class="flex items-start 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 }} @if(auth()->user()->can( 'admin')) <span>( {{ $row->customer->mobile}})</span> @endif @elseif($row->customer->first_name) {{ $row->customer->first_name}} @if(auth()->user()->can( 'admin')) <span>( {{ $row->customer->mobile}})</span> @endif @else {{ $row->customer->mobile}} @endif @else @if ( $row->user->first_name && $row->user->last_name) {{ $row->user->first_name.' '.$row->user->last_name }} @if(auth()->user()->can( 'admin')) <span>( {{ $row->user->mobile}})</span> @endif @elseif($row->user->first_name) {{ $row->user->first_name}} @if(auth()->user()->can( 'admin')) <span>( {{ $row->user->mobile}})</span> @endif @else {{ $row->user->mobile}} @endif @endif </span> </div> </div> </a> <i wire:click="change_status('{{ $row->id }}','کنسل')" class='bx bx-x cursor-pointer text-red-600'></i> </div> @endforeach @endif @foreach ($orders->where('status_services',$item->title) as $row) <div class="list-group-item border-t-2 text-left px-2 pt-2 mx-2 mb-2 border-main-700" data-id="{{ $row->id }}" draggable="true"> <a href="/admin/dashboard/order/{{ $row->id }}" class="block " > <div class="flex items-start justify-between"> <div class="w-6/12 text-sm "> <div class="mb-2 text-right "> <span class="block text-sm text-black truncate " >شماره سفارش : {{ $row->number}}</span> </div> <div class="mb-2 text-right "> <span class="block text-sm text-gray-600 truncate" >{{ $row->status_em_services}}</span> </div> <div class="text-right "> <span class="inline-block text-xs text-gray-600 truncate" >نام سفارش : @if ($row->name) {{ $row->name}} @else - - - @endif </span> </div> </div> <div class="w-6/12 mb-3 text-sm "> <div class="mb-3 text-left truncate" dir="ltr"> {{\App\Helpers\dateConvert($row->created_at,'formatS' )}} </div> <div class="text-left truncate"> @if ($row->sheet_status_services) {{ $row->sheet_status_services }} <br /> @endif @if ($row->sheet_status_customer) {{ $row->sheet_status_customer }} @endif </div> </div> </div> <div class="w-full text-sm "> <div class="flex items-start justify-start text-right"> <span class="inline-block text-xs text-gray-600 truncate" >نام مشتری : </span> <span class="flex items-start 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 }} @if(auth()->user()->can( 'admin')) <span>( {{ $row->customer->mobile}})</span> @endif @elseif($row->customer->first_name) {{ $row->customer->first_name}} @if(auth()->user()->can( 'admin')) <span>( {{ $row->customer->mobile}})</span> @endif @else {{ $row->customer->mobile}} @endif @else @if ( $row->user->first_name && $row->user->last_name) {{ $row->user->first_name.' '.$row->user->last_name }} @if(auth()->user()->can( 'admin')) <span>( {{ $row->user->mobile}})</span> @endif @elseif($row->user->first_name) {{ $row->user->first_name}} @if(auth()->user()->can( 'admin')) <span>( {{ $row->user->mobile}})</span> @endif @else {{ $row->user->mobile}} @endif @endif </span> </div> </div> </a> <i wire:click="change_status('{{ $row->id }}','کنسل')" class='bx bx-x cursor-pointer text-red-600'></i> </div> @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('startLoading' ); 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