@extends('layouts.master') @section('css') @section('title') {{ __('home.salesـreturned') }}@stop @endsection @section('page-header')
@endsection @section('content')
 

جارٍ إرسال الفاتورة، يرجى الانتظار
Invoice is being sent, please wait

@if (session()->has('foundinvoice')) @endif @if (session()->has('success')) @endif @if (session()->has('createnewproduct')) @endif @if ($errors->any())
@endif @if (session()->has('notfountreturnproduct')) @endif
{{ csrf_field() }}



@if (isset($data['restaurant_order']))
Warning: Undefined variable $data in /home/ebdea/public_html/resturant.ebdea.online/resources/views/products/salesreturned.blade.php on line 376

Warning: Trying to access array offset on value of type null in /home/ebdea/public_html/resturant.ebdea.online/resources/views/products/salesreturned.blade.php on line 376

{{ __('report.invoiceNo') }}: {{ $rsOrder->order_number }}

{{ __('home.clietName') }}: {{ $rsOrder->customer->name ?? ($rsOrder->customer_name ?: '-') }}

{{ __('home.paymentmethod') }}: {{ \App\Models\Restaurant\RsOrder::PAYMENTS[$rsOrder->payment_method] ?? $rsOrder->payment_method }}

@foreach ($rsOrder->items as $index => $item) @endforeach
# {{ __('home.product') }} {{ __('home.quantity') }} {{ __('home.productprice') }} {{ __('home.total') }}
{{ $index + 1 }} {{ $item->name }} @if($item->size_name) ({{ $item->size_name }}) @endif {{ $item->qty }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->line_total, 2) }}
{{__('home.the amount')}} {{ __('home.discount') }} {{ __('home.avt') }} {{ __('home.total') }}
{{ number_format($rsOrder->subtotal, 2) }} {{ number_format($rsOrder->discount, 2) }} {{ number_format($rsOrder->vat_amount, 2) }} {{ number_format($rsOrder->total, 2) }}


@csrf

@endif @if (isset($data['product']))

{{ __('home.paymentmethod') }}

@foreach ($data['product'] as $product)
Warning: Undefined variable $product in /home/ebdea/public_html/resturant.ebdea.online/resources/views/products/salesreturned.blade.php on line 528

Warning: Attempt to read property "invoice_id" on null in /home/ebdea/public_html/resturant.ebdea.online/resources/views/products/salesreturned.blade.php on line 528
@if ($product->quantity > 0) @endif @endforeach
# {{ __('home.productNo') }} {{ __('home.product') }} {{ __('home.productprice') }} {{ __('home.quantity') }} {{ __('home.price') }} {{ __('home.discount') }} {{ __('home.total') }} {{ __('home.operations') }}
{{ $i }} {{ $product->productData->Product_Code }} {{ $product->productData->product_name }} {{ $product->Unit_Price }} {{ $product->quantity }} {{ $product->Unit_Price * $product->quantity }} {{ $product->Discount_Value }} {{ $product->Unit_Price * $product->quantity - $product->Discount_Value }}
{{__('home.the amount')}} {{ __('home.discount') }} {{ __('home.avt') }} {{ __('home.total') }}
{{( $data['invoicetotal_price']+$data['invoicetotal_discount'] )?? 0 }} {{ $data['invoicetotal_discount'] ?? 0 }} {{ round( $data['invoicetotal_addedvalue'] ?? 0,2) }} {{ round($data['invoicetotal_price'] + $data['invoicetotal_addedvalue'],2 )}}


{{__('home.print')}}   {{ __('home.dwonloadpdf') }}   


   

@endif
@if (isset($data['product'])) @endif @endsection @section('js') @endsection