@php use App\Http\Controllers\Mod\ModOrigin;use App\Http\Controllers\ModFinancial;use App\Models\Profile;use Illuminate\Support\Facades\Crypt; $profile= Profile::user(); @endphp
@foreach($record as $row ) @php //-------------------------------------------------------------------------------------------------------------- //REGISTRO | FINANCEIRO: VENDA REALIZADA, RECORRENTE //Registro\PedidosOrdem\Faturado\FormPG:Recorrente\ $record_salesorder = ModOrigin::informationSalesOrderLast([ '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); @endphp @endforeach
Pedido Detalhes Valor
| Negociação: {{$row->idNegotiation}}
| Proposta: {{$row->idSalesOrder}}
{{$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$ @if($row->salesOrderProdServValue !=0) {{ModFinancial::formatMoney($row->salesOrderProdServValue,'pt_BR')}} {{--
Status:--}} {{-- @if($row->idStatusFinDebt==1)--}} {{-- PG--}} {{-- @elseif($row->idStatusFinDebt==2)--}} {{-- ÑPG--}} {{-- @else--}} {{-- Aberto--}} {{-- @endif--}} @else Vendedor não foi pago @endif