@php $tz = config('app.display_timezone'); $tabMeta = [ 'all' => ['label' => __('All notes'), 'icon' => 'queue-list'], 'draft' => ['label' => __('Drafts'), 'icon' => 'pencil-square'], 'confirmed' => ['label' => __('Confirmed'), 'icon' => 'check'], 'completed' => ['label' => __('Completed'), 'icon' => 'check-circle'], 'upcoming' => ['label' => __('Coming up'), 'icon' => 'calendar-days'], 'unwritten' => ['label' => __('Held, no note'), 'icon' => 'exclamation-triangle'], ]; $cards = [ ['tab' => 'draft', 'label' => __('Drafts to review'), 'value' => $counts['draft'], 'icon' => 'pencil-square', 'accent' => '#f59e0b', 'sub' => __('Not yet a record')], ['tab' => 'unwritten', 'label' => __('Held, no note'), 'value' => $counts['unwritten'], 'icon' => 'exclamation-triangle', 'accent' => '#e11d48', 'sub' => __('Meetings to write up')], ['tab' => 'confirmed', 'label' => __('Open actions'), 'value' => $counts['open_actions'], 'icon' => 'clipboard-document-check', 'accent' => '#0891b2', 'sub' => __('Tasks from meetings')], ['tab' => 'upcoming', 'label' => __('Coming up'), 'value' => $counts['upcoming'], 'icon' => 'calendar-days', 'accent' => '#4f46e5', 'sub' => __('Booked meetings')], ]; $statusColor = ['draft' => 'amber', 'confirmed' => 'sky', 'completed' => 'emerald']; $select = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; $isMeetings = in_array($tab, ['upcoming', 'unwritten'], true); @endphp
{{ __('Calendar') }} @if ($canCreate) {{ __('New meeting note') }} @endif
@foreach ($cards as $m) @endforeach
@foreach ($tabMeta as $key => $meta) @endforeach
@if ($seesTeam)
@endif

{{ $tabMeta[$tab]['label'] }}

{{ $scope === 'team' ? __('Everyone on the team') : __('Yours') }} @if ($record) · {{ $record instanceof \App\Models\Opportunity ? $record->title : $record->name }} @endif

@forelse ($rows as $row) @if ($isMeetings) @else @endif @empty @endforelse
{{ $isMeetings ? __('When') : __('Held') }} {{ __('Meeting') }} {{ __('With') }} {{ $isMeetings ? __('Organiser') : __('Written by') }} {{ $isMeetings ? '' : __('Status') }} {{ __('Actions') }}
{{ $row->starts_at->copy()->timezone($tz)->format('D j M Y') }} {{ $row->starts_at->copy()->timezone($tz)->format('H:i') }}

{{ $row->title }}

@if ($row->location)

{{ $row->location }}

@endif
@include('livewire.crm.meetings.partials.regarding', ['row' => $row]) {{ $row->owner?->name ?? __('Nobody') }} @if ($canCreate) @endif {{ $row->held_at?->copy()->timezone($tz)->format('D j M Y') ?? __('Not recorded') }} {{ $row->title }} @if ($row->needs)

{{ \Illuminate\Support\Str::limit($row->needs, 120) }}

@endif @if (! empty($row->need_tags) || ! empty($row->competitor_tags))

@foreach ((array) $row->need_tags as $tag) {{ $tag }} @endforeach @foreach ((array) $row->competitor_tags as $tag) {{ $tag }} @endforeach

@endif
@include('livewire.crm.meetings.partials.regarding', ['row' => $row]) {{ $row->author?->name ?? __('Unknown') }} {{ __(\App\Models\Crm\MeetingNote::STATUSES[$row->status] ?? $row->status) }} @if ($row->open_tasks_count > 0) {{ trans_choice('{1} 1 open action|[2,*] :count open actions', $row->open_tasks_count, ['count' => $row->open_tasks_count]) }} @endif {{ __('Open') }}
@if (trim($q) !== '' || $record) @elseif ($tab === 'unwritten') @elseif ($tab === 'upcoming') @else @endif
{{ $rows->links() }}
{{ __('New meeting note') }}
@if (! $opportunityId)
@endif

{{ __('The note opens as a draft so you can fill in attendees, needs, decisions and actions.') }}

{{ __('Close') }} {{ __('Start the note') }} {{ __('Saving…') }}