���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
/
resources
/
views
/
livewire
/
admin
/
pages
/
factor
/
Viewing: edit.blade.php
<div class="w-full pt-5 bg-white mx-auto mt-5 px-5 rounded-md shadow lg:w-[95%]"> <section class="w-full " dir="rtl"> <section class="py-3 mb-5 text-center separator" > <h2 class="px-5 text-base text-black bold" dir="ltr"> ویرایش فاکتور فروش </h2> </section> <div> <div class="w-full " > <form wire:submit="submit" class="w-full " > <section class=" w-full flex mb-5 justify-start items-center flex-wrap"> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4"> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> شماره فاکتور :</label> <input type="text" wire:model="form.number" class=" h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4 "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> تاریخ :</label> <input type="text" wire:model="form.date" class=" h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4 "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> شماره تماس فروشنده :</label> <input type="text" wire:model="form.tel_seller" class=" h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4 "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> فروشنده :</label> <input type="text" wire:model="form.seller" class=" h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4 "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> خریدار :</label> <input type="text" wire:model="form.buyer" class="h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-2/12 mb-4 "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> شماره تماس خریدار :</label> <input type="text" wire:model="form.tel_buyer" class="h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> </section> <section class="flex separator items-center mb-5 justify-between w-full pb-5"> <div class="flex items-start justify-center flex-col lg:flex-row px-2 "> <button type="button" onclick='Livewire.dispatch("openModal", {component: "admin.pages.factor.modal.add-service", arguments:{{ json_encode([ "kol_names"=>["فروش کالا","درآمد خدمات" ],"loading"=>"true"])}}} )' class=" w-full mb-3 lg:mb-0 lg:w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 lg:ml-2 border-main-800 hover:bg-orange-50 border rounded cursor-pointer px-4"> افزودن خدمات </button> <button wire:click="handelRow('increment')" type="button" class=" w-full mb-3 lg:mb-0 lg:w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 ml-2 border-green-500 hover:bg-green-50 border rounded cursor-pointer px-4"> <i class='mx-1 text-xl bx bx-plus text-green-500' ></i> <span wire:loading.class="!hidden " wire:target="handelRow('increment')" class="flex w-full justify-center items-center"> افزودن سطر </span> <section wire:loading wire:target="handelRow('increment')" wire:loading.class=" w-full flex justify-center items-start "> @include('components.layouts.general.miniLoadingButton',['without_text'=>'true']) </section> </button> <button wire:click="handelRow('decrement')" type="button" class=" w-full mb-3 lg:mb-0 lg:w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 border-red-500 hover:bg-red-50 border rounded cursor-pointer px-4"> <i class='mx-1 text-xl bx bx-minus text-red-500' ></i> <span wire:loading.class="!hidden " wire:target="handelRow('decrement')" class="flex w-full justify-center items-center"> کاهش سطر </span> <section wire:loading wire:target="handelRow('decrement')" wire:loading.class=" w-full flex justify-center items-start "> @include('components.layouts.general.miniLoadingButton',['without_text'=>'true']) </section> </button> </div> </section> <section class=" w-full"> @for ($i = 0; $i < $num; $i++) <div class=" w-full flex mb-3 pb-4 justify-start items-end border-b-2 border-dashed border-main-900"> <div > <div class="w-10 h-9 flex items-center rounded justify-center border-2 border-red-700 border-dashed "> <input type="text" wire:model.live.lazy="form.rows.{{$i}}.code" class="text-base text-center bold mx-auto w-[98%] h-full border-none focus:border-none focus:ring-0 " /> </div> </div> <div class="w-full lg:w-3/12 xl:w-[25%] "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-gray-800"> خدمات :</label> <select wire:change="handelRows($event.target.value,'detailed','{{$i}}')" wire:model="form.rows.{{$i}}.detailed" class=" h-9 border border-gray-400 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > <option value="0">انتخاب کنید ...</option> @foreach ($detailed as $row) <option @if($item && ($row->id == $item->detailed_id) ) selected="selected" @endif value="{{ $row->id }}"> {{ $row->name }} </option> @endforeach </select> </div> </div> <div class="w-full lg:w-3/12 xl:w-[25%] "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-gray-800"> تعداد :</label> <input type="text" wire:model.live.lazy="form.rows.{{$i}}.count" wire:change="handelRows($event.target.value,'count','{{$i}}')" class=" h-9 border border-gray-400 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-[25%] "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-gray-800"> قیمت واحد :</label> <input type="text" wire:model.live.lazy="form.rows.{{$i}}.price" wire:change="handelRows($event.target.value,'price','{{$i}}')" class=" h-9 border border-gray-400 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-3/12 xl:w-[25%] "> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-gray-800"> قیمت کل :</label> <input type="text" wire:model.live.lazy="form.rows.{{$i}}.amount" wire:change="handelRows($event.target.value,'amount','{{$i}}')" class=" h-9 border border-gray-400 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> </div> @endfor </section> <section class="items-start mt-5 flex-wrap justify-between w-full flex"> <div class="w-full lg:w-4/12 mb-4"> <div class="mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> جمع کل فاکتور :</label> <input type="text" alt="total" wire:model.live.lazy="form.total" class=" h-9 border number-separator border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-4/12 mb-4"> <div class=" mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> تخفیف :</label> <input type="text" alt="discount" wire:model.live.lazy="form.discount" class=" h-9 border number-separator border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full lg:w-4/12 mb-4"> <div class=" mx-auto w-[98%]"> <label class="block text-sm mb-2 text-black"> جمع کل :</label> <input type="text" alt="total_price" wire:model.live.lazy="form.total_price" class=" number-separator h-9 border border-gray-300 text-gray-900 text-sm rounded focus:ring-main-700 focus:border-main-700 block w-full " > </div> </div> <div class="w-full mb-4"> <div class=" mx-auto w-[99%]"> <label class="block text-sm mb-2 text-black"> شرح فاکتور :</label> <textarea wire:model.live="description" rows="3" class="block w-full py-3 mt-2 text-sm text-gray-900 placeholder-gray-600 border border-gray-300 rounded focus:ring-main-700 focus:border-main-700" type="text" ></textarea> </div> </div> </section> <section class="flex flex-wrap justify-end w-full pl-3 pr-2 mx-auto mt-8 "> <div class="flex items-end justify-end w-full mb-6 lg:pr-2 lg:w-2/12"> <a href="{{ url()->previous() }}" class=" flex justify-center items-center w-full h-8 mx-2 text-sm text-white rounded cursor-pointer bg-blue-700 focus:outline-none "> انصراف </a> <button type="submit" class="flex justify-center items-center w-full h-8 text-sm text-white rounded cursor-pointer bg-main-800 focus:outline-none "> <span wire:loading.class="!hidden " wire:target='submit' class="flex w-full justify-center items-center"> ذخیره </span> <section wire:loading wire:target='submit' wire:loading.class=" w-full flex justify-center items-start "> @include('components.layouts.general.miniLoadingButton',['without_text'=>'true']) </section> </button> </div> </section> </form> </div> </div> </section> </div> @section('scripts') <script type='text/javascript' > document.addEventListener('livewire:initialized', () => { // Currency Separator var commaCounter = 10; function numberSeparator(Number) { Number += ''; for (var i = 0; i < commaCounter; i++) { Number = Number.replace(',', ''); } x = Number.split('.'); y = x[0]; z = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(y)) { y = y.replace(rgx, '$1' + ',' + '$2'); } commaCounter++; return y + z; } // Set Currency Separator to input fields $(document).on('keypress , paste', '.number-separator', function (e) { if (/^-?\d*[,.]?(\d{0,3},)*(\d{3},)?\d{0,3}$/.test(e.key)) { $('.number-separator').on('input', function () { @this.form[$(this)[0].alt]=numberSeparator(e.target.value) ; }); } else { e.preventDefault(); return false; } }); }); </script> @endsection
Coded With 💗 by
0x6ick Mod By V1rus_Alfa