@php $addFollowUpPermission = user()->permission('add_proposal_follow_up'); $viewFollowUpPermission = user()->permission('view_proposal_follow_up'); $editFollowUpPermission = user()->permission('edit_proposal_follow_up'); $deleteFollowUpPermission = user()->permission('delete_proposal_follow_up'); $proposalFollowUps = $proposalFollowUps ?? collect(); @endphp
@if ($invoice->status == 'accepted' || $invoice->status == 'declined') @lang('messages.cantAddFollowup') @endif @if ($invoice->status != 'accepted' && $invoice->status != 'declined' && ($addFollowUpPermission == 'all' || $addFollowUpPermission == 'added')) @endif
@if ($viewFollowUpPermission == 'all' || $viewFollowUpPermission == 'added') @lang('app.createdOn') @lang('modules.lead.nextFollowUp') @lang('app.remark') @lang('app.status') @lang('app.action') @forelse ($proposalFollowUps as $followUp) {{ $followUp->created_at->timezone(company()->timezone)->format(company()->date_format . ' ' . company()->time_format) }} {{ $followUp->next_follow_up_date->format(company()->date_format . ' ' . company()->time_format) }} {{ $followUp->remark }} @if ($editFollowUpPermission == 'all' || ($editFollowUpPermission == 'added' && $followUp->added_by == user()->id)) @else @if ($followUp->status == 'pending') @elseif ($followUp->status == 'canceled') @elseif ($followUp->status == 'completed') @endif {{ ucfirst($followUp->status) }} @endif @empty @endforelse @endif