@extends('layouts.factor-master-print') @section('style') @stop @section('content')

CASERP

{!!company()['name']!!} @if(getWhatsAppType() == 'simpleMessage') 💲🏦 @else @endif

@lang('layout.Date') : {{$date}} @if(getWhatsAppType() == 'simpleMessage') 📆 @else @endif

@lang('layout.SaleOrderDetails') @if(getWhatsAppType() == 'simpleMessage') 📋 @else @endif

--------------------

@lang('layout.OrderNumber') : {{$saleOrder->number}} @if(getWhatsAppType() == 'simpleMessage') 📝 @else @endif

@lang('layout.BillTo') @if(getWhatsAppType() == 'simpleMessage') 📋 @else @endif

@lang('layout.BuyerName') : @if(getDescriptionASMemberName()=="true" && $other_member_name!="") {{$other_member_name}} @else {{$member->name}} @endif @if(getWhatsAppType() == 'simpleMessage') 👤 @else @endif

@lang('layout.Code') : {{$member->code}} @if(getWhatsAppType() == 'simpleMessage') 🆔 @else @endif

@lang('layout.Phone') : {{$phone}} @if(getWhatsAppType() == 'simpleMessage') 📱 @else @endif

@lang('layout.ShipTo') : {{$address.' '.$city}} @if(getWhatsAppType() == 'simpleMessage') 📍 @else @endif

@lang('layout.Phone') : {{$phone}} @if(getWhatsAppType() == 'simpleMessage') 📱 @else @endif

{{--

@lang('layout.Number') #{{$saleOrder->number}}

--}} {{--

@lang('layout.Date'): {{$date}}

--}} {{--

@lang('layout.BillTo') ( @if(getDescriptionASMemberName()=="true" && $other_member_name!="") {{$other_member_name}} @else {{$member->name}} @endif ) @lang('layout.Code') ( {{$member->code}} ) @lang('layout.Phone') ( {{$phone}} )

--}} {{--

@lang('layout.ShipTo') @lang('layout.Address') : {{$address.' '.$city}} @lang('layout.Phone') ( {{$phone}} )

--}}

@lang('layout.Items')

--------------------

@foreach($data AS $key1=>$record)
Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 82

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 82

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 82

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 82

Warning: Undefined variable $saleOrder in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 83

Warning: Attempt to read property "discount_type" on null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 83

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 86

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 86

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 86

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 86

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 87

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 87

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 90

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 90

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 93

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 93

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 93

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 93

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 95

Warning: Trying to access array offset on value of type null in E:\Ampps\www\CAS\resources\views\salesOrders\factorSocialMedia.blade.php on line 95

@lang('layout.Number') : {{++$count}} @if(getWhatsAppType() == 'simpleMessage') ➕ @else @endif

@if(getSerailNumber() =="true")

@lang('layout.SerialNum') : {{$record['number']}} @if(getWhatsAppType() == 'simpleMessage') 🆔 @else @endif

@endif

@lang('layout.Item') : {{$record['name']}} @if(getWhatsAppType() == 'simpleMessage') 📦 @else @endif

@if(getInventorySite()=="true")

@lang('layout.Site') : {{$record['siteName']}}

@endif

@lang('layout.Quantity') : {{$record['qty']}} {{$record['symbol']}} @if(getWhatsAppType() == 'simpleMessage') ⚖ @else @endif

@lang('layout.Rate') : {{myRound($record['price'])}} {{$saleOrder->currency}} @if(getWhatsAppType() == 'simpleMessage') 📊 @else @endif

@if(getSaleDiscount()=="true")

@lang('layout.Sub-Total') : {{ myRound($record['price']*$record['qty'])}} {{$saleOrder->currency}} @if(getWhatsAppType() == 'simpleMessage') 📂 @else @endif

@lang('layout.Discount') : {{$record['discount']}} {{($saleOrder->discount_type=="percent")? '%' : $saleOrder->currency}} @if(getWhatsAppType() == 'simpleMessage') % @else @endif

@endif

@lang('layout.Total') : @if($saleOrder->discount_type=="currency") {{ myRound(($record['price']*$record['qty'])-$record['discount']*$record['qty'])}} {{$saleOrder->currency}} @else {{ myRound(($record['price']*$record['qty'])-($record['discount']*$record['price']/100)*$record['qty'])}} {{$saleOrder->currency}} @endif @if(getWhatsAppType() == 'simpleMessage') 💰 @else @endif

