{{-- Loading indicator for drag operations --}}
Görev işleniyor...
{{-- GÖREV SEPETİ (BEKLEYEN TARİHSİZ GÖREVLER) — SOL ALT KÖŞEDE AÇILIR PENCERE --}} @include('livewire.partials.task-basket') {{-- TAKVİM --}} @if ($view_mode === 'month') @include('livewire.partials.month-calendar') @else @php $viewGridClass = [1 => 'lg:grid-cols-1', 3 => 'lg:grid-cols-3', 5 => 'lg:grid-cols-5', 7 => 'lg:grid-cols-7'][\App\Support\WeekView::days($view_mode)]; @endphp
@for ($today = \Carbon\Carbon::parse($start_date); $today->lte(\Carbon\Carbon::parse($end_date)); $today->addDay())
{{-- DAY --}}
@php // Tarih Carbon nesnesi değilse dönüştür $dateObject = $today instanceof \Carbon\Carbon ? $today : \Carbon\Carbon::parse($date); @endphp @if ($today->isToday()) Bugün @endif {{ $dateObject->locale('tr')->translatedFormat('l') }} {{ $dateObject->locale('tr')->translatedFormat('d') }} {{ $dateObject->locale('tr')->translatedFormat('F') }}
@foreach ($calendarProcesses as $process) @if ($process->containsDate($dateObject->toDateString())) @endif @endforeach
@php $currentDate = $dateObject->format('Y-m-d'); $dailyTasks = $tasks_by_date[$currentDate] ?? collect(); $paids = $paids_by_days[$currentDate] ?? collect(); $receiveds = $receiveds_by_days[$currentDate] ?? collect(); $sales = $sales_by_days[$currentDate] ?? collect(); $purchases = $purchases_by_days[$currentDate] ?? collect(); $planned_paids = $planned_paids_by_days[$currentDate] ?? collect(); $sending_offers = $offers_by_days[$currentDate] ?? collect(); $rejected_offers = $rejected_offers_by_days[$currentDate] ?? collect(); $deals = $deals_by_days[$currentDate] ?? collect(); @endphp {{-- ÖNEMLİ --}} @if ($planned_paids->count() > 0)
notifications_active Önemli
@foreach ($planned_paids as $item)
#{{ $item->related_name ?: ($item->type == 'statement' ? 'Banka belirtilmemiş' : 'Firma belirtilmemiş') }}
{{ number_format($item->amount, 0, ',', '.') }}{{ $item->currency }}
@if ($item->type == 'statement') Asgari tutar: {{ $item->description }} {{ $item->currency }} @else {{ $item->title }}, {{ $item->description }} @endif
@endforeach
@endif {{-- TAHSİLATLAR --}} @if ($receiveds->count() > 0)
south_west Tahsilat
@foreach ($receiveds as $item)
#{{ $item->company ? $item->company->name : 'Belirtilmemiş' }}
+{{ number_format($item->amount, 0, ',', '.') }}{{ $item->currency }}
@endforeach
@endif {{-- ÖDEMELER --}} @if ($paids->count() > 0)
north_east Ödeme/Harcama
@foreach ($paids as $paid)
#{{ $paid->company ? $paid->company->name : $paid->name }}
-{{ number_format($paid->amount, 0, ',', '.') }}{{ $paid->currency ? $paid->currency : 'TRL' }}
@endforeach
@endif {{-- SATIŞLAR --}} @if ($sales->count() > 0)
receipt_long Satış
@foreach ($sales as $item)
#{{ $item->company ? $item->company->name : 'Belirtilmemiş' }}
@if ($item->currency != 'TRL') {{ number_format($item->ex_amount, 0, ',', '.') }} @else {{ number_format($item->total_amount, 0, ',', '.') }} @endif {{ $item->currency }}
@endforeach
@endif {{-- ALIŞLAR --}} @if ($purchases->count() > 0)
receipt_long Alış
@foreach ($purchases as $item)
#{{ $item->company ? $item->company->name : 'Belirtilmemiş' }}
{{ number_format($item->total_amount, 0, ',', '.') }}{{ $item->currency }}
@endforeach
@endif {{-- ANLAŞMALAR --}} @if ($deals->count() > 0)
stylus_note Anlaşma
@foreach ($deals as $deal)
#{{ $deal->company->name }}
{{ number_format($deal->value, 0, ',', '.') }}{{ $deal->currency }}
@endforeach
@endif {{-- REDDİLEN TEKLİFLER --}} @if ($rejected_offers->count() > 0)
block Reddedildi
@foreach ($rejected_offers as $offer)
#{{ $offer->company->name }}
{{ number_format($offer->ex_total, 0, ',', '.') }} {{ $offer->currency }}
@endforeach
@endif {{-- SENDING OFFERS --}} @if ($sending_offers->count() > 0)
forward Gönd.Teklif
@foreach ($sending_offers as $offer)
#{{ $offer->company->name }}
{{ number_format($offer->ex_total, 0, ',', '.') }} {{ $offer->currency }}
@endforeach
@endif {{-- GÖREVLER --}} @if ($dailyTasks->count() > 0)
view_agenda Görev Kartları
{{-- KART MENU --}} @if ($dailyTasks->count() > 1)
{{-- Dropdown Menu --}}
@endif {{-- KARTLAR --}}
@foreach ($dailyTasks->where('status', 'new') as $task) @php // Drag and drop is enabled for everyone (creator, assignee, team members) $canDrag = true; @endphp
{{-- ASSIGNED USER BADGE - TOP POSITION --}} @if ($task->assignedUser)
@if (auth()->id() !== $task->user_id && auth()->id() !== $task->assigned_to) {{ $task->assignedUser->name }} @endif @if (auth()->id() == $task->user_id) Sizarrow_forward {{ $task->assignedUser->name }} @endif @if (auth()->id() == $task->assigned_to) {{-- Current user is the assigner - show right arrow --}} {{ $task->creator->name }} arrow_forwardSiz @endif
@endif {{-- Başlık varsa ("Görev" placeholder'ı boş sayılır) başlık, yoksa not --}}

{{ $task->title && trim($task->title) !== 'Görev' ? $task->title : $task->note }}

@if ($task->linkedGmailMessages->isNotEmpty()) @endif @if ($task->notes->isNotEmpty()) @endif @if ($task->invoices->isNotEmpty()) @endif @if ($task->company)
{{ Str::limit($task->company->name, 10) }}
@endif
@endforeach {{-- Drop zone after the last new task --}} @php $lastTask = $dailyTasks->where('status', 'new')->last(); @endphp @if ($lastTask)
@endif
@if ($dailyTasks->where('status', 'completed')->count() > 0)
@foreach ($dailyTasks->where('status', 'completed') as $task)
{{-- ASSIGNED USER BADGE - TOP POSITION --}} @if ($task->assignedUser)
@if (auth()->id() !== $task->user_id && auth()->id() !== $task->assigned_to) {{ $task->assignedUser->name }} @endif @if (auth()->id() == $task->user_id) Sizarrow_forward {{ $task->assignedUser->name }} @endif @if (auth()->id() == $task->assigned_to) {{ $task->creator->name }} arrow_forwardSiz @endif
@endif

{{ $task->title && trim($task->title) !== 'Görev' ? $task->title : $task->note }}

@if ($task->linkedGmailMessages->isNotEmpty()) @endif @if ($task->notes->isNotEmpty()) @endif @if ($task->invoices->isNotEmpty()) @endif @if ($task->company)
{{ Str::limit($task->company->name, 10) }}
@endif
@endforeach
@endif
@endif
{{-- NEW CARD --}}
@endfor
@endif @if ($view_mode === 'month') @include('modals.calendar-task-create') @endif {{-- GÖREV DETAY MODALI --}} @include('modals.task-detail') @include('modals.process-manager') {{-- GLOBAL LIVEWIRE LOADING OVERLAY - Inside root div --}}
{{-- Spinning Circle --}}
{{-- Loading Text --}}
Lütfen bekleyin..