@php use App\Http\Controllers\Mod\ModNegotiationRelationship;use App\Http\Controllers\Mod\ModRelationshipAction;use App\Models\Profile; use Illuminate\Support\Facades\Crypt; use App\Http\Controllers\Mod\ModNegotiation; $profile = Profile::user(); $select_user = 1; // usuario logado $id_negotiation = $record_negotiation->idNegotiation; $id_clientprovider = $record_negotiation->idClientProvider; $proposal_scritp_eye=isset($proposal_scritp_eye)?$proposal_scritp_eye:1; @endphp @include('mod-negotiation.include-detail-negotiation') @php $sellerSelect=isset($sellerSelect)?$sellerSelect:null; $proposal_formadd = 1; //RELACIONAMENTO:: STATUS ATIVO $relationship_active=isset($relationship_active)?$relationship_active:1; //LISTA:: Relacionamento $record_relationship=isset($record_relationship)?$record_relationship:null; @endphp

Propostas:

@include('mod-negotiation.include-detail-negotiation-proposal-button')
{{-- ACESSO AS FERRAMENTAS DA NEGOCIACAO --}} {{--@if( ModNegotiation::accessTool([--}} {{-- 'idUserResponsible'=>$record_negotiation->idUserResponsible,--}} {{-- 'idUserResponsibleClient'=>$record_negotiation->idUserResponsibleClient,--}} {{-- 'idUserResponsibleAssistant'=> $record_negotiation->idUserResponsibleAssistant,--}} {{-- ]) == 1)--}} {{--@else--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--@endif--}}
@include('mod-negotiation.index-proposal')
@if($relationship_active == 1) @php $option='re'; @endphp @if($record_relationship == null) @php //$record = $record->where('idRelationshipAction', '>=', '100'); //-------------------------------------------------------------------------------------------------------------- //-----| LOAD RELACIONAMENTO $record_relationship = ModNegotiationRelationship::informationEvent([ 'idNegotiation'=>$id_negotiation, 'idReserved' =>'null', 'optionList'=>'p', 'orderBy'=>'orderByDesc', 'orderByName' => 'idNegotiationRelationshipStatusEvent', 'optionListQtt'=>100, ]); @endphp @endif @php $data_relactionship_action[0] = new \App\Models\NewClasses(); $data_relactionship_action[0]->idRelationshipActionClass=1; $data_relactionship_action[1] = new \App\Models\NewClasses(); $data_relactionship_action[1]->idRelationshipActionClass=2; $data_relactionship_action[2] = new \App\Models\NewClasses(); $data_relactionship_action[2]->idRelationshipActionClass=3; foreach ($data_relactionship_action as $row_relactionship){ $number=$row_relactionship->idRelationshipActionClass; $record_action = ModRelationshipAction::information([ 'idStatusReg' => '1', 'idRelationshipActionClass' => $row_relactionship->idRelationshipActionClass, 'optionList'=>'g', 'optionListQtt'=>100, ]); if($row_relactionship->idRelationshipActionClass ==1){$record_action_1=$record_action;} if($row_relactionship->idRelationshipActionClass ==2){$record_action_2=$record_action;} if($row_relactionship->idRelationshipActionClass ==3){$record_action_3=$record_action;} } @endphp @include('mod-negotiation-relationship.index-relationship') @if($proposal_scritp_eye == 1) @include('mod-negotiation-relationship.script') @endif @endif