@foreach($getrecord as $value)
@php
$id = $value->source == 'Chilly' ? 'C-' . $value->id : 'B-' . $value->id;
@endphp
| {{ $id }} |
{{ $value->name }} |
{{ $value->phone ? '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)->follow_up_time ? \Carbon\Carbon::parse($value->latestCallTracker->follow_up_time)->format('d M Y') : 'Not Followed' }}
|
{{ optional($value->latestCallTracker)->follow_up_time ? \Carbon\Carbon::parse($value->latestCallTracker->next_followup_time)->format('d M Y') : 'Not Followed' }}
|
@endforeach