@php use App\Http\Controllers\Mod\ModPaymentMethodRecurrent; use App\Http\Controllers\ModFinancial; use App\Http\Controllers\Mod\ModSalesOrder; use Illuminate\Support\Facades\Crypt; @endphp
@php $recurrent_value_rec_total = 0; @endphp @foreach($record as $row_recurrent) @php $record_prodserv = ModSalesOrder::informationProdServ([ 'idSalesOrder'=>$row_recurrent->idSalesOrder, 'optionList'=>'g', 'optionListQtt'=> 'a', ]); $record_prodserv = isset($record_prodserv)?$record_prodserv:null; @endphp @endforeach
Pedido Cliente Produtos/Serviços $ % $
| Negociação: {{$row_recurrent->idNegotiation}}
| Proposta: {{$row_recurrent->idSalesOrder}}
{{$row_recurrent->clientName}}
Cnpj/Cpf: {{$row_recurrent->cnpjCpf}}
Fone: {{$row_recurrent->clientPhone}} | Cid.: {{$row_recurrent->city}}/{{$row_recurrent->state}}
{{-- {{print_r($row_recurrent)}}--}}
@if($record_prodserv !==null) @foreach($record_prodserv as $row_provserv) {{ $row_provserv->xName}} - {{ $row_provserv->amount}} @endforeach @endif
@php $recurrent_value_rec = 0; $recurrent_value_rec += $row_recurrent->shippingFee; $record_value_rec = ModPaymentMethodRecurrent::information([ 'idSalesOrder' => $row_recurrent->idSalesOrder, 'idStatusReg' => 1, 'sumValue' => 'on', 'groupBy' => 'idSalesOrder', ]); $recurrent_value_rec_total+= $recurrent_value_rec += isset($record_value_rec->value) ? $record_value_rec->value : 0; @endphp R$ {{ ModFinancial::formatMoney($recurrent_value_rec,'pt_BR')}}
R$ 0

R$ {{ModFinancial::formatMoney($recurrent_value_rec_total,'pt_BR')}}
R$ 0,00