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

{{$channel->name}}

--}}
@foreach ($channel_partner as $channel) @inject('provider', 'App\Http\Controllers\ReportController') {{-- --}} @php $r = \App\lead_sale::select('lead_sales.customer_name','plans.plan_name','lead_sales.selected_number','lead_sales.customer_number','lead_sales.created_at as create_date', 'lead_locations.created_at as assign_date','activation_forms.created_at as activation_date','lead_sales.emirates','lead_locations.location_url','lead_sales.sim_type','activation_forms.activation_sr_no') ->LeftJoin( 'activation_forms','activation_forms.lead_id','=','lead_sales.id' ) ->LeftJoin( 'plans','plans.id','=','lead_sales.select_plan' ) ->LeftJoin( 'lead_locations', 'lead_locations.lead_id','=','lead_sales.id' ) ->where('lead_sales.status','1.02') ->where('lead_sales.channel_type',$channel->name) ->get(); @endphp @foreach ($r as $key => $item) @endforeach

{{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M , Y')}} {{-- Till --}} {{-- {{$day = \Carbon\Carbon::parse($date = \Carbon\Carbon::today())->format('M, d, Y')}} --}}

S#AgentsChannel Partner Lead Number Customer Name Customer Number Sub Request Number {{-- (1.01) --}} Lead Creation Date {{-- (1.03,1.05,1.07,1.08,1.09,1.10) --}} Package {{-- (1.02) --}} Lead Assign Date {{-- (1.04) --}} Region {{-- (1.03) --}} Location Type Remarks Activation Date PiOINTS
{{++$key}} {{$channel->name}} {{++$key}} {{$item->customer_name}} {{$item->selected_number}} {{$item->activation_sr_no}} {{\Carbon\Carbon::parse($item->create_date)->format('d-M-Y')}} {{$item->plan_name}} {{\Carbon\Carbon::parse($item->assign_date)->format('d-M-Y')}} {{$item->emirates}} {{$item->emirates}} Activated {{$item->sim_type}} {{\Carbon\Carbon::parse($item->activation_date)->format('d-M-Y')}} Points
@endforeach
{{-- @endforeach --}} @endsection