@extends('admin.layouts.app') @section('content')
@if($search_key) @php $user = App\Models\User::where(function ($query) use ($search_key){ $query->where('name','like','%'.$search_key.'%') ->orWhere('email','like','%'.$search_key.'%') ->orWhere('phone','like','%'.$search_key.'%') ->orWhere('referrer_code',$search_key ); })->first(); @endphp
Name: {{optional($user)->name}}
Phone: {{optional($user)->phone}}
@endif
@forelse ($associates as $key=>$associate) @empty @endforelse
# User Detail Active Plan
{{($key+1) + ($associates->currentPage() - 1)*$associates->perPage()}} Name: {{$associate->name}}
Email: {{$associate->email}}
Phone: {{$associate->phone}}
Referrer Code: {{$associate->referrer_code}}
Date: {{$associate->created_at->format('d-M-Y h:i A')}}
{{$associate->userDetail->plan->title}}

Nothing Found


Showing {{($associates->currentpage()-1)*$associates->perpage()+1}} to {{(($associates->currentpage()-1)*$associates->perpage())+$associates->count()}} of {{$associates->total()}} Associates

{!! $associates->appends(['search_date'=>$search_date,'search_key'=>$search_key])->links() !!}
@endsection