@php $tz = config('app.display_timezone'); $tabMeta = ['' => ['label' => __('All'), 'icon' => 'queue-list']] + [ 'competitor_profile' => ['label' => __('Competitor profiles'), 'icon' => 'trophy'], 'note' => ['label' => __('Research notes'), 'icon' => 'beaker'], 'sector' => ['label' => __('Sector insight'), 'icon' => 'building-office'], 'market' => ['label' => __('Market insight'), 'icon' => 'chart-bar'], ]; $kindColor = ['competitor_profile' => 'rose', 'note' => 'indigo', 'sector' => 'sky', 'market' => 'violet']; $hasFilters = trim($q) !== '' || $sector !== '' || $organisationFilter; @endphp
{{ __('Everyone on the team can read every note.') }} @if ($organisationFilter) · {{ $organisationFilter->name }} @endif
| {{ __('Note') }} | {{ __('Kind') }} | {{ __('About') }} | {{ __('Written by') }} | {{ __('Updated') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|
|
@if ($note->body)
{{ \Illuminate\Support\Str::limit($note->body, 140) }} @endif @if ($note->tags)
@foreach ($note->tags as $tag)
{{ $tag }}
@endforeach
@endif
|
|
@if ($note->competitor_name) {{ $note->competitor_name }} @endif @if ($note->customer) {{ $note->customer->name }} @endif @if ($note->sector) {{ $sectors[$note->sector] ?? $note->sector }} @endif @if (! $note->competitor_name && ! $note->customer && ! $note->sector) {{ __('General') }} @endif | {{ $note->author?->name ?? __('A former member') }} | {{ $note->updated_at?->copy()->timezone($tz)->format('j M Y') }} |
@can('update', $note)
@endcan
@can('delete', $note)
@endcan
|
|
@if ($hasFilters)
|
|||||
{{ __('Written by :name, last updated :when', ['name' => $viewing->author?->name ?? __('a former member'), 'when' => $viewing->updated_at?->copy()->timezone($tz)->format('j M Y, H:i')]) }} @if ($viewing->customer) · {{ $viewing->customer->name }} @endif @if ($viewing->sector) · {{ $sectors[$viewing->sector] ?? $viewing->sector }} @endif
@if ($viewing->body){{ __('No text yet.') }}
@endif @if ($viewing->source_url){{ __('Not named on any opportunity or tagged in any meeting note yet.') }}
@else