Leads Search

  • {{ __('messages.search') }}
    lead_source_id {{ __('messages.Lead Source') }} .defer @foreach (\App\Models\LeadSource::all() as $source) @endforeach
    lead_type_id {{ __('messages.Lead Type') }} .defer @foreach (\App\Models\LeadType::all() as $type) @endforeach
    lead_status_id {{ __('messages.Lead Status') }} .defer @foreach (\App\Models\LeadStatus::all() as $status) @endforeach
    product_id {{ __('messages.Product') }} .defer @foreach ($products_can_show as $product) @endforeach
    category_id {{ __('messages.Category') }} .defer @foreach (\App\Models\Category::where("active" ,1)->get() as $category) @endforeach
    branch_id {{ __('messages.Branch') }} .defer @foreach (\App\Models\Branch::all() as $branch) @endforeach
    {{--
    created_by_id {{ __('messages.Created by') }} .defer @foreach (\App\Models\User::all() as $user) @if($user->active ==1) @endif @endforeach
    --}}
    assigned_to_id {{ __('messages.assigned_to') }} .defer @foreach (\App\Models\User::where("active" ,1)->get() as $user) @endforeach
    assigned_by_id {{ __('messages.assigned_by') }} .defer @foreach (\App\Models\User::where("active" ,1)->get() as $user) @endforeach
    {{__('messages.during a period of time')}}
  • {{ __('messages.search') }}
    {{__('messages.Lead Source')}}
    @foreach(\App\Models\LeadSource::all() as $leadSource)
    @endforeach
    {{__('messages.Lead Types')}}
    @foreach(\App\Models\LeadType::all() as $leadType)
    @endforeach
    {{__('messages.Lead Status')}}
    @foreach(\App\Models\LeadStatus::all() as $leadStatus)
    @endforeach
    {{trans_choice('messages.Products',5)}}
    @foreach(\App\Models\Product::where('active',1)->get() as $product)
    @endforeach
    {{trans_choice('messages.Categories',5)}}
    @foreach(\App\Models\Category::where("active" ,1)->get() as $category)
    @endforeach
    {{__('messages.the_branches')}}
    @foreach(\App\Models\Branch::all() as $branch)
    @endforeach
# {{__("messages.Name")}} {{__("messages.mobile")}} Source Status Type {{__("messages.Product")}} {{__("messages.Branch")}} {{__("messages.city")}} {{__("messages.google_id")}} {{__("messages.comment")}} {{__("messages.Created by")}} {{__("messages.assigned_by")}} {{__("messages.assigned_to")}} {{__("messages.customer")}} {{__("messages.Created At")}}
@forelse ($lead_customers as $key =>$lead_customer) # {{$lead_customers->firstItem() + $key}} {{ __('messages.Name') }}{{ $lead_customer->name }} {{ __('messages.mobile') }} {{ $lead_customer->mobile }} Source {{ $lead_customer->lead_source_id ? $lead_customer->lead_source->name : '' }} Status @if ($lead_customer->lead_status_id) {{ $lead_customer->lead_status->name }} @endif Type {{ $lead_customer->lead_type_id ? $lead_customer->lead_type->name : '' }} {{ __('messages.Product') }} {{ $lead_customer->product_id ? $lead_customer->product->name : '' }} {{__("messages.Branch")}}{{($lead_customer->branch)?$lead_customer->branch->name:"-"}} {{__("messages.city")}}{{($lead_customer->city)?$lead_customer->city:""}} {{__("messages.google_id")}} @if($lead_customer->google_id) @else - @endif {{ __('messages.comment') }} {{ $lead_customer->comment }} {{__("messages.Created by")}}{{($lead_customer->created_by)?$lead_customer->created_by_user->name:""}} {{__("messages.assigned_by")}}{{($lead_customer->assigned_by_user)?$lead_customer->assigned_by_user->name:""}} {{__("messages.assigned_to")}} @if($lead_customer->leadHistory->first()) md:max-w-4xl m-3 {{($lead_customer->assigned_to_user)?$lead_customer->assigned_to_user->name:""}} {{__('messages.Lead History Assign Log')}} @php $lead_histories = $lead_customer->leadHistory; @endphp # {{__("messages.assigned_to")}} {{__("messages.assigned_by")}} {{__("messages.assigned_at")}} @forelse ($lead_histories as $key =>$lead_history) # {{++$key}} {{__("messages.assigned_to")}} {{$lead_history->assigned_to_user->name}} {{__("messages.assigned_by")}} {{$lead_history->assigned_by_user->name}} {{__("messages.assigned_at")}} @if($lead_history->assigned_at) {{\Carbon\Carbon::createFromTimeString($lead_history->assigned_at)->translatedFormat('M j, Y, g:i a')}} @else - @endif @empty {{__("messages.Empty Result")}} @endforelse @else {{($lead_customer->assigned_to_user)?$lead_customer->assigned_to_user->name:""}} @endif {{ __('messages.customer') }} {{-- @dump($lead_customer->customer) --}} @if($lead_customer->customer) @php if ($lead_customer->customer->orders->count()>0) $text_color = "text-blueskills"; else $text_color = "text-green-800"; @endphp {{ $lead_customer->customer->name}} @else - @endif {{ __('messages.Created At') }} {{ $lead_customer->created_at }} @empty {{ __('messages.Empty Result') }} @endforelse
{{ $lead_customers->links() }}