{{--

( @lang('layout.Number') = {{++$count}} ) -- @if(getSerailNumber() =="true") ( @lang('layout.SerialNum') = {{$record['number']}} ) -- @endif ( @lang('layout.Item') = {{$record['name']}} ) -- @if(getInventorySite()=="true") ( @lang('layout.Site') = {{$record['siteName']}} ) -- @endif ( @lang('layout.Quantity') = {{$record['qty']}} {{$record['symbol']}} ) -- ( @lang('layout.Rate') = {{myRound($record['price'])}} {{$saleOrder->currency}} ) -- @if(getSaleDiscount()=="true") ( @lang('layout.Sub-Total') = {{ myRound($record['price']*$record['qty'])}} {{$saleOrder->currency}} ) -- ( @lang('layout.Discount') = {{$record['discount']}} {{($saleOrder->discount_type=="percent")? '%' : $saleOrder->currency}} ) -- @endif ( @lang('layout.Total') = @if($saleOrder->discount_type=="currency") {{ myRound(($record['price']*$record['qty'])-$record['discount']*$record['qty'])}} {{$saleOrder->currency}} @else {{ myRound(($record['price']*$record['qty'])-($record['discount']*$record['price']/100)*$record['qty'])}} {{$saleOrder->currency}} @endif )

--}}

--------------------

@endforeach @if(getTotalItemQuantity()!='' ||getTotalItemQuantity()!="defualt")

@lang('layout.TotalQuantity')

@if(getTotalItemQuantity() == "per_unit") @foreach($measure_total AS $key=>$measure)

{{$measure}} : {{$key}}

@endforeach @endif @if(getTotalItemQuantity() == "all_unit")

@lang('layout.TotalQuantity') : {{$totalQty}}

@endif

--------------------

@endif @if(getSubTotal() == 'true' && $sub_total_amount > 0)

@lang('layout.Sub-Total')

@lang('layout.Sub-Total') : {{myRound($sub_total_amount)}}

@lang('layout.Discount') : {{myRound((($discount * ($sub_total_amount - $sub_inventory_discount_total)) / 100) + $sub_inventory_discount_total)}}

@lang('layout.Total') : {{myRound($sub_total_amount - $sub_inventory_discount_total - (($discount * ($sub_total_amount - $sub_inventory_discount_total)) / 100))}}

{{--

@lang('layout.Sub-Total') = {{myRound($sub_total_amount)}} -- @lang('layout.Discount') = {{myRound((($discount * ($sub_total_amount - $sub_inventory_discount_total)) / 100) + $sub_inventory_discount_total)}} -- ( @lang('layout.Total') = {{myRound($sub_total_amount - $sub_inventory_discount_total - (($discount * ($sub_total_amount - $sub_inventory_discount_total)) / 100))}} )

--}} @endif

@lang('layout.Total')

@if(App::isLocale('fa') || App::isLocale('pa')) @lang('layout.TotalInLeters') : {{notowo(abs(round($total)),'fa')}} @if(getWhatsAppType() == 'simpleMessage') 💵 📝 @else @endif @else @lang('layout.TotalInLeters') : {{notowo(abs(round($total)),'en')}} @if(getWhatsAppType() == 'simpleMessage') 💵 📝 @else @endif @endif

@if($saleOrder->type == "Invoice")

@lang('layout.Recipt') : {{myRound($paid)}} @lang('currency.'.($saleOrder->currency)) @if(getWhatsAppType() == 'simpleMessage') 💳 @else @endif

@endif

@lang('layout.Total') : {{myRound($total)}} @lang('currency.'.($saleOrder->currency)) @if($saleOrder->currency != getReportCurrency())   --- مجموع دالر : {{myRound(($total)/$saleOrder->rate)}} @endif @if(getWhatsAppType() == 'simpleMessage') 💲 @else @endif

@lang('layout.Discount') : @if($saleOrder->discount_type=="currency") {{myRound(($discountToShow))}} @lang('currency.'.($saleOrder->currency)) @else {{myRound($discountToShow)}} @lang('currency.'.($saleOrder->currency)) @endif @if(getWhatsAppType() == 'simpleMessage') % @else @endif

@if($saleOrder->type == "Invoice")

@lang('layout.Remined') : {{myRound((($total-$discountToShow) -$paid))}} @lang('currency.'.($saleOrder->currency))

@endif @if($saleOrder->type == "Invoice") @if($saleOrder->hesab_sabeqa =="ok") @if(getHesabSabeqahType()=="base_currency" || getHesabSabeqahType()==null) @if(getHesabSabeqa() =='true')

@lang('layout.HesabSabiqa') : @if($saleOrder->type == "Invoice") {{myRound($balance - (($total-$discountToShow) -$paid)/$saleOrder->rate)}} {{getHomeCurrency()["code"]}} @endif

@lang('layout.AmountPayable') : @if($saleOrder->type == "Invoice") {{myRound(((($balance * $saleOrder->rate)-($total)+$discountToShow)+$paid)+($total + - $discountToShow - $paid))}} @lang('currency.'.($saleOrder->currency)) @endif

