@extends('layouts.master') @section('title', 'All Leads | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.all leads')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.leads center') }} | {{ __('basic.all leads') }}
{{ __('basic.search filter') }} {{ __('basic.new lead') }}
{{ __('basic.leads list') }}
{{ __('basic.leads') }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}

{{ __('basic.total leads') }}

{{ $month_leads }}
{{ __('basic.leads') }}

{{ __('basic.total conversion to clients') }}

{{ $month_leads_converted }}
{{ __('basic.converted to client') }}

{{ __('basic.conversion rate to clients') }}

@php $conversion_to_client_precentage_month = round($month_leads_converted != 0 ? $month_leads_converted / $month_leads * 100 : 0, 2); @endphp
{{ $conversion_to_client_precentage_month }} %

{{ __('basic.action with leads') }}

{{ $month_action }}
{{ __('basic.leads') }}

{{ __('basic.no action with leads') }}

{{ $month_no_action }}
{{ __('basic.leads') }}

{{ __('basic.not interested') }}

{{ $month_junk_lost }}
{{ __('basic.leads') }}

{{ __('basic.contacted') }}

{{ $month_attempted_to_contact }}
{{ __('basic.leads') }}

{{ __('basic.interested') }}

{{ $month_following }}
{{ __('basic.leads') }}
{{ __('basic.leads') }}
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@php $total_sell = 0; @endphp @foreach ($leads as $item) @if ($item->type == 1) @php $text_color = 'main-color-btn'; $msg = __('basic.real client'); $icon = "fas fa-check"; @endphp @elseif ($item->type == 2) @php $text_color = 'not_accepted-color-btn'; $msg = __('basic.cold'); $icon = "fas fa-snowflake"; @endphp @elseif ($item->type == 3) @php $text_color = 'prog-color-btn'; $msg = __('basic.warm'); $icon = "fas fa-mug-hot"; @endphp @elseif ($item->type == 4) @php $text_color = 'active-color-btn'; $msg = __('basic.hot'); $icon = "fas fa-fire"; @endphp @elseif ($item->type == 5) @php $text_color = 'cancel-color-btn'; $msg = __('basic.not interested'); $icon = "fas fa-times"; @endphp @else @php $text_color = 'not_accepted-color-btn'; $msg = __('basic.not interested'); $icon = "fas fa-times"; @endphp @endif {{-- --}} @endforeach
{{ __('basic.client') }} {{ __('basic.phone') }} {{ __('basic.project') }} {{ __('basic.campaign') }} {{ __('basic.assigned to') }} {{ __('basic.branch') }} {{ __('basic.last action') }} {{ __('basic.last comment') }} {{ __('basic.created') }} {{ __('basic.handle') }}
{{ $item->full_name }} {{ $item->phone_number }} {{ $msg }} @if($item->project) {{ $item->project->name }} @endif @if($item->campaign) {{ $item->campaign->name }} @endif @if($item->responsible) {{ $item->responsible->full_name}} @endif @if($item->branch) {{ $item->branch->name }} @else {{ __('basic.not selected') }} @endif @if($item->last_leads_action) {{ $item->last_leads_action->name }} @if($item->last_leads_sub_action) | {{ $item->last_leads_sub_action->name }} @endif @else
{{ __('basic.no action') }}
@endif
{{ $item->last_crm_comment }} @if($item->creator)

- {{ $item->creator->full_name }}

- {{ date('d M Y', strtotime($item->created_at)) }}

@else {{ __('basic.not selected') }} @endif
TrueCaller @if (count($item->actions) > 0) @endif
@endsection @section('js') @endsection