@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
{{ $scope === 'team' ? __('Everyone on the team') : __('Yours') }} @if ($record) · {{ $record instanceof \App\Models\Opportunity ? $record->title : $record->name }} @endif
| {{ $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 | @else{{ $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)
|
@include('livewire.crm.meetings.partials.regarding', ['row' => $row]) | {{ $row->author?->name ?? __('Unknown') }} |
|
{{ __('Open') }} | @endif|
|
@if (trim($q) !== '' || $record)
|
|||||||||||
{{ __('The note opens as a draft so you can fill in attendees, needs, decisions and actions.') }}