@php use App\Http\Controllers\Mod\ModProductService;use App\Http\Controllers\Mod\ModSalesOrderProductService as SalesOrderProductService;use App\Http\Controllers\ModFinancial; if($record!=null) { //CLIENTE $record_category = SalesOrderProductService::information([ 'selectString' => 'idCategory,categoryName,idSalesOrder', 'idBonus'=> 2, 'idSalesOrder' => $record->idSalesOrder, 'idManager' => $record->idManager, 'idComp' => $record->idComp, 'orderByName' => 'categoryName', 'optionList' => 'g', 'optionListQtt' => 'a', 'distinct' => 'on', ]); $proposal_status=2; } @endphp

Produtos e Serviços

@php $prodserv_result=0; @endphp @foreach($record_category as $row_category) @endforeach

@if($row_category->idCategory != 0) {{$row_category->categoryName}} @endif


{{-- PRODUTOS / SERVIÇOS --}} @php $id_category=$row_category->idCategory; $record_prodserv = SalesOrderProductService::information([ 'idCategory'=> $id_category, 'idBonus'=> 2, 'idSalesOrder'=>$record->idSalesOrder, 'idManager' =>$record->idManager, 'idComp' =>$record->idComp, 'optionList'=>'g', 'optionListQtt'=>'a', ]); @endphp @php $prodserv_subtotal_cat=0; @endphp @foreach($record_prodserv as $row_prodserv) @php $prodserv_subtotal=0; @endphp @php $descricao=ModProductService::information([ 'idProductService'=> $row_prodserv->idProductService, 'optionList'=>'f', ]) @endphp @php $prodserv_result+=$prodserv_subtotal; @endphp @endforeach
Produtos/Serviços: Descrição 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')}} {{--
Warning: Undefined variable $row_prodserv in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation-budget-client/formedit-03-02-product.blade.php on line 105

Warning: Attempt to read property "xValue" on null in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation-budget-client/formedit-03-02-product.blade.php on line 105

Warning: Undefined variable $row_prodserv in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation-budget-client/formedit-03-02-product.blade.php on line 105

Warning: Attempt to read property "amount" on null in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation-budget-client/formedit-03-02-product.blade.php on line 105

Warning: Undefined variable $prodserv_subtotal in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation-budget-client/formedit-03-02-product.blade.php on line 105
--}}
@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; $prodserv_subtotal += $subtotal_value-$subtotal_disc+$subtotal_Inc; $prodserv_subtotal_cat+=$prodserv_subtotal; @endphp {{ ModFinancial::formatMoney($prodserv_subtotal,'pt_BR') }}
Subtotal por categoria:
R$
{{ ModFinancial::formatMoney($prodserv_subtotal_cat,'pt_BR')}}

@if($record->idPaymentMethod != 2)
Subtotal:
R$
{{ ModFinancial::formatMoney($prodserv_result,'pt_BR')}}
Frete:
R$
{{ ModFinancial::formatMoney($record->shippingFee,'pt_BR')}}
@endif

Total:

R$
{{ ModFinancial::formatMoney($prodserv_result+$record->shippingFee,'pt_BR')}}