@extends('layouts.dashboard-app') @section('main-content')

Hello, Welcome {{ auth()->user()->name }}

All Leads Records Mis Coordinator

@foreach ($records as $key => $item) @php $status = DB::table('status_codes') ->where('status_code', $item->status) ->first(); @endphp @endforeach
S# Lead No Customer Name Plan Name Sim Type Lead Type C.M. No Status Revenue Verified Status Sr Status File Uploader Name
{{ ++$key }} {{ $item->lead_no }} {{ $item->customer_name }} @if ($item->sim_type == 'New') @foreach (explode(',', $item->select_plan) as $info) @php($plans = \App\plan::whereid($info)->first()) {{ $plans->plan_name }} @endforeach @elseif($item->sim_type == 'MNP') @foreach (explode(',', $item->select_plan) as $info) @php($plans = \App\plan::whereid($info)->first()) {{ $plans->plan_name }} @endforeach @elseif($item->sim_type == 'Migration') @foreach (explode(',', $item->select_plan) as $info) @php($plans = \App\plan::whereid($info)->first()) {{ $plans->plan_name }} @endforeach @else @foreach (explode(',', $item->select_plan) as $info) @php($plans = \App\elife_plan::whereid($info)->first()) {{ $plans->plan_name }} @endforeach @endif {{ $item->sim_type }} {{ $item->lead_type }} {{ $item->customer_number }} {{ $status ? $status->status_name : 'Status not found' }} {{ $item->revenue }} {{ $item->verified_status }} {{ $item->sr_status }} {{ $item->file_uploader_name }}
@endsection {{-- @@section('name') --}} {{-- @endsection --}}