@extends('layouts.master') @section('css') @endsection @section('title') معاينه طباعة المنتجات @stop @section('page-header')
@endsection @section('content') @php $offer_price_to_customer = []; if ($itemsRequest != []) { $offer_price_to_customer = App\Models\offer_price_to_customer::find($id); } $avt = App\Models\Avt::find(1); $totalpricePurchases = 0; foreach ($itemsRequest as $p) { $totalpricePurchases += ($p->PriceWithoudTax * $p->quantity); } $subTotal = round($totalpricePurchases, 2); $docDiscount = round($offer_price_to_customer->discount, 2); $afterDiscount = $subTotal - $docDiscount; $vatAmount = round($afterDiscount * $avt->AVT, 2); $netTotal = $afterDiscount + $vatAmount; $logo = camplogo; @endphp
{{-- أزرار التحكم (لا تظهر في الطباعة) --}}
{{-- ===== الترويسة ===== --}} {{-- ===== المحتوى ===== --}} {{-- ===== التذييل ===== --}}
{{Namear}}

{{STar}}

{{Taxar}}

{{describtionar}}

{{Nameen}}

{{STen}}

{{Taxen}}

{{describtionen}}

عرض سعر أو فاتورة مبدئية
Quotation or Performa invoice

{{ $offer_price_to_customer->branch->name }}

{{-- بيانات العميل + بيانات المستند --}}
اسم العميلCLIENT NAME
{{ $offer_price_to_customer->customer->name }}
الرقم الضريبيTAX NUMBER
{{ $offer_price_to_customer->customer->tax_no }}
@if($offer_price_to_customer->type_of_decument == 1)
تاريخ التسعيرةQUOTE DATE
{{ \Carbon\Carbon::parse($offer_price_to_customer->created_at)->format('Y-m-d') }}
رقم التسعيرةQUOTE NUMBER
{{ $offer_price_to_customer->id }}
@else
التاريخDATE
{{ \Carbon\Carbon::parse($offer_price_to_customer->created_at)->format('Y-m-d') }}
الرقمNUMBER
{{ $offer_price_to_customer->id }}
@endif
{{-- جدول الأصناف --}} @if (isset($itemsRequest)) @if($offer_price_to_customer->numbershowstatus) @endif @foreach ($itemsRequest as $product) @if($offer_price_to_customer->numbershowstatus) @endif @endforeach
رقمNOرقم المنتجITEM NOاسم الصنفITEM NAME الوحدةUNIT سعر القطعةPRODUCT PRICE الكميةQUANTITY الإجماليTOTAL AMOUNT الخصمDISCOUNT الإجمالي بعد الخصمTOTAL AFTER DISCOUNT
{{ $loop->iteration }}{{ $product->productData->Product_Code }}{{ $product->productData->product_name }} {{ $product->unit ?? '-' }} {{ $product->PriceWithoudTax }} {{ $product->quantity }} {{ $product->quantity * $product->PriceWithoudTax }} {{ $product->discount }} {{ round(($product->quantity * $product->PriceWithoudTax) - $product->discount, 2) }}
{{-- الإجماليات + QR --}}
{!! QrCode::size(130) ->backgroundColor(255, 255, 255) ->color(0, 51, 102) ->margin(1) ->generate('https://www.amaautomation.com') !!}
www.amaautomation.com
الإجمالي قبل الضريبةSUB TOTAL
{{ number_format($subTotal, 2) }}
الخصمDISCOUNT
{{ number_format($docDiscount, 2) }}
الإجمالي بعد الخصمSUB TOTAL AFTER DISCOUNT
{{ number_format($afterDiscount, 2) }}
ضريبة القيمة المضافة ({{ $avt->AVT * 100 }}%)VALUE ADDED TAX ({{ $avt->AVT * 100 }}%)
{{ number_format($vatAmount, 2) }}
الإجمالي الكليNET TOTAL
{{ number_format($netTotal, 2) }}
@endif {{-- الملاحظات --}} @if(!empty($offer_price_to_customer->notes) || !empty($offer_price_to_customer->note_one) || !empty($offer_price_to_customer->note_two) || !empty($offer_price_to_customer->note_three) || !empty($offer_price_to_customer->note_four) || !empty($offer_price_to_customer->note_five))
@if(!empty($offer_price_to_customer->notes))

{{ __('home.notesClient') }} : {{ $offer_price_to_customer->notes }}

@endif @if(!empty($offer_price_to_customer->note_one))

{{ __('home.note_one') }} : {{ $offer_price_to_customer->note_one }}

@endif @if(!empty($offer_price_to_customer->note_two))

{{ __('home.note_two') }} : {{ $offer_price_to_customer->note_two }}

@endif @if(!empty($offer_price_to_customer->note_three))

{{ __('home.note_three') }} : {{ $offer_price_to_customer->note_three }}

@endif @if(!empty($offer_price_to_customer->note_four))

{{ __('home.note_four') }} : {{ $offer_price_to_customer->note_four }}

@endif @if(!empty($offer_price_to_customer->note_five))

{{ __('home.note_five') }} : {{ $offer_price_to_customer->note_five }}

@endif
@endif {{-- الحسابات البنكية --}}
Al Rajhi Bank مصرف الراجحي
Account Number 149000010006084284238 IBAN SA4580000149608014284238
SAB Logo بنك الأول (SAB)
Account Number 819-174798-001 IBAN SA6645000000819174798001
@endsection @section('js') @endsection