@extends('apex-layouts.main') @section('title','Leads') @section('header-right') Total:  {{ $leads->total() }} @if(\Illuminate\Support\Facades\Auth::user()->alphaRole ==\App\managers\UserManager::AlphaRoleSuper) @endif {!! \App\helpers\ViewCommonHelper::headerExportButton() !!} @endsection @section('content')
@foreach($leads as $lead) @endforeach
Name Phone Email Source/Status Reasons Comment Created
{!! $lead->id !!} {!! $lead->name !!} {{$lead->phone}} {{$lead->email}} @if($lead->createdByName)

{{$lead->createdByName}}

@else

{{$lead->type}}

@endif

{{$lead->status}}

@if(!empty($lead->reasonTitle))

{{$lead->reasonTitle}}

@endif
@if(!empty($lead->mealPlanTitle))

{{$lead->mealPlanTitle}}

@endif @if($lead->quote)

{{$lead->quote}}

@endif @if($lead->comments) @foreach(\App\helpers\ViewCommonHelper::getArrayOfCsv($lead->comments) as $comment)

{{$comment}}

@endforeach @endif

{{\App\helpers\ViewCommonHelper::getDateFormat($lead->created_at,1)}}

id)}}" data-modal-id="add-comment-modal-{{$lead->id}}">
@if($leads->total() > $leads->perPage()) @endif
@endsection @section('scripts') @stop @section('styles') @stop