@extends('layouts.app') @section('content')
| CID | @if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3)Action | @endifFirst Name | Last Name | Phone | Country | Status | Agent | Affiliates | Comment | Source | @if(auth()->user()->role_id == 1)Transfered At | @endifCreated At | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$lead->id}} | @if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3 )
@if(auth()->user() && auth()->user()->role_id == 1 || auth()->user()->role_id == 2)
|
{{$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 = 2000; // if($lead->user == null){ // $agentId = 2000; // } else { // $agentId = $lead->user->agent_id; // } @endphp +{{str_replace(['+', ' ', '-',], '', $lead->phone)}} {{-- 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 @if($lead->status != null){{ $lead->status->name }}@else Status not selected @endif @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->comment}} | {{$lead->source}} | @if(auth()->user()->role_id == 1){{$lead->updated_at}} | @endif@if(auth()->user()->role_id == 1) @else {{$lead->created_at}} @endif |
| CID | @if(Auth::user()->role_id == 1 || Auth::user()->role_id == 2 || Auth::user()->role_id == 3)Action | @endifFirst Name | Last Name | phone | country | Status | Agent | affiliates | source | @if(auth()->user()->role_id == 1)Transfered At | @endifCreated |