@extends('fronted.layout.main') @section('adcontent') @if ($message = Session::get('lead')) @endif @if ($message = Session::get('leadbook')) @endif @if ($message = Session::get('delete')) @endif @php $totallead = DB::table('leadmanagers')->count('id'); $acceptedlead = DB::table('leadmanagers')->where('leadstatus', 0)->count(); $unacceptedlead = DB::table('leadmanagers')->where('leadstatus', '1')->count(); $currentDate = date('Y-m-d'); $todaylead = DB::table('leadmanagers')->whereDate('created_at', $currentDate)->count(); @endphp

Total Lead :- {{ $totallead }}

Today Lead :- {{ $todaylead }}

Taken Lead :- {{ $unacceptedlead }}

Not Taken Lead :- {{ $acceptedlead }}

@php $count = 1; $lead = DB::table('leadmanagers')->orderBy('created_at', 'DESC')->get(); @endphp @foreach ($lead as $temp) @endforeach
S.No. Enq. Date Candidate Name Mobile Email Enquiry For Date Requirement Budget Location Lead Source Status Action
{{ $count++ }} {{ date('d-M-Y', strtotime($temp->created_at)) }} {{ strtolower($temp->leadcandidatename) }} {{ $temp->leadmobile }} {{ $temp->leadmail }} {{ date('d-M-Y', strtotime($temp->leaddate)) }} {{ strtolower($temp->requirement) }} {{ $temp->budget }} {{ strtolower($temp->location) }} By Self @php $statusleadchange = $temp->leadstatus; if ($statusleadchange == 0) { echo 'Not Taken'; } else { echo 'Taken'; } @endphp
    @php $disabled = $temp->leadstatus == 1 ? 'disabled-link' : ''; @endphp
  • @csrf
@endsection