@extends('Layouts.invoiceLayout') @section('title') {{__('Print Invoice Receipt')}} @endsection @section('css') @if( $dir === "rtl") @else @endif @endsection @section('content')

{{__('Electronic Bill Of Sale')}}

{{__('Tracking Code')}} :
{{$data['orders']->tracking_code}}
{{__('Date')}}: {{timestampDateDayOrder($data['orders']->date,true)['date']}}
{{__('Buyer')}} : {{ $data['orders']->Address->receiver}}
@php $i=1; @endphp @php $shipping_cost=0; @endphp @php $i=1; $tax=0 ;$number=0;$unit=0;$total=0;$subTotal=0;$totalTaxes=0;$totalDiscount=0;$discount=0;@endphp @foreach($data['dispatch'] as $dispatch) @php $shipping_cost=$dispatch->shipping_cost+$shipping_cost;@endphp @foreach($dispatch->Cart as $Cart) @php $number=$Cart->number+$number; $unit=$Cart->price+$unit; $total=($Cart->price*$Cart->number)+$total; $discount=(($Cart->price-$Cart->price_off)*$Cart->number)+$discount; $totalDiscount=($Cart->price_off*$Cart->number)+$totalDiscount; $totalTaxes=$data['orders']->Payment->tax; $subTotal=($Cart->price_off*$Cart->number)+$subTotal; @endphp @php $i++; @endphp @endforeach @endforeach
{{__('Index')}} {{__('Title')}} {{__('Count')}} {{__('Price')}} {{__('Sum')}}
{{ $i}} {{$Cart->Product->title}} ({{$Cart->Product->guarantee}}) {{$Cart->number}} {{fnumber_format($Cart->price_off) }} {{$prefix}} {{fnumber_format($Cart->price_off* $Cart->number) }} {{$prefix}}
{{__('Sum Total')}} : {{fnumber_format($total)}} {{$prefix}}
{{__('Discount')}} : {{fnumber_format($discount)}} {{$prefix}}
{{__('Shipping Cost')}} : {{fnumber_format($shipping_cost)}} {{$prefix}}
{{__('Total Invoice Discount')}}: {{fnumber_format($subTotal+$totalTaxes)}} {{$prefix}}

{{__('Address')}}: {{$data['orders']->Address->City->province}}-{{$data['orders']->Address->City->name}} {{ $data['orders']->Address->address}}- {{__('Zip Code')}} : {{ $data['orders']->Address->postal_code}}

{{__('Phone')}} : {{ $data['orders']->Address->phone}}

{{__('Mobile')}} : {{ $data['orders']->Address->cel}}


{{__('Thanks For Your Shopping')}} {{(isset($settings['site_title_'.$lang]))?$settings['site_title_'.$lang]:''}}

@endsection @section('script') @endsection