OwlCyberSecurity - MANAGER
Edit File: 24735108efb34dea8dc35486e51a6750.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="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] w-full bg-green-500 text-white rounded-md" wire:click="submit"> ثبت فاکتور تسویه و ارسال </button> </div> <div class="flex flex-col gap-2 justify-between lg:flex-row"> <button class="p-2 text-[12px] w-full bg-green-500 text-white rounded-md" wire:click="recheck"> محاسبه مجدد فاکتور نهایی </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->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 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->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 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> </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-1 p-2"> <p> نام و نام خانوادگی: <?php echo e($invoice->user->name); ?> </p> </div> <div class="p-2"> <p> تاریخ: <?php echo e($invoice->submitdate); ?> </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="even-odd-background-factor"> <div class="grid border"> <div class="border-l p-2"> <p> سفارش: </p> </div> </div> <div class="grid grid-cols-12 border 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 col-span-2">شرح کالا</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 = $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 border min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($loop->index + 1); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-2"> <a class="lg:max-w-[170px] xl:max-w-[250px] 2xl:max-w-[350px] 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::where('id',$item->exchange_id)->value('name')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->exchangevalue); ?> </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->itemprice)); ?> </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+$item->brokerwageprice+$item->transportprice)); ?> </p> </div> <?php else: ?> <div class="grid grid-cols-9 border min-h-[50px] !bg-red-200"> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($loop->index + 1); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->name); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?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 = $invoice->invoiceOthercosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!--[if BLOCK]><![endif]--><?php if($item->level == 1): ?> <div class="grid grid-cols-9 border 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 col-span-5"> <?php echo e($item->othercostType->title); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->amount); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->exchange->name); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-3"> <?php echo e($item->comment); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->OtherCostPrice)); ?> </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع کل هزینه: </p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoicePrice)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع هزینه های اضافه:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format((int) $invoice->othercosts)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> مالیات بر ارزش افزوده:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->totalTax)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع کل مبلغ قابل پرداخت:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format(round($invoice->othercosts + $invoicePrice + $invoice->totalTax,-1))); ?> ریال </p> </div> <!--[if BLOCK]><![endif]--><?php if($discount): ?> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4">جمع کل مبلغ قابل پرداخت بعد از تخفیف:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format(round($invoice->othercosts + $invoicePrice + $invoice->totalTax,-1)-$discount->discount_price)); ?> ریال </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <div class="grid border"> <div class="border-l p-2"> <p> تحویل دفتر ایران </p> </div> </div> <div class="grid grid-cols-12 border 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 col-span-2">شرح کالا</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 = $listPriceLogisticNotCancel->groupBy('invoice_item_id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $logistic): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="grid grid-cols-12 border min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($loop->index + 1); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-2"> <a class="lg:max-w-[170px] xl:max-w-[250px] 2xl:max-w-[350px] break-words" href="<?php echo e(isset(parse_url($logistic[0]->invoiceItem->link)['scheme'])?$logistic[0]->invoiceItem->link:'http://'.$logistic[0]->invoiceItem->link); ?>" target="_blank"><?php echo e($logistic[0]->invoiceItem->name); ?></a> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($logistic->count()); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($logistic[0]->invoiceItem->count - $logistic->count()); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($logistic->max('price')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(App\Models\Exchanges::where('id',$logistic[0]->exchange_id)->value('name')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($logistic->max('finalweight')); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($logistic->sum('Itemprice'))); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($logistic->sum('brokerwageprice'))); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($logistic->sum('finalTransportprice'))); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($logistic->sum('Itemprice')+ $logistic->sum('brokerwageprice') + $logistic->sum('finalTransportprice'))); ?> </p> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $invoice->invoiceOthercosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!--[if BLOCK]><![endif]--><?php if($item->level == 2): ?> <div class="grid grid-cols-10 border 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 col-span-2"> <?php echo e($item->othercostType->title); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-2"> <?php echo e($item->amount); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($item->exchange->name); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-3"> <?php echo e($item->comment); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e(number_format($item->OtherCostPrice)); ?> </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]--> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع کل هزینه خرید:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->finalTotalitemprice)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع کل هزینه ارسال:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->finalTotaltransportprice)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع هزینه های اضافه:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->finalOthercosts)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> مالیات بر ارزش افزوده:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->finalTotalTax)); ?> ریال </p> </div> <div class="grid grid-cols-9 border min-h-[50px]"> <p class="border-l col-span-8 flex justify-center text-center text-sm items-center mr-auto pl-4"> جمع کل مبلغ قابل پرداخت:</p> <p class="border-l col-span-1 flex justify-center text-center text-sm items-center"> <?php echo e(number_format($invoice->finalTotaltransportprice + $invoice->finalOthercosts + $invoice->finalTotalitemprice + $invoice->finalTotalTax)); ?> ریال </p> </div> <!--[if BLOCK]><![endif]--><?php if($discount): ?> <div class="grid grid-cols-10 border min-h-[50px]"> <p class="col-span-2 flex justify-center text-center text-sm items-center ml-auto pl-4">مبلغ تخفیف:</p> <p class="border-l col-span-8 flex text-center text-sm items-center"> <?php echo e($discount->discount_price); ?> ریال </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> <div class="grid grid-cols-10 border min-h-[50px]"> <p class="col-span-2 flex justify-center text-center text-sm items-center ml-auto pl-4">جمع کل هزینه:</p> <p class="border-l col-span-8 flex text-center text-sm items-center"> <?php echo e(number_format($invoice->finalTotaltransportprice + $invoice->finalOthercosts + $invoice->finalTotalitemprice + $invoice->finalTotalTax)); ?> ریال </p> </div> <div class="grid grid-cols-10 border min-h-[50px]"> <p class="col-span-2 flex justify-center text-center text-sm items-center ml-auto pl-4">هزینه پرداخت شده تا کنون:</p> <p class="border-l col-span-8 flex text-center text-sm items-center"> <?php echo e(number_format($invoice->sumPay())); ?>ریال </p> </div> <!--[if BLOCK]><![endif]--><?php if($discount): ?> <div class="grid grid-cols-10 border min-h-[50px]"> <p class="col-span-2 flex justify-center text-center text-sm items-center ml-auto pl-4"> باقیمانده جهت تسویه:</p> <p class="border-l col-span-8 flex text-center text-sm items-center"> <?php echo e(number_format(round($invoice->finalTotaltransportprice + $invoice->finalOthercosts + $invoice->finalTotalitemprice + $invoice->finalTotalTax - $invoice->sumPay() - $discount->discount_price,-1))); ?> ریال </p> </div> <?php else: ?> <div class="grid grid-cols-10 border min-h-[50px]"> <p class="col-span-2 flex justify-center text-center text-sm items-center ml-auto pl-4"> باقیمانده جهت تسویه:</p> <p class="border-l col-span-8 flex text-center text-sm items-center"> <?php echo e(number_format(round($invoice->finalTotaltransportprice + $invoice->finalOthercosts + $invoice->finalTotalitemprice + $invoice->finalTotalTax - $invoice->sumPay(),-1))); ?> ریال </p> </div> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> </div> <div class="border bg-[#f5f5f5] mt-4 flex flex-col gap-2 p-2 rounded-md"> <p>تایید تحویل (مخصوص تحویل گیرندگان تهران)</p> <p>تاریخ:</p> <p>امضا:</p> </div> <div class="grid border"> <div class="border-l p-2"> <p> پرداختی های کاربر </p> </div> </div> <div class="grid grid-cols-12 border 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 col-span-5">توضیحات</p> </div> <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $invoice->transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="grid grid-cols-12 border min-h-[50px]"> <p class="border-l flex justify-center text-center text-sm items-center "> <?php echo e($transaction->method); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center "> <?php echo e(number_format($transaction->amount)); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <!--[if BLOCK]><![endif]--><?php if($transaction->issuccess): ?> <span class="bg-green-300 px-2 py-1 rounded-md"> موفق </span> <?php else: ?> <span class="bg-red-400 px-2 py-1 rounded-md"> ناموفق-(<?php echo e($transaction->error); ?>) </span> <?php endif; ?><!--[if ENDBLOCK]><![endif]--> </p> <p class="border-l flex justify-center text-center text-sm items-center "> <?php echo e($transaction->date); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($transaction->invoice->code); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($transaction->transId); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center"> <?php echo e($transaction->payment_method->title_fa); ?> </p> <p class="border-l flex justify-center text-center text-sm items-center col-span-5"> <?php echo e($transaction->comment); ?> </p> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[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> </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/logistic-final-factor/factor.blade.php ENDPATH**/ ?>