@extends('theme.master') @section('title', 'Profile & Setting') @section('content') @include('admin.message')

{{ __('frontstaticword.UserProfile') }}

@if(Auth::User()->user_img != null || Auth::User()->user_img !='')
@else
@endif
{{ Auth::User()->fname }} {{ Auth::User()->lname }}
All Leads
@php $start_date=date('Y-m-').'01'; if(isset($_GET['start_date'])){ $start_date=$_GET['start_date']; } $end_date=date('Y-m-t'); if(isset($_GET['end_date'])){ $end_date=$_GET['end_date']; } $pending_count = DB::table('lead')->where('status',0)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); $cold_count = DB::table('lead')->where('status',1)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); $warm_count = DB::table('lead')->where('status',2)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); $hot_count = DB::table('lead')->where('status',3)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); $ni_count = DB::table('lead')->where('status',4)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); $closed_count = DB::table('lead')->where('status',5)->where('staff_id',Auth::User()->id)->whereDate('created_at','>=',$start_date)->whereDate('created_at','<=',$end_date)->count(); @endphp




Search By Status

@foreach ($leads as $user) @endforeach
Course Lead Details Last Follow Up Lead Status
@if($user->cat_type == 1) UPSC @elseif($user->cat_type == 2) Cat @elseif($user->cat_type == 3) Banking @elseif($user->cat_type == 4) SSC @elseif($user->cat_type == 5) Aviation @elseif($user->cat_type == 6) UPPCS @elseif($user->cat_type == 7) BPSC @endif

{{ __('Lead Id') }}: {{ $user->id }}

{{ __('Name') }}: {{ $user->name }}

{{ __('Email') }}: {{ $user->email }}

{{ __('Mobile') }}: {{ $user->mobile }}

@php $get_lead_followup=DB::table('lead_followup')->where('lead_id',$user->id)->orderBy('id','Desc')->first(); @endphp @if(!empty($get_lead_followup))

{{ __('Type') }}: @if($get_lead_followup->type == '0') Follow Up @elseif($get_lead_followup->type == '1') Call @elseif($get_lead_followup->type == '2') WA @elseif($get_lead_followup->type == '3') Email @endif

{{ __('Date') }}: {{ date('d-M-Y',strtotime($get_lead_followup->created_at)) }}

{{ __('Message') }}: {{ $get_lead_followup->message }}

@endif
@if($user->status == 0) Pending @endif @if($user->status == 1) Cold @endif @if($user->status == 2) Warm @endif @if($user->status == 3) Hot @endif @if($user->status == 4) Not Interested @endif @if($user->status == 5) Closed @endif View
@endsection @section('custom-script') @endsection