@extends('layouts.app') @section('content')
Search Leads
@if(auth()->user()->role_id == 1 || auth()->user()->role_id == 2)
@endif
@if(auth()->user()->role_id == 1 || auth()->user()->role_id == 2 || Auth::user()->role_id == 3)
@endif
@if(auth()->user()->role_id == 3 || auth()->user()->role_id == 4)
@endif get('fist_name')) value="{{request()->get('fist_name')}}" @endif placeholder="First Name">
@if(auth()->user()->role_id == 3 || auth()->user()->role_id == 4)
@endif get('last_name')) value="{{request()->get('last_name')}}" @endif placeholder="Last name">
get('phone')) value="{{request()->get('phone')}}" @endif placeholder="Phone">
get('email')) value="{{request()->get('email')}}" @endif placeholder="Email">
@if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3)
get('dateFrom')) value="{{request()->get('dateFrom')}}" @endif placeholder="Date From" autocomplete="off">
get('dateTo')) value="{{request()->get('dateTo')}}" @endif placeholder="Date To" autocomplete="off">
get('qty')) value="{{request()->get('qty')}}" @endif placeholder="Quantity" autocomplete="off">
@endif
Shuffle
@if(Auth::user() && Auth::user()->role_id == 1 || Auth::user()->role_id == 2)
@csrf
@endif
Total Leads: {{$leadsCount}}
@if(Auth::user() && Auth::user()->role_id == 1 || Auth::user()->role_id == 2)
@csrf
@if(Auth::user()->role_id == 1)
@endif
@endif
@if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3) @endif @if(auth()->user()->role_id == 1) @endif @foreach($allLeads as $index => $lead) @if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3) @endif @if(auth()->user()->role_id == 1) @endif @endforeach @if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3) @endif @if(auth()->user()->role_id == 1) @endif
IndexActionFirst Name Last Name phone country email Status Agent affiliates sourceTransfered AtCreated At
{{$index}} @if(auth()->user() && auth()->user()->role_id == 1 || auth()->user()->role_id == 2)
@if(auth()->user()->role_id == 1)
@csrf @method('DELETE')
@endif @endif @if(Auth::user() && Auth::user()->role_id == 1 || Auth::user()->role_id == 2)
@endif
{{$lead->first_name}} {{$lead->last_name}} @php $pref = App\Models\Prefix::where('country', 'like', '%'.$lead->country.'%')->first(); if($pref != null){ $prefix = $pref->prefix; } else { $prefix = '*22'; } $agentId = 2011; if($lead->user == null){ $agentId = 2011; } else { $agentId = $lead->user->agent_id; } @endphp phone)}}/{{$prefix}}">+{{$lead->phone}} {{$lead->country}} {{$lead->email}} @if(auth()->user() && auth()->user()->role_id == 1 || auth()->user()->role_id == 2 || auth()->user()->role_id == 3) @if(isset($lead->status_id)) @else @endif @else {{ $lead->status->name }} @endif @if(auth()->user() && auth()->user()->role_id == 1 || auth()->user()->role_id == 2) @if(isset($lead->user->id)) @else @endif @else @if(isset($lead->user->id)) {{$lead->user->name}} @endif @endif {{$lead->affiliates}} {{$lead->source}} {{$lead->updated_at}} @if(auth()->user()->role_id == 1) @else {{$lead->created_at}} @endif
IndexActionFirst Name Last Name phone country email Status Agent affiliates sourceTransfered AtCreated
@if($allLeads instanceof Illuminate\Pagination\LengthAwarePaginator) {{$allLeads->links('dashboard.pagination')}} @endif
@if(auth()->user()->role_id == 1) @include('dashboard.index.create') @endif @endsection @push('scripts') @endpush