@extends('layouts.app') @section('content') {{--
--}}


By Affiliate

@foreach (config('defines.opportunity_stage_aff_select') as $data_k => $data_v) @endforeach @forelse ($sales_users as $sales_user) @foreach (config('defines.opportunity_stage_aff_select') as $data_k => $data_v) @php $no = 0; if (isset($affilate_array[$sales_user->user_id]['stages'][$data_k])) { $no = $affilate_array[$sales_user->user_id]['stages'][$data_k]; } $no_unique = 0; if (isset($affilate_array[$sales_user->user_id]['stages_unique'][$data_k])) { $no_unique = $affilate_array[$sales_user->user_id]['stages_unique'][$data_k]; } @endphp @endforeach @empty @endforelse
Name Name{{ $data_v }}
{{ $sales_user->user_name }} {{ $sales_user->user_name }}{{ $no }}

By Vendor

@foreach (config('defines.opportunity_stage_select') as $data_k => $data_v) @endforeach @forelse ($sales_users as $sales_user) @foreach (config('defines.opportunity_stage_select') as $data_k => $data_v) @php $no = 0; if (isset($vendor_array[$sales_user->user_id]['stages'][$data_k])) { $no = $vendor_array[$sales_user->user_id]['stages'][$data_k]; } $no_unique = 0; if (isset($vendor_array[$sales_user->user_id]['stages_unique'][$data_k])) { $no_unique = $vendor_array[$sales_user->user_id]['stages_unique'][$data_k]; } @endphp @endforeach @empty @endforelse
Name Name{{ $data_v }}
{{ $sales_user->user_name }} {{ $sales_user->user_name }}{{ $no }}
@endsection