OwlCyberSecurity - MANAGER
Edit File: dd1add43b1b719ccc41c261b65c3243e.php
<?php if (isset($component)) { $__componentOriginalbe23554f7bded3778895289146189db7 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbe23554f7bded3778895289146189db7 = $attributes; } ?> <?php $component = Filament\View\LegacyComponents\Page::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::page'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Filament\View\LegacyComponents\Page::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <div class="dark:divide-gray-700"> <div class="flex flex-col md:flex-row gap-10"> <div class="basis-1/4 bg-white text-gray-500 rounded-sm p-3 flex flex-col gap-[10px] relative"> <div class="bg-[#717071] text-white rounded-sm p-3 absolute w-[94%] right-[3%] top-[-20px]"> سفارش: <?php echo e($invoice->code); ?> </div> <div class=" mt-[30px] flex flex-col gap-[10px]"> <div class="flex flex-col gap-2 justify-between lg:flex-row"> <button class="p-2 text-[12px] lg:w-1/2 bg-green-500 text-white rounded-md" wire:click="confirmDialog"> ثبت پیش فاکتور </button> <button class="p-2 text-[12px] lg:w-1/2 bg-gray-500 text-white rounded-md"> نوع پرداخت: دو مرحله </button> </div> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 bg-blue-100 rounded flex justify-between items-center"> <div class="flex items-center gap-2"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-blue-500"> <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"/> </svg> </div> <h4 class="font-medium text-sm text-blue-500">جزییات اطلاعات سفارش دهنده</h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class="bg-white py-4 "> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path fill-rule="evenodd" d="M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z" clip-rule="evenodd"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->user->name); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path d="M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z"/> <path d="M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->user->email); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path d="M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"/> <path d="M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->user->phone_number); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path fill-rule="evenodd" d="M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z" clip-rule="evenodd"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->user->cell_number); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path d="M12.75 12.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM7.5 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM8.25 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM9.75 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM10.5 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM12.75 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM14.25 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM15 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM16.5 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM15 12.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM16.5 13.5a.75.75 0 100-1.5.75.75 0 000 1.5z"/> <path fill-rule="evenodd" d="M6.75 2.25A.75.75 0 017.5 3v1.5h9V3A.75.75 0 0118 3v1.5h.75a3 3 0 013 3v11.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V7.5a3 3 0 013-3H6V3a.75.75 0 01.75-.75zm13.5 9a1.5 1.5 0 00-1.5-1.5H5.25a1.5 1.5 0 00-1.5 1.5v7.5a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5v-7.5z" clip-rule="evenodd"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->invoicedate); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path d="M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625z"/> <path d="M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->code); ?></h4> </div> <div class="flex items-center gap-2 border-b py-2"> <div class=" bg-[#eee] p-1 rounded-md"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6"> <path fill-rule="evenodd" d="M11.54 22.351l.07.04.028.016a.76.76 0 00.723 0l.028-.015.071-.041a16.975 16.975 0 001.144-.742 19.58 19.58 0 002.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 00-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 002.682 2.282 16.975 16.975 0 001.145.742zM12 13.5a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"/> </svg> </div> <h4 class="text-sm text-slate-400"><?php echo e($invoice->usersAddress?->content); ?></h4> </div> </div> </div> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 bg-blue-100 rounded flex justify-between items-center"> <div class="flex items-center gap-2"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-blue-500"> <path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"/> </svg> </div> <h4 class="font-medium text-sm text-blue-500">مدیریت سفارش</h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class="bg-white py-4 "> <div class="flex flex-col text-sm mt-4"> <label class="text-right p-2 h-full">انتخاب دریافت مالیات :</label> <select id="payTax" wire:model="payTax" class="text-[12px] p-1 basis-3/4 border-gray-300 rounded-md text-center"> <option value="1">مالیات گرفته شود</option> <option value="0">مالیات گرفته 2% گرفته شود</option> <option value="2">مالیات گرفته نشود</option> </select> </div> <label class="text-right p-2 h-full">وارد کردن شماره شبا واریزی و توضیحات پرداخت :</label> <textarea id="payDescription" wire:model="payDescription" class="text-[12px] w-full p-1 border-gray-300 rounded-md"><?php echo e($invoice->pay_description); ?></textarea> <label class="text-right p-2 h-full">توضیحات سفارش :</label> <textarea readonly id="agent-desc" class="text-[12px] w-full p-1 border-gray-300 rounded-md"><?php echo e($invoice->description); ?></textarea> </div> </div> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 bg-blue-100 rounded flex justify-between items-center"> <div class="flex items-center gap-2"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-blue-500"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m-3-2.818l.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/> </svg> </div> <h4 class="font-medium text-sm text-blue-500">ثبت هزینه اضافه</h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class=" bg-white "> <?php $__split = function ($name, $params = []) { return [$name, $params]; }; [$__name, $__params] = $__split('invoice-management.add-other-cost', ['invoiceId' => $invoice->id,'regionId' => $invoice->invoiceItems[0]->region_id ?? 1]); $__html = app('livewire')->mount($__name, $__params, 'lw-4060075931-0', $__slots ?? [], get_defined_vars()); echo $__html; unset($__html); unset($__name); unset($__params); unset($__split); if (isset($__slots)) unset($__slots); ?> </div> </div> <!--[if BLOCK]><![endif]--><?php if($userdiscount): ?> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 bg-blue-100 rounded flex justify-between items-center"> <div class="flex items-center gap-2"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-blue-500"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m-3-2.818l.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/> </svg> </div> <h4 class="font-medium text-sm text-blue-500">کد تخفیف یا کارت هدیه</h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class=" bg-white "> <div class="pt-2 w-full flex gap-2"> <label class="text-[12px] basis-1/4 bg-[#eee] flex items-center justify-center rounded-md" for="discount-code"> کد </label> <input disabled type="text" step="0.01" id="discount-code" class="text-[12px] p-1 basis-3/4 border-gray-300 rounded-md text-center" value="<?php echo e($userdiscount->affiliate->code); ?>"/> </div> <!--[if BLOCK]><![endif]--><?php if($userdiscount->affiliate->gift_card==0): ?> <div class="pt-2 w-full flex gap-2"> <label class="text-[12px] basis-1/4 bg-[#eee] flex items-center justify-center rounded-md" for="discount-code"> درصد تخفیف </label> <input disabled type="text" step="0.01" id="discount-code" class="text-[12px] p-1 basis-3/4 border-gray-300 rounded-md text-center" value="<?php echo e($userdiscount->affiliate->discount_percent); ?>"/> </div> <?php elseif($userdiscount->affiliate->gift_card==1): ?> <div class="pt-2 w-full flex gap-2"> <label class="text-[12px] basis-1/4 bg-[#eee] flex items-center justify-center rounded-md" for="discount-code"> مبلغ کارت هدیه </label> <input disabled type="text" step="0.01" id="discount-code" class="text-[12px] p-1 basis-3/4 border-gray-300 rounded-md text-center" value="<?php echo e($userdiscount->affiliate->amount); ?>"/> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> </div> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 bg-blue-100 rounded flex justify-between items-center"> <div class="flex items-center gap-2"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-blue-500"> <path stroke-linecap="round" stroke-linejoin="round" d="M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"/> </svg> </div> <h4 class="font-medium text-sm text-blue-500">لغو سفارش</h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class=" bg-white "> <div class="flex flex-col text-sm mt-4"> <label class="text-right p-2 h-full" for="CancelDescription">دلیل لغو:</label> <select id="CancelDescription" wire:model="factorCancelDescription" class="text-[12px] p-1 basis-3/4 border-gray-300 rounded-md text-center"> <option value="">انتخاب کنید</option> <option value="مشتری گرامی لطفا برای شرکت در مزایده قیمت مورد نظر خود را اعلام نمایید تا به صورت پلکانی در مزایده با قیمت اعلامی شرکت شود"> مشتری گرامی لطفا برای شرکت در مزایده قیمت مورد نظر خود را اعلام نمایید تا به صورت پلکانی در مزایده با قیمت اعلامی شرکت شود </option> <option value="مشتری گرامی کالا ناموجود است">مشتری گرامی کالا ناموجود است </option> <option value="در حال حاضر امکان خرید زیر ۱۵۰ دلار از امریکا،اروپا و چین وجود ندارد">در حال حاضر امکان خرید زیر ۱۵۰ دلار از امریکا،اروپا و چین وجود ندارد </option> <option value="مشتری گرامی امکان خرید این کالا وجود ندارد ، لطفا لینک خرید خود را از امارات ارسال نمایید ."> مشتری گرامی امکان خرید این کالا وجود ندارد ، لطفا لینک خرید خود را از امارات ارسال نمایید . </option> <option value="مشتری گرامی خرید این کالا به علت ممنوعیت در گمرک ، امکان پذیر نمیباشد"> مشتری گرامی خرید این کالا به علت ممنوعیت در گمرک ، امکان پذیر نمیباشد </option> <option value="مشتری گرامی پیش فاکتور شما یکبار صادر شده است">مشتری گرامی پیش فاکتور شما یکبار صادر شده است </option> <option value="مشتری گرامی برای صدور پیش فاکتور یا علت رد شدن پیش فاکتور ، لطفا به صورت تلفنی با همکاران چارسوق تماس بگیرید"> مشتری گرامی برای صدور پیش فاکتور یا علت رد شدن پیش فاکتور ، لطفا به صورت تلفنی با همکاران چارسوق تماس بگیرید </option> <option value="مشتری گرامی این سایت امن نیست و امکان خرید از آن وجود ندارد"> مشتری گرامی این سایت امن نیست و امکان خرید از آن وجود ندارد </option> <option value="مشتری گرامی امکان خرید از این سایت وجود ندارد">مشتری گرامی امکان خرید از این سایت وجود ندارد </option> <option value="مشتری گرامی مشخصات کامل کالا شامل سایز ، رنگ ، مدل و ... را در توضیحات خرید ارسال نمایید."> مشتری گرامی مشخصات کامل کالا شامل سایز ، رنگ ، مدل و ... را در توضیحات خرید ارسال نمایید. </option> <option value=" فروشنده ارسال به آمریکا ندارد ."> . فروشنده ارسال به آمریکا ندارد </option> <option value=" کالا زیر 10 دلار میباشد ."> کالا زیر 10 دلار میباشد . </option> <option value=" انصراف یا عدم پرداخت مشتری"> انصراف یا عدم پرداخت مشتری </option> <option value=" نا موجود شدن کالا"> نا موجود شدن کالا </option> <option value=" افزایش قیمت کالا"> افزایش قیمت کالا </option> <option value=" اتمام مهلت پرداخت"> اتمام مهلت پرداخت </option> <option value=" امکان خرید این کالا وجود ندارد"> امکان خرید این کالا وجود ندارد </option> <option value=" لینک ارسالی اشتباه است"> لینک ارسالی اشتباه است </option> <option value=" لینک ارسالی تکراری است"> لینک ارسالی تکراری است </option> </select> <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['factorCancelDescription']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="text-red-500 text-[11px]"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]--> </div> <div class="flex flex-col gap-2 justify-between lg:flex-row"> <button class="p-2 text-[12px] bg-yellow-400 text-white rounded-md w-full mt-3" wire:click="confirmCancelFactorDialog"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 inline"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/> </svg> لغو کردن سفارش </button> </div> </div> </div> <hr> <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $invoice->invoiceItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div x-data="{ open: false }" class="flex flex-col relative overflow-hidden "> <div @click="open = ! open" class="p-4 rounded flex justify-between items-center <?php if($item->ischecked && $item->isapproved): ?> bg-green-100 <?php elseif($item->ischecked && !$item->isapproved): ?> bg-red-100 <?php else: ?> bg-blue-100 <?php endif; ?> "> <div class="flex items-center gap-2 w-80"> <div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 <?php if($item->ischecked && $item->isapproved): ?> text-green-500 <?php elseif($item->ischecked && !$item->isapproved): ?> text-red-500 <?php else: ?> text-blue-500 <?php endif; ?> "> <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9zm3.75 11.625a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"/> </svg> </div> <h4 class="font-medium line-clamp-1 text-sm <?php if($item->ischecked && $item->isapproved): ?> text-green-500 <?php elseif($item->ischecked && !$item->isapproved): ?> text-red-500 <?php else: ?> text-blue-500 <?php endif; ?>"> جزئیات کالا: <?php echo e(substr((string)$item->name,0,100)); ?> </h4> </div> <div> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/> </svg> </div> </div> <div x-show="open" @click.outside="open = false" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-0" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 translate-y-10" x-transition:leave-end="opacity-0 translate-y-0" class="bg-white"> <?php $__split = function ($name, $params = []) { return [$name, $params]; }; [$__name, $__params] = $__split('invoice-management.invoice-item-form', ['invoiceItem' => $item,'invoiceId' => $invoice->id,'incoiceItemCount' => $invoice->invoiceItems->count()]); $__html = app('livewire')->mount($__name, $__params, 'invoice-item-'. uniqid(), $__slots ?? [], get_defined_vars()); echo $__html; unset($__html); unset($__name); unset($__params); unset($__split); if (isset($__slots)) unset($__slots); ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <div class="flex flex-col gap-2 justify-between lg:flex-row"> <button class="p-2 text-[12px] bg-blue-400 text-white rounded-md w-full" wire:click="addNewItem"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 inline"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/> </svg> اضافه کردن آیتم جدید </button> </div> </div> </div> <div class="basis-3/4 bg-white text-gray-500 rounded-sm relative"> <div class=" bg-[#717071] text-white rounded-sm p-3 absolute w-[98%] top-[-20px] right-[1%]"> پیش فاکتور </div> <div class="p-3 mt-[30px]"> <div class="grid grid-cols-2 border"> <div class="flex justify-center items-center border-l"> <img class="w-24" src="/assets/img/charsooq-logo.png"> </div> <div class="p-2"> <p class="text-center"> تهران – خیابان بهشتی - خیابان احمد قصیر-روبه روی دادسرا نبش سوم- پلاک ۸ - طبقه دوم </p> <p class="text-center"> شماره تماس:(۰۲۱) ۹۲۰۰۷۸۰۲ – (۰۲۱)۹۲۰۰۷۸۰۱ </p> <p class="text-center"> تلگرام:۰۹۹۰۵۳۳۹۰۰۲ </p> <p class="text-center"> ایمیل:info@charsooq.com </p> </div> </div> <div class="grid grid-cols-3 border"> <div class="border-l col-span-2 p-2"> <p> نام و نام خانوادگی: <?php echo e($invoice->user->name); ?> </p> </div> <div class="p-2"> <p> کد رهگیری: <?php echo e($invoice->code); ?> </p> </div> </div> <div class="grid grid-cols-3 border"> <div class="border-l col-span-2 p-2"> <p> آدرس خریدار: <?php echo e($invoice->usersAddress?->state->title??''); ?> - <?php echo e($invoice->usersAddress?->city->title??''); ?> - <?php echo e($invoice->usersAddress?->content); ?> </p> </div> <div class="p-2"> <p> کد پستی : <?php echo e($invoice->usersAddress?->postalcode); ?> </p> </div> </div> <div class="grid grid-cols-3 border"> <div class="border-l col-span-2 p-2"> <p> توضیح خریدار روی کل سبد: <?php echo e($invoice->description); ?> </p> </div> <div class="p-2"> <p> شماره همراه کاربر: <?php echo e($invoice->user->cell_number); ?> </p> </div> </div> <div class="grid grid-cols-6 border p-2"> <div class="flex flex-col border-l items-center"> <p>دلار آمریکا</p> <p> <?php echo e($exchanges[0]->value); ?> ریال </p> </div> <div class="flex flex-col border-l items-center"> <p>پوند انگلیس</p> <p> <?php echo e($exchanges[1]->value); ?> ریال </p> </div> <div class="flex flex-col border-l items-center"> <p>درهم</p> <p> <?php echo e($exchanges[2]->value); ?> ریال </p> </div> <div class="flex flex-col border-l items-center"> <p>یورو</p> <p> <?php echo e($exchanges[3]->value); ?> ریال </p> </div> <div class="flex flex-col border-l items-center"> <p>دلار کانادا</p> <p> <?php echo e($exchanges[4]->value); ?> ریال </p> </div> <div class="flex flex-col items-center"> <p>لیر ترکیه</p> <p> <?php echo e($exchanges[5]->value); ?> ریال </p> </div> </div> <div class="grid grid-cols-12 min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center"></p> <p class="border-l flex justify-center text-center text-sm items-center">ردیف</p> <p class="border-l flex justify-center text-center text-sm items-center">شرح اقلام</p> <p class="border-l flex justify-center text-center text-sm items-center">تعداد</p> <p class="border-l flex justify-center text-center text-sm items-center">قیمت(ارز)</p> <p class="border-l flex justify-center text-center text-sm items-center">نوع ارز</p> <p class="border-l flex justify-center text-center text-sm items-center">وزن (گرم)</p> <p class="border-l flex justify-center text-center text-sm items-center">کارمزد خرید</p> <p class="border-l flex justify-center text-center text-sm items-center">هزینه حمل</p> <p class="border-l flex justify-center text-center text-sm items-center">هزینه خرید</p> <p class="border-l flex justify-center text-center text-sm items-center">مجموع</p> <p class="border-l flex justify-center text-center text-sm items-center">توضیحات مشتری</p> </div> <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->invoice->invoiceItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!--[if BLOCK]><![endif]--><?php if($item->isapproved): ?> <div class="grid grid-cols-12 bg-[#C7FFC2] min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center col-span-1"> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 cursor-pointer" fill="none" wire:click="deleteItem(<?php echo e($item->id); ?>)" wire:loading.remove viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/> </svg> <span wire:loading wire:target="deleteItem(<?php echo e($item->id); ?>)"> <svg class="spinner h-6 w-6" viewBox="0 0 50 50"> <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle> </svg> </span> </p> <p class="border-l flex justify-center text-center text-sm items-center"><?php echo e($loop->iteration); ?></p> <p class="border-l flex justify-center text-center text-sm items-center line-clamp-1 lg:max-w-[30px] xl:max-w-[70px] 2xl:max-w-[100px]"> <a class="lg:max-w-[30px] xl:max-w-[70px] 2xl:max-w-[100px] break-words " href="<?php echo e(isset(parse_url($item->link)['scheme'])?$item->link:'http://'.$item->link); ?> " target="_blank"><?php echo e($item->name); ?></a> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->count); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->cost); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(App\Models\Exchanges::whereId($item->exchange_id)->value('name')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->firstweight); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->brokerwageprice)); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->transportprice)); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->itemprice)); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->itemprice + $item->transportprice + $item->brokerwageprice)); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->description); ?> </p> </div> <?php else: ?> <div class="grid grid-cols-12 bg-[#f2dede] min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center col-span-1"> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 cursor-pointer" fill="none" wire:click="deleteItem(<?php echo e($item->id); ?>)" wire:loading.remove viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/> </svg> <span wire:loading wire:target="deleteItem(<?php echo e($item->id); ?>)"> <svg class="spinner h-6 w-6" viewBox="0 0 50 50"> <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle> </svg> </span> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-1"><?php echo e($loop->iteration); ?></p> <p class="border-l flex justify-center text-center text-sm items-center col-span-5 line-clamp-1 break-words"> <a class='line-clamp-1' href="<?php echo e(isset(parse_url($item->link)['scheme'])?$item->link:'http://'.$item->link); ?> " target="_blank"><?php echo e($item->name); ?></a> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-4"> <?php echo e($item->unapprovedescription); ?> </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->invoice->invoiceOthercosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="grid grid-cols-12 min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center col-span-1 cursor-pointer"> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" wire:click="deleteOtherCost(<?php echo e($item->id); ?>)"> <path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/> </svg> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-3"> <?php echo e(\App\Models\OthercostType::whereId($item->type_id)->value('title')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-5"> <?php echo e($item->comment); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-1"> <?php echo e($item->amount); ?> <?php echo e(App\Models\Exchanges::whereId($item->exchange_id)->value('name')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-1"> <?php echo e(number_format($item->OtherCostPrice)); ?> ریال </p> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>جمع کل هزینه خرید:</p> <span> <?php echo e(number_format($price)); ?> ریال </span> </div> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>جمع کل هزینه حمل:</p> <span> <?php echo e(number_format($transportPrice)); ?> ریال </span> </div> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>جمع کل کارمزد خرید:</p> <span> <?php echo e(number_format($brokerwageprice)); ?> ریال </span> </div> <!--[if BLOCK]><![endif]--><?php if($this->userdiscount): ?> <!--[if BLOCK]><![endif]--><?php if($this->userdiscount->affiliate->gift_card==0): ?> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>جمع کل کارمزد با تخفیف:</p> <span> <?php echo e(number_format($brokerwageprice_discount)); ?> ریال </span> </div> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>جمع کل تخفیف :</p> <span> <?php echo e(number_format($discount)); ?> ریال </span> </div> <?php elseif($this->userdiscount->affiliate->gift_card==1): ?> <div class="flex bg-[#f9f9f9] py-2 mx-auto justify-center text-black"> <p>مبلغ کارت هدیه :</p> <span> <?php echo e(number_format($discount)); ?> ریال </span> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل هزینه های اضافه: </p> <span> <?php echo e(number_format($this->invoice->invoiceOthercosts->sum('OtherCostPrice'))); ?> ریال </span> </div> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل مبلغ بدون مالیات:</p> <span> <?php echo e(number_format( (int)$price + (int)$transportPrice + (int)$brokerwageprice + (int)$this->invoice->invoiceOthercosts->sum('OtherCostPrice') )); ?> ریال </span> </div> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل مالیات بر ارزش افزوده: </p> <span> <?php echo e(number_format($this->invoice->totalTax)); ?> ریال </span> </div> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل مبلغ قابل پرداخت:</p> <span> <?php echo e(number_format( (int)$price + (int)$transportPrice + (int)$brokerwageprice + (int)$this->invoice->invoiceOthercosts->sum('OtherCostPrice') + (int)$this->invoice->totalTax)); ?> ریال </span> </div> <!--[if BLOCK]><![endif]--><?php if($this->userdiscount): ?> <!--[if BLOCK]><![endif]--><?php if($this->userdiscount->affiliate->gift_card==0): ?> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل مبلغ قابل پرداخت بعد از تخفیف:</p> <span> <?php echo e(number_format( (int)$price + (int)$transportPrice + (int)$brokerwageprice + (int)$this->invoice->invoiceOthercosts->sum('OtherCostPrice') + (int)$this->invoice->totalTax-$discount)); ?> ریال </span> </div> <?php elseif($this->userdiscount->affiliate->gift_card==1): ?> <div class="flex py-2 mx-auto justify-center text-black"> <p> جمع کل مبلغ قابل پرداخت بعد کسر مبلغ کارت هدیه:</p> <span> <?php echo e(number_format( (int)$price + (int)$transportPrice + (int)$brokerwageprice + (int)$this->invoice->invoiceOthercosts->sum('OtherCostPrice') + (int)$this->invoice->totalTax-$discount)); ?> ریال </span> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <div class="p-3 text-sm m-4 bg-[#f9f9f9] border border-gray-200 rounded-md"> <p>مشتري گرامي لطفا به نكات ذيل توجه فرماييد:</p> <div class="p-3"> <div class="flex gap-2"> <span>1.</span> <p> پرداخت این فاکتور به منزله پذیرفتن همه قوانین و مقررات چارسوق مندرج در صفحه مربوطه است پس حتما جهت اطلاع از آن این این بخش را مطالعه بفرمایید. </p> </div> <div class="flex gap-2"> <span>2.</span> <p> در صورت رضایت از شرایط این فاکتور، تنها کافیست مبلغ «پرداخت» مشخص شده را از قسمت فاکتور های پرداخت نشده پرداخت نمایید. پس از پرداخت، همکاران ما فرآیند خرید کالای شما را آغاز میکنند و حداکثر ظرف یک روز کاری نسبت به خرید کالای شما اقدام میگردد. </p> </div> <div class="flex gap-2"> <span>3.</span> <p> تعهد زمانی تحویل سفارش از زمان دریافت کالای ارسالی از طرف فروشنده آن توسط نماینده چارسوق در خارج از کشور آغاز میشود و زمان تقریبی تحویل آن در ایران حداکثر بین ۳۵ تا ۴۰ روز بعد از آن است. در مورد خرید از دبی امارات این زمان بین ۲۵ تا ۳۰ روز است. </p> </div> <div class="flex gap-2"> <span>4.</span> <p> چارسوق سلامت فیزیکی کالاهای نو را تضمین مینماید اما مسئولیتی در خصوص سلامت فیزیکی یا کارکردی کالاهای دست دوم یا ریفربیشد ندارد به یک مرحله ای یا دومرحله ای بودن پرداخت دقت فرمایید و در صورت نیاز در حالت دو مرحله ای قبل از پرداخت در مورد وزن حقیقی کالای خود و وزن محاسبه شده در این پیش فاکتور با مسئول خرید هماهنگی بفرمایید. </p> </div> <div class="flex gap-2"> <span>5.</span> <p> پرداخت های تک مرحله ای نهایی محسوب میشوند مگر اینکه تفاوت وزن فاحشی بین وزن اعلامی مشتری یا وزن تخمینی کارشناس با وزن حقیقی محصول رسیده به دفتر مشاهده گردد. </p> </div> <div class="flex gap-2"> <span>6.</span> <p> هزینه حمل هر کالا در پیش فاکتور به صورت موقت و بر اساس وزن اعلامی مشتری یا تخمینی چارسوق می باشد و اگر وزن اعلام شده در پيش فاكتور با وزن كالاي درخواستي شما مغايرت دارد لطفا قبل از پرداخت نسبت به تماس با ما جهت اصلاح آن اقدام كنيد. </p> </div> <div class="flex gap-2"> <span>7.</span> <p> در هیچ یک از پرداخت های تک یا دومرحله ای بار کردن هزینه اضافی جدید به غیر از موارد اختلاف وزن کالا به مشتریان گرامی اتفاق نخواهد افتاد و همه هزینه ها تا درب منزل محاسبه شده است. </p> </div> <div class="flex gap-2"> <span>8.</span> <p> در مورد گوشی موبایل و کالاهای نیازمند رجیستری چارسوق مسئولیتی درقبال ارایه سند گمرکی و امور اداری رجیستری ندارد و تنها خود محصول را درب منزل تحویل مینماید. </p> </div> <div class="flex gap-2"> <span>9.</span> <p> خرید از چین تنها از سایت علی اکسپرس انجام می شود. با اینحال چارسوق هیچ ضمانتی بابت اصالت، سلامت و مشابهت کالا برای خرید از این سایت ارائه نمی دهد. در صورتی که کالا توسط فروشنده ارسال نشود تنها در صورتی هزینه پرداختی مشتری عودت می شود که فروشنده چینی هزینه را به چارسوق عودت نماید. </p> </div> <div class="flex gap-2"> <span>10.</span> <p> تمامی کالا ها از طریق پست پیشتاز به همراه بیمه ارسال میگردد. قبل از تحویل کالا و امضای دریافت آن حتما بسته را از نظر سلامت ظاهری و صحت نوع کالا بررسی فرمایید و در صورت وجود مشکل از تحویل آن خودداری فرمایید و با ما تماس حاصل نمایید. </p> </div> </div> </div> </div> </div> </div> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbe23554f7bded3778895289146189db7)): ?> <?php $attributes = $__attributesOriginalbe23554f7bded3778895289146189db7; ?> <?php unset($__attributesOriginalbe23554f7bded3778895289146189db7); ?> <?php endif; ?> <?php if (isset($__componentOriginalbe23554f7bded3778895289146189db7)): ?> <?php $component = $__componentOriginalbe23554f7bded3778895289146189db7; ?> <?php unset($__componentOriginalbe23554f7bded3778895289146189db7); ?> <?php endif; ?> <?php /**PATH /var/www/back/resources/views/filament/invoice-management/view.blade.php ENDPATH**/ ?>