@extends('layouts.master') @section('title') معاينة طباعة الفاتورة - Simplified Tax Invoice @stop @section('css') @endsection @section('content')

{{ Namear }}

{{ describtionar }}

{{ STar }}

{{ Taxar }}

@php $logo = camplogo; @endphp
logo

{{ Nameen }}

{{ describtionen }}

{{ STen }}

{{ Taxen }}

@if(strlen($data['invoiceData']->customer->tax_no) == 15)

Tax Invoice - فاتورة ضريبية

@else

Simplified tax invoice فاتورة ضريبية مبسطة

@endif
تاريخ الفاتورة {{ $data['invoiceData']->created_at->format('Y-m-d H:i') }} DATE
طريقة الدفع @php $payMap = [ 'Cash' => 'نقدي / Cash', 'Shabka' => 'شبكة / Network', 'Credit' => 'آجل / Credit' ]; $pay = $payMap[$data['invoiceData']->Pay] ?? $data['invoiceData']->Pay; @endphp {{ $pay }} PAYMENT
رقم الفاتورة {{ $data['invoiceData']->id }} INVOICE NO
رقم أمر الشراء {{ $data['invoiceData']->p_o ?: '-' }} PURCHASE ORDER (PO)
اسم العميل {{ $data['invoiceData']->customer->name }} CLIENT NAME
الرقم الضريبي {{ $data['invoiceData']->customer->tax_no ?: '-' }} TAX NUMBER
السجل التجاري {{ $data['invoiceData']->customer->CRN }} COMMERCIAL REG
العنوان / الحي @if($data['invoiceData']->customer->id == 1) - @else {{ $data['invoiceData']->customer->address }}, {{ $data['invoiceData']->customer->sub_city }}, {{ $data['invoiceData']->customer->building_number }} {{ $data['invoiceData']->customer->street_name }} @endif | {{ $data['invoiceData']->customer->postcode }} ADDRESS
@if($data['invoiceData']->display_number) @endif {{-- بدون width ليأخذ المساحة المتبقية --}} @php $i = 0; $avt = App\Models\Avt::find(1); $salesItems = $data['salesData'] ?? App\Models\sales::where('invoice_id', $data['invoiceData']->id)->with('productData')->get(); @endphp @foreach ($salesItems as $product) @php $i++; $returnedQty = (float)($product->returned_qty ?? $product->quantityreturn ?? 0); $currentQty = (float)($product->quantity ?? 0); $returnStatus = $product->return_status ?? ($currentQty == 0 ? 'full' : ($returnedQty > 0 ? 'partial' : 'none')); $isReturned = ($returnStatus === 'full' || $returnStatus === 'partial'); $total_row_befor_tax = round(($product->Unit_Price * $currentQty) - $product->Discount_Value, 2); if ($total_row_befor_tax < 0) { $total_row_befor_tax = 0; } @endphp @if($data['invoiceData']->display_number) @endif @endforeach
م
NO
رقم المنتج
Item NO
اسم الصنف
ITEM NAME
السعر
PRICE
الكمية
QTY
الخصم
DISC
الاجمالي قبل الضريبة
TOTAL
{{ $i }}{{ $product->productData->Product_Code ?? '-' }} {{ $product->productData->product_name ?? $product->product_name ?? '-' }} @if($returnStatus === 'full') (مرتجع بالكامل) @elseif($returnStatus === 'partial') (مرتجع جزئي{{ $returnedQty > 0 ? ': تم إرجاع ' . $returnedQty : '' }}) @endif {{ number_format($product->Unit_Price, 2) }} {{ $product->quantity }} @if($returnStatus === 'full' && $returnedQty > 0)
(مرتجع: {{ $returnedQty }}) @endif
{{ number_format($product->Discount_Value, 2) }} {{ number_format($total_row_befor_tax, 2) }}

يمكن ارجاع القطع المباعة او استبدالها خلال 3 يام من تاريخ الشراء وتكون بحالتها المباعة و القطع الكهربائية لا ترد ولا تستبدل و الطلبات الخاص لا يمكن ارجاعها او استبدلها بعد تاكيد الطلب
@php $invoice = App\Models\invoices::find($data['invoiceData']->id); $total_price = $invoice->total_amount; $tax_amount = $total_price * 0.15; $net_total = $total_price + $tax_amount; @endphp

Fatal error: Uncaught Error: Class "App\Models\Avt" not found in /home/ebdea/public_html/mostawdaav2.ebdea.online/resources/views/products/printInvoicesReturnToClientRecentSales.blade.php:366 Stack trace: #0 {main} thrown in /home/ebdea/public_html/mostawdaav2.ebdea.online/resources/views/products/printInvoicesReturnToClientRecentSales.blade.php on line 366