{{-- ÜST MENÜ --}}
@php $dayNames = ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi']; $todayName = $dayNames[date('w')]; @endphp
{{ date('d') }}

{{ \Carbon\Carbon::now()->locale('tr')->isoFormat('MMMM') }}

{{ $todayName }}

{{ date('d.m.Y') }}

{{-- GÖREVLER - Always visible in all screen sizes --}}
işlem yapılıyor...
{{-- GÜNLER --}}
{{ now()->locale('tr')->translatedFormat('d F Y, l') }}
{{-- AÇILIR MENÜ --}}
{{--
--}}
{{-- İÇERİK --}}
{{-- AÇIK GÖREVLER --}} @if ($new_tasks->count() > 0)
@if ($new_tasks->count() > 1)
@endif
@php $tasksByCompany = $new_tasks ->groupBy('company_id'); @endphp @foreach ($tasksByCompany as $companyId => $companyTasks)
@if ($companyId)
#{{ $companyTasks->first()->company->name }}
@else
DİĞER GÖREVLER
@endif
@foreach ($companyTasks as $task)
{{ $task->note }}
@foreach ($task->notes as $note)

{!! $note->content !!}

@endforeach
@endforeach
@endforeach
@endif {{-- TAMAMLANAN GÖREVLER --}} @if ($completed_tasks->count() > 0)
@php $tasksByCompany = $completed_tasks ->where('date', now()->toDateString()) ->groupBy('company_id'); @endphp @foreach ($tasksByCompany as $companyId => $companyTasks)
@if ($companyId)
#{{ $companyTasks->first()->company->name }}
@else
DİĞER GÖREVLER
@endif
@foreach ($companyTasks as $task)
{{ $task->note }}
@foreach ($task->notes as $note)

{!! $note->content !!}

@endforeach
@endforeach
@endforeach
@endif
@csrf
@if($hirings->count() > 0 || $completed_hirings->count() > 0 || $sales->count() > 0 || $paids->count() > 0 || $purchases->count() > 0 || $receiveds->count() > 0)

Bildirimler

{{-- HIRE --}} @if ($hirings->count() > 0 || $completed_hirings->count() > 0)
@if ($hirings->where('end_date', now()->toDateString())->count() > 0)

Bu gün sona eriyor

@foreach ($hirings->where('end_date', now()->toDateString()) as $hiring)
#{{ $hiring->company->name }}
{{ $hiring->person }} {{ $hiring->phone }}
{{ $hiring->product->name }} {{ $hiring->product->brand }}
@endforeach
@endif @if ($completed_hirings->where('end_date', now()->toDateString())->count() > 0)

Tamamlandı

@foreach ($completed_hirings->where('end_date', now()->toDateString()) as $hiring)
#{{ $hiring->company->name }}
{{ $hiring->person }} {{ $hiring->phone }}
{{ $hiring->product->name }} {{ $hiring->product->brand }}
@endforeach
@endif
@endif {{-- FINANCE --}} @if ($sales->count() > 0 || $paids->count() > 0 || $purchases->count() > 0 || $receiveds->count() > 0)
@if ($sales->count() > 0)

Satışlar

@foreach ($sales as $sale)
#{{ $sale->company->name }}
{{ number_format($sale->total_amount, 0, ',', '.') }}{{ $sale->currency }}
@endforeach
@endif @if ($receiveds->count() > 0)

Tahsilatlar

@foreach ($receiveds as $received)
#{{ $received->company->name }}
+{{ number_format($received->amount, 0, ',', '.') }}{{ $received->currency }}
@endforeach
@endif @if ($purchases->count() > 0)

Alışlar

@foreach ($purchases as $purchase)
#{{ $purchase->company->name }}
{{ number_format($purchase->total_amount, 0, ',', '.') }}{{ $purchase->currency }}
@endforeach
@endif @if ($paids->count() > 0)

Ödemeler

@foreach ($paids as $paid)
#{{ $paid->company->name }}
-{{ number_format($paid->amount, 0, ',', '.') }}{{ $paid->currency }}
@endforeach
@endif
@endif {{-- SALE --}} @if ($offers->count() > 0 || $opp->count() > 0 || $deals->count() > 0)
@if ($offers->count() > 0)

Teklif verildi

@foreach ($offers as $offer)
#{{ $offer->company->name }}
{{ number_format($offer->ex_sub, 0, ',', '.') }} {{ $offer->currency }}+KDV
@endforeach @endif @if ($opp->count() > 0)

İletişimler

@foreach ($opp as $opportunity)
{{ $opportunity->contact }}
#{{ $opportunity->company->name }}
{{ $opportunity->content }}
@if (strlen($opportunity->content) > 50)
daha fazla...
@endif
@endforeach @endif @if ($deals->count() > 0)

Anlaşma sağlandı

@foreach ($deals as $deal)
#{{ $deal->company->name }}
{{ number_format($deal->value, 0, ',', '.') }}{{ $deal->currency }}
@endforeach
@endif
@endif
@endif