@php $editPipelinePermission = user()->permission('edit_deal_pipeline'); $mangeLeadStagePermission = user()->permission('manage_deal_stages'); @endphp
@forelse($pipelines as $pipeline)
@if($editPipelinePermission == 'all' || ($editPipelinePermission == 'added' && user()->id == $pipeline->added_by) || ($editPipelinePermission == 'owned' && user()->id == $pipeline->added_by) || ($editPipelinePermission == 'both' && user()->id == $pipeline->added_by)) @endif
{{ $pipeline->stages->count() }} @lang('modules.deal.stages')
@lang('modules.deal.stages')
# @lang('modules.deal.leadStage') @lang('modules.deal.defaultLeadStage') @lang('app.action') @forelse($pipeline->stages as $key => $stage) {{ $key + 1 }} @if (!$stage->default && $stage->slug != 'generated' && $stage->slug != 'win' && $stage->slug != 'lost' ) @endif @empty @endforelse
@empty @endforelse