@php use App\Http\Controllers\Mod\ModClientProvider;use App\Http\Controllers\Mod\ModProductService;use App\Http\Controllers\Mod\ModSalesOrderContact as SalesOrderContact;use App\Http\Controllers\Mod\ModSalesOrderDescription as SalesOrderDescription;use App\Http\Controllers\Mod\ModSalesOrderPaymentMethod as PaymentMethod;use App\Http\Controllers\Mod\ModSalesOrderProductService as SalesOrderProductService;use App\Http\Controllers\ModFinancial; use App\Http\Controllers\Mod\ModPaymentMethodRecurrent; $proposal_appearance =isset($proposal_appearance)?$proposal_appearance:0; if($record!=null) { if($proposal_appearance == 0){ //CLIENTE $record_client = ModClientProvider::ClientProviderOFF($record->idClientProvider); //PRODUTOS E SERVIÇOS $record_productservice = SalesOrderProductService::productServiceOFF(0,$record->idSalesOrder); //BONUS $record_bonus = SalesOrderProductService::bonusOFF(0,$record->idSalesOrder); //FORMA DE PAGAMENTO $record_paymentmethod = PaymentMethod::paymentMethodOFF(0,$record->idSalesOrder); //DESCRIÇÃO $record_description = SalesOrderDescription::descriptionPersonOFF(0,$record->idSalesOrder); //CONTADO-FINANCEIRO $record_contact = SalesOrderContact::contactNotFinancialOFF($record_client->idClientProvider); } $proposal_status=2; } @endphp

Produtos e Serviços

@php $subtotal=0; @endphp @foreach($record_productservice as $row_prodserv) @if($proposal_appearance==0) @php $descricao=ModProductService::information([ 'idProductService'=> $row_prodserv->idProductService, 'optionList'=>'f', ]) @endphp @endif @endforeach
Produto NCM Qtdd Valor Subtotal
{{$row_prodserv->xName}}
{!! isset($descricao->description)?$descricao->description:null; !!}
{{$row_prodserv->codEANGTINUPC}} {{$row_prodserv->amount}} {{ModFinancial::formatMoney($row_prodserv->xValue,'pt_BR')}} @if($conf_status->negProdServIncreaseWithPercentageClientStatus==1) @if($row_prodserv->xValueIncrease>0) %{{$row_prodserv->xValueIncrease}} @endif @endif @if($conf_status->negProdServDiscountWithPercentageClientStatus==1) @if($row_prodserv->xValueDiscount>0) % {{$row_prodserv->xValueDiscount}} @endif @endif @php $subtotal_Inc = ModFinancial::porcentagem($row_prodserv->xValue * $row_prodserv->amount,$row_prodserv->xValueIncrease ); $subtotal_disc = ModFinancial::porcentagem($row_prodserv->xValue * $row_prodserv->amount,$row_prodserv->xValueDiscount ); $subtotal_value = $row_prodserv->xValue * $row_prodserv->amount; $subtotal_prodserv= $subtotal_value-$subtotal_disc+$subtotal_Inc; $subtotal += $subtotal_prodserv; @endphp {{ ModFinancial::formatMoney($subtotal_prodserv,'pt_BR') }}
@if($record->idPaymentMethod != 2)
Sub total:
R$
{{ $subtotalu= ModFinancial::formatMoney($subtotal,'pt_BR')}}
Frete:
R$
{{ ModFinancial::formatMoney($record->shippingFee,'pt_BR')}}
@endif

Total:

R$
{{ ModFinancial::formatMoney($subtotal+$record->shippingFee,'pt_BR')}}
@if($sndesk=='1') @if ($record->idPaymentMethod == 2) @if ($record->idPaymentMethodRecurrent == 4)

Valor anual:

R$
{{ ModFinancial::formatMoney($subtotal*12,'pt_BR')}}
@endif @endif @endif