{{-- GÖREV DETAY MODALI — new-week Livewire bileşeninden include edilir --}} @if ($active_task) @php $modalIsOpen = $active_task->status === 'new'; $modalDate = $active_task->date ? \Carbon\Carbon::parse($active_task->date) : null; $modalOtherTeamMembers = array_values( array_filter($teamMembers, fn($member) => $member['id'] !== auth()->id()), ); $toolbarButton = 'inline-flex items-center gap-1.5 p-2.5 text-sm font-medium rounded-md border border-stone-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed'; // Tailwind, çalışırken üretilen sınıf adlarını göremez; hepsi burada // düz metin olarak durmak zorunda. $modalColors = [ '' => [ 'label' => 'Renk yok', 'swatch' => 'bg-stone-200', 'check' => 'text-stone-600', 'frame' => 'border-stone-200', 'field' => 'bg-white', ], 'rose' => [ 'label' => 'Kırmızı', 'swatch' => 'bg-rose-600', 'check' => 'text-white', 'frame' => 'border-rose-500', 'field' => 'bg-rose-50', ], 'amber' => [ 'label' => 'Sarı', 'swatch' => 'bg-amber-600', 'check' => 'text-white', 'frame' => 'border-amber-500', 'field' => 'bg-amber-50', ], 'lime' => [ 'label' => 'Yeşil', 'swatch' => 'bg-lime-600', 'check' => 'text-white', 'frame' => 'border-lime-500', 'field' => 'bg-lime-50', ], 'teal' => [ 'label' => 'Turkuaz', 'swatch' => 'bg-teal-600', 'check' => 'text-white', 'frame' => 'border-teal-500', 'field' => 'bg-teal-50', ], 'sky' => [ 'label' => 'Mavi', 'swatch' => 'bg-sky-600', 'check' => 'text-white', 'frame' => 'border-sky-500', 'field' => 'bg-sky-50', ], 'violet' => [ 'label' => 'Mor', 'swatch' => 'bg-violet-600', 'check' => 'text-white', 'frame' => 'border-violet-500', 'field' => 'bg-violet-50', ], 'slate' => [ 'label' => 'Gri', 'swatch' => 'bg-slate-600', 'check' => 'text-white', 'frame' => 'border-slate-500', 'field' => 'bg-slate-50', ], ]; $modalColorValue = $active_task->color ?? ''; if (!isset($modalColors[$modalColorValue])) { $modalColorValue = ''; } $modalColor = $modalColors[$modalColorValue]; @endphp
{{-- HEADER --}}
@if ($returnProcessId) @endif
calendar_today {{ $modalDate ? $modalDate->locale('tr')->translatedFormat('d F Y, l') : 'Tarihsiz görev' }} {{ $modalIsOpen ? 'Açık' : 'Tamamlandı' }}
@if ($active_task->company) {{ $active_task->company->name }} @endif @if ($active_task->assignedUser) person {{ $active_task->assignedUser->name }} @endif @if ($active_task->creator) {{ $active_task->creator->name }} · {{ $active_task->created_at?->format('d.m.Y') }} @endif
{{-- İŞLEVLER --}}
@if ($modalIsOpen) @else @endif @if ($modalIsOpen && count($modalOtherTeamMembers) > 0) @endif
@if ($errors->any()) @endif
Clear the date to defer this task.
add "" adında yeni işletme oluştur
check seçildi
Atanan: {{ $active_task->assignedUser->name ?? 'Atanmamış' }}
person_off Atanmamış
{{-- RENK --}}
@foreach ($modalColors as $colorValue => $option) @endforeach
{{-- GÖREV NOTU --}}
Kaydediliyor...
{{-- NOT SATIRLARI --}}
@forelse ($active_task->notes as $note)
{{-- GÖRÜNTÜLEME --}}

{{ $note->content }}

@if ((int) $note->user_id === (int) auth()->id())
@endif
{{-- DÜZENLEME --}}
Ctrl+Enter: kaydet · Esc: vazgeç
@empty @endforelse {{-- YENİ NOT GİRİŞİ — her zaman görünür, eklenmiş notların altında durur --}}
{{-- İLGİLİ E-POSTALAR --}}
@forelse ($active_task->linkedGmailMessages as $msg)
mail {{ $msg->from_name ?: $msg->from_email ?: 'Gmail' }} @if ($msg->received_at) {{ $msg->received_at->format('d.m.Y H:i') }} @endif

{{ $msg->subject ?: '(konu yok)' }}

@empty
Bu görevle ilgili e-posta yok.
@endforelse
@foreach ($linkable_messages as $lm)
mail
{{ $lm['from'] }} {{ $lm['subject'] }}
{{ $lm['date'] }}
@endforeach
{{-- İLGİLİ FATURALAR --}}
@forelse ($active_task->invoices as $inv)
receipt_long {{ $inv->number ?: '#' . $inv->id }} @if ($inv->date) {{ \Carbon\Carbon::parse($inv->date)->format('d.m.Y') }} @endif

{{ $inv->company?->name ?? 'Firma yok' }} · {{ str_starts_with($inv->type, 'sales') ? 'Satış' : 'Alış' }} · {{ $inv->currency != 'TRL' ? $inv->ex_amount : $inv->total_amount }} {{ $inv->currency }}

@empty
Bu görevle ilgili fatura yok.
@endforelse
@foreach ($linkable_invoices as $li)
receipt_long
{{ $li['number'] }} {{ $li['company'] }}
@if ($li['linked']) check_circle Bağlı @else {{ $li['amount'] }} @endif
@endforeach
@endif