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

{{ $column->name }}

{{ $column->deals_count }}
@else

{{ $column->name }}

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