@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')) @lang('modules.followup.newFollowUp') @endif
@if ($viewLeadFollowUpPermission == 'all' || $viewLeadFollowUpPermission == 'added')
{!! $dataTable->table(['class' => 'table table-hover border-0 w-100']) !!}
@endif
@include('sections.datatable_js')