@extends('layouts.app') @section('title', $segment->name) @section('content')

{{ $segment->name }}

@if ($segment->description)

{{ $segment->description }}

@endif

{{ number_format($matchCount) }} matching contacts match {{ $segment->match_type === 'any' ? 'ANY rule' : 'ALL rules' }}

@can('manage segments') Edit rules @endcan
@foreach ($segment->conditions ?? [] as $condition)
{{ ucwords(str_replace('_', ' ', $condition['field'] ?? '')) }} {{ str_replace('_', ' ', $condition['operator'] ?? '') }} {{ $condition['value'] ?? '' }}
@endforeach

Sample of matching contacts

@forelse ($preview as $contact) @empty @endforelse
EmailNameCompanyCountryStatus
{{ $contact->email }} {{ $contact->displayName() }} {{ $contact->company }} {{ $contact->country }}
No contacts currently match this segment.
@endsection