@php $addLeadPermission = user()->permission('add_lead'); $manageStatusPermission = user()->permission('manage_lead_status'); $changeStatusPermission = user()->permission('change_lead_status'); @endphp @foreach ($result['boardColumns'] as $key => $column) @if ($column->userSetting && $column->userSetting->collapsed)

{{ $column->type }}

{{ $column->leads_count }}
@else

{{ $column->type }}

{{ $column->leads_count }} @if ($addLeadPermission != 'none' || $manageStatusPermission == 'all') @endif
{{ currency_format($column->total_value, company()->currency_id) }}
@foreach ($column['leads'] as $lead) @endforeach
@if ($column->leads_count > count($column['leads'])) @endif
@endif @endforeach