@php use App\Http\Controllers\Mod\ModNegotiation;use App\Http\Controllers\Mod\ModSalesOrder;use App\Http\Controllers\ModCronos;use App\Models\Profile;use Illuminate\Support\Facades\Crypt; $profile=Profile::user(); $search_string = isset($search_string)?$search_string:null; @endphp @if($record!=null) @foreach($record as $row ) @php $profile_responsible = Profile::user($row->idUserResponsible); $record_salesorder=ModSalesOrder::informationSimple([ 'selectString'=>'created_at', 'idNegotiation'=>$row->idNegotiation, 'orderBy'=>'orderByDesc', 'optionList'=>'f', ]); $id_negotiation = $row->idNegotiation; $id_status_rating = $row->idNegotiation; @endphp
{{-- ULTIMA PROPOSTA GERADA--}}
@if(ModCronos::convertDateTimeBR(isset($record_salesorder->created_at)?$record_salesorder->created_at:null)!=""|| ModCronos::convertDateTimeBR(isset($record_salesorder->created_at)?$record_salesorder->created_at:null) != null) @endif
Última proposta:
{{ ModCronos::convertDateTimeBR(isset($record_salesorder->created_at)?$record_salesorder->created_at:null)}}
{{-- RELACIONAMENTO--}} {!! isset($row->relationshipDays)?$row->relationshipDays:'x' !!}
Dias de Relacionamentos
{{ ModCronos::convertDateTimeBR(isset($row->relationshipDate)?$row->relationshipDate:null) }}
{{-- O Responsavel pela negociacao de ser iqual ao usuario logado --}} @if($row->idUserResponsibleClient == $profile->idUser) @endif {{str_replace('&', '&', $row->clientName)}}
CNPJ: {{ $row->cnpjCpf }}
{{ $row->contactName }} {{--PERMISSAO| VENDEDOR: RESPONSAVEL/ASSISTENTE/ADM--}} @if($row->idUserResponsible !== $profile->idUser) @php $profile_assistant= Profile::user($row->idUserResponsible); @endphp
Vendedor: {{ $profile_assistant->userName }} @endif @if($row->idUserResponsibleAssistant !== null) @php $profile_assistant= Profile::user($row->idUserResponsibleAssistant); @endphp @if($row->idUserResponsible == $profile->idUser)
Auxiliar\ Venda: {{ $profile_assistant->userName }} @elseif($row->idUserResponsible !== $profile->idUser) @if($row->idUserResponsibleAssistant !== $profile->idUser)
Auxiliar\ Venda: {{ $profile_assistant->userName }} @endif @endif @endif
e-mail: {{ $row->contactEmail }} @if(!empty($row->phone))
Fone:{{ $row->phone }} @if($row->phoneNet=='1') Abrir @endif @endif @if(!empty($row->contactCel))
Fone:{{ $row->contactCel }} @if($row->contactCelNet=='1') Abrir @endif @endif
{{-- ACESSO AS FERRAMENTAS DA NEGOCIACAO --}} @if( ModNegotiation::accessTool([ 'idUserResponsible'=>$row->idUserResponsible, 'idUserResponsibleClient'=>$row->idUserResponsibleClient, 'idUserResponsibleAssistant'=> $row->idUserResponsibleAssistant, ]) == 1) @include('mod-negotiation.index-load-menu') @else
Permissão
@endif
@php $record_sec = isset($record_sec)?$record_sec:null; @endphp
@if($record_sec!=null) @include('mod-negotiation.index-proposal') @endif
@endforeach @endif
Warning: Undefined variable $record in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation/index-load.blade.php on line 244

Fatal error: Uncaught Error: Call to a member function currentPage() on null in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation/index-load.blade.php:244 Stack trace: #0 {main} thrown in /home/admgocrm/public_html/crm/dev/crmviews/mod-negotiation/index-load.blade.php on line 244