@extends('layouts.app')
@section('content')
{{--
--}}
By Affiliate
Name |
Name |
@foreach (config('defines.opportunity_stage_aff_select') as $data_k => $data_v)
{{ $data_v }} |
@endforeach
@forelse ($sales_users as $sales_user)
{{ $sales_user->user_name }} |
{{ $sales_user->user_name }} |
@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
{{ $no }} |
@endforeach
@empty
@endforelse
By Vendor
Name |
Name |
@foreach (config('defines.opportunity_stage_select') as $data_k => $data_v)
{{ $data_v }} |
@endforeach
@forelse ($sales_users as $sales_user)
{{ $sales_user->user_name }} |
{{ $sales_user->user_name }} |
@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
{{ $no }} |
@endforeach
@empty
@endforelse
@endsection