@php use App\Http\Controllers\Mod\ModOrigin;use App\Http\Controllers\ModFinancial;use App\Models\Profile;use Illuminate\Support\Facades\Crypt; $profile= Profile::user(); use App\Http\Controllers\ModToolStatus; @endphp
@foreach($record as $row ) @php //-------------------------------------------------------------------------------------------------------------- //REGISTRO | FINANCEIRO: VENDA REALIZADA, RECORRENTE //Registro\PedidosOrdem\Faturado\FormPG:Recorrente\ $record_salesorder = ModOrigin::informationSalesOrderLast([ //'idSalesOrderProposalStatus'=>'5', // Conformação do aceite do cliente pelo VENDEDOR //'selectString' => 'idSalesOrder,idNegotiation,idUserResponsible,idClientProvider,clientName,clientPhone,cnpjCpf,city,state,shippingFee,idOrigin,originName,idPaymentMethod,idPaymentMethodRecurrent', 'idSalesOrder' => $row->idSalesOrder, //'idPaymentMethod' => '2',//RECORRENTE ]); //VENDEDOR: $profile_seller=Profile::user($record_salesorder->idUserResponsible); //PROPOSTA A SEREM PAGAS if($row->idStatusFinDebtPartner==null){ $record_fin_debt = ModToolStatus::finDebt(['idStatusFinDebt'=>12]); }else{ $record_fin_debt = ModToolStatus::finDebt(['idStatusFinDebt'=>$row->idStatusFinDebtPartner]); } @endphp @endforeach
Pedido Detalhes Valor
| Negociação: {{$row->idNegotiation}}
| Proposta: {{$row->idSalesOrder}}
{{-- @dump($record_fin_debt)--}}
{{$record_salesorder->clientName}}
Cnpj/Cpf: {{$record_salesorder->cnpjCpf}}
Fone: {{$record_salesorder->clientPhone}}  | Cid.: {{$record_salesorder->city}} /{{$record_salesorder->state}}
Origem Comiss/to: {{$record_salesorder->originName}} | Vendedor: {{$profile_seller->userName}}
R$ R$ {{ModFinancial::formatMoney($row->xValue,'pt_BR')}}
idStatusFinDebtPartner ==11) checked="checked" @endif >