@php $addLeadFollowUpPermission = user()->permission('add_lead_follow_up'); $viewLeadFollowUpPermission = user()->permission('view_lead_follow_up'); $editLeadFollowUpPermission = user()->permission('edit_lead_follow_up'); $deleteLeadFollowUpPermission = user()->permission('delete_lead_follow_up'); @endphp
@if ($deal->leadStage->slug == 'win' || $deal->leadStage->slug == 'lost') @lang('messages.cantAddFollowup') @endif @if ($deal->leadStage->slug != 'win' && $deal->leadStage->slug != 'lost' && ($addLeadFollowUpPermission == 'all' || $addLeadFollowUpPermission == 'added')) @endif
@if ($viewLeadFollowUpPermission == 'all' || $viewLeadFollowUpPermission == 'added') @lang('app.createdOn') @lang('modules.lead.nextFollowUp') @lang('app.remark') @lang('app.status') @lang('app.action') @forelse ($dealFollowUps as $folllowUp) {{ $folllowUp->created_at->timezone(company()->timezone)->format(company()->date_format . ' ' . company()->time_format) }} {{ $folllowUp->next_follow_up_date->format(company()->date_format . ' ' . company()->time_format) }} {{ $folllowUp->remark }} @if ($folllowUp->status == 'pending') @elseif ($folllowUp->status == 'canceled') @elseif ($folllowUp->status == 'completed') @endif {{ ucfirst($folllowUp->status) }} @empty @endforelse @endif