@foreach($getrecord as $value)
@php
$id = $value->source == 'Chilly' ? 'C-' . $value->id : 'B-' . $value->id;
if(optional($value->latestCallTracker)->followup_status != ''){
$color = "blanchedalmond";
}
else{
$color = "";
}
@endphp
|
{{ $id }} |
{{ $value->name }} |
{{ $value->country }} |
{{ $value->email ? 'xxxxxxxxxx' : $value->email}} |
{{ \Carbon\Carbon::parse($value->created_at)->format('d M Y') }} |
{{ $value->phone ? 'xxxxxxxxxx' : $value->phone}} |
{{ $value->web_sort_name }} |
{{ $value->stage }} |
{{ optional($value->latestCallTracker)->followup_status }}
|
{{ optional($value->latestCallTracker)->follow_up_time ? \Carbon\Carbon::parse($value->latestCallTracker->follow_up_time)->format('d M Y') : 'Not Followed' }}
|
{{ optional($value->latestCallTracker)->next_followup_time ? \Carbon\Carbon::parse(optional($value->latestCallTracker)->next_followup_time)->format('d M Y') : '' }} |
@endforeach