{{-- HEADER --}}
{{-- SEARCH --}}
{{-- ACTIONS --}}
{{-- --}}
@can('create crm organizations')
@endcan
{{-- TABLE --}}
@scope('cell_xeroContact', $organization)
@if($organization->xeroContact)
@endif
@endscope
@scope('cell_labels', $organization)
@foreach($organization->labels as $label)
@endforeach
@endscope
@scope('cell_open_deals', $organization)
{{ $organization->deals->whereNull('closed_at')->count() }}
@endscope
@scope('cell_lost_deals', $organization)
{{ $organization->deals->where('closed_status', 'lost')->count() }}
@endscope
@scope('cell_won_deals', $organization)
{{ $organization->deals->where('closed_status', 'won')->count() }}
@endscope
@scope('actions', $organization)
@hasleadsenabled
@can('create crm leads')
@endcan
@endhasleadsenabled
@hasleadsenabled
@can('create crm deals')
@endcan
@endhasleadsenabled
@hasquotesenabled
@can('create crm quotes')
@endcan
@endhasquotesenabled
@hasordersenabled
@can('create crm orders')
@endcan
@endhasordersenabled
@can('view crm organizations')
@endcan
@can('edit crm organizations')
@endcan
@can('delete crm organizations')
@endcan
@endscope
{{-- FILTERS --}}
{{-- ACTIONS --}}