@endif @endif @endif @endif @if($saleOrder->type == "Invoice") @if($saleOrder->hesab_sabeqa =="ok") @if(getHesabSabeqahType()=="currency") @if(getHesabSabeqa() =='true')

@lang('layout.HesabSabiqa') : @if($saleOrder->type == "Invoice") {{myRound(($balance-$total+$discountToShow)+$paid)}} @lang('currency.'.($saleOrder->currency)) @endif

@lang('layout.AmountPayable') : @if($saleOrder->type == "Invoice") {{myRound((($balance-$total+$discountToShow)+$paid)+($total - $discountToShow -$paid))}} @lang('currency.'.($saleOrder->currency)) @endif

@endif @endif @endif @endif @if($saleOrder->type == "saleOrderReceipt") @if(getHesabSabeqaSale()=="true")

@lang('layout.HesabSabiqa') : {{myRound(($balance))}} {{getHomeCurrency()["code"]}}

@endif @endif @if(getHesabSabeqa() =='false')

@lang('layout.AmountPayable') : @if($saleOrder->type =="Invoice") {{myRound(($total - $discountToShow -$paid))}} @lang('currency.'.($saleOrder->currency)) @endif

@endif

@lang('layout.Address') : {!! company()['streetAddress'] !!} @if(getWhatsAppType() == 'simpleMessage') 📍 @else @endif

@lang('layout.Phone') : {!! company()['phone'] !!} @if(getWhatsAppType() == 'simpleMessage') 📱 @else @endif

{{--

@if(App::isLocale('fa') || App::isLocale('pa')) @lang('layout.TotalInLeters') = {{notowo(abs(round($total)),'fa')}} -- @else @lang('layout.TotalInLeters') = {{notowo(abs(round($total)),'en')}} -- @endif @if($saleOrder->type == "Invoice") @lang('layout.Recipt') = {{myRound($paid)}} @lang('currency.'.($saleOrder->currency)) -- @endif ( @lang('layout.Total') = {{myRound($total)}} @lang('currency.'.($saleOrder->currency)) @if($saleOrder->currency != getReportCurrency())   --- مجموع دالر : {{myRound(($total)/$saleOrder->rate)}} @endif ) --

--}} {{--

--}} {{-- @lang('layout.Discount') = @if($saleOrder->discount_type=="currency") {{myRound(($discountToShow))}} @lang('currency.'.($saleOrder->currency)) @else {{myRound($discountToShow)}} @lang('currency.'.($saleOrder->currency)) @endif -- --}} {{-- @if($saleOrder->type == "Invoice") @lang('layout.Remined') = {{myRound((($total-$discountToShow) -$paid))}} @lang('currency.'.($saleOrder->currency)) -- @endif --}} {{-- @if($saleOrder->type == "Invoice") @if($saleOrder->hesab_sabeqa =="ok") @if(getHesabSabeqahType()=="base_currency" || getHesabSabeqahType()==null) @if(getHesabSabeqa() =='true') @lang('layout.HesabSabiqa') = @if($saleOrder->type == "Invoice") {{myRound($balance - (($total-$discountToShow) -$paid)/$saleOrder->rate)}} {{getHomeCurrency()["code"]}} @endif -- ( @lang('layout.AmountPayable') = @if($saleOrder->type == "Invoice") {{myRound(((($balance * $saleOrder->rate)-($total)+$discountToShow)+$paid)+($total + - $discountToShow - $paid))}} @lang('currency.'.($saleOrder->currency)) @endif ) -- @endif @endif @endif @endif --}} {{-- @if($saleOrder->type == "Invoice") @if($saleOrder->hesab_sabeqa =="ok") @if(getHesabSabeqahType()=="currency") @if(getHesabSabeqa() =='true') @lang('layout.HesabSabiqa') = @if($saleOrder->type == "Invoice") {{myRound(($balance-$total+$discountToShow)+$paid)}} @lang('currency.'.($saleOrder->currency)) @endif -- ( @lang('layout.AmountPayable') = @if($saleOrder->type == "Invoice") {{myRound((($balance-$total+$discountToShow)+$paid)+($total - $discountToShow -$paid))}} @lang('currency.'.($saleOrder->currency)) @endif ) -- @endif @endif @endif @endif --}} {{-- @if($saleOrder->type == "saleOrderReceipt") @if(getHesabSabeqaSale()=="true") @lang('layout.HesabSabiqa') = {{myRound(($balance))}} {{getHomeCurrency()["code"]}} -- @endif @endif --}} {{-- @if(getHesabSabeqa() =='false') ( @lang('layout.AmountPayable') = @if($saleOrder->type =="Invoice") {{myRound(($total - $discountToShow -$paid))}} @lang('currency.'.($saleOrder->currency)) @endif ) @endif --}} {{--

--}} @endsection