@php $addLeadPermission = user()->permission('add_deal'); $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' ) @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