Adisyon Listesi

@if (isset($efiles_integration) && $efiles_integration)
@endif
@if ($sales->count() > 0)
@if ($okc_integration ?? false) @endif @if (isset($efiles_integration) && $efiles_integration) @if ($is_admin == 1) @endif @endif @foreach ($sales as $sale) @if ($okc_integration ?? false) @endif @if (isset($efiles_integration) && $efiles_integration) @if ($is_admin == 1) {{-- E-Fatura kolonu (manuel, müşteri isterse) --}} @endif @endif @endforeach
ID Tarih Ödeme Yöntemi KDV Tutarı Brüt Tutar İndirim İkram Net Tutar Y.Kasa Fişi E-Adisyon E-Fatura
#{{ $sale->id }} {{ $sale->deleted_at ? $sale->deleted_at->format('d.m.Y H:i') : '-' }} @if ($sale->note)
{{ $sale->note }} @endif
{{ $this->getPaymentTypeName($sale->payment_type) }} {{ number_format($sale->vat ?? 0, 2) }} {{ number_format($sale->gross_price ?? 0, 2) }} {{ number_format($sale->discount ?? 0, 2) }} {{ number_format($sale->treat ?? 0, 2) }} {{ number_format($sale->net_price ?? 0, 2) }} @if (in_array($sale->payment_type, [\App\Constants\PaymentType::CASH, \App\Constants\PaymentType::CREDIT_CARD])) @if ($sale->is_slip_printed)
receipt_long
@else
receipt_long
@endif @endif
@php $isSent = in_array($sale->id, $sentSaleIds); @endphp @if (floatval($sale->net_price ?? 0) > 0) @if ($isSent) @else @endif @if ($isSent) Gönderildi done_all @elseif($sale->payment_type == null) close @else @php // Otomatik gönderim: her gün 03:00-06:00 arası, bir önceki günün satışları $tz = 'Europe/Istanbul'; $nowIst = now($tz); $nextRun = $nowIst->copy()->setTime(3, 0); if ($nowIst->greaterThanOrEqualTo($nextRun)) { $nextRun->addDay(); } $diffMin = $nowIst->diffInMinutes($nextRun); $remainingH = intdiv($diffMin, 60); $remainingM = $diffMin % 60; $remainingText = $remainingH > 0 ? "{$remainingH} sa {$remainingM} dk" : "{$remainingM} dk"; @endphp
pace
@endif @endif
@php $efaturaInvoice = $efaturaInvoices[$sale->id] ?? null; @endphp @if (floatval($sale->net_price ?? 0) > 0) @if ($efaturaInvoice && ($efaturaInvoice['durum'] ?? null) === 'sent') Gönderildi done_all @elseif ($efaturaInvoice && !empty($efaturaInvoice['ettn'])) Taslak check
Görüntüle İptal Et
@else @endif @endif
{{ $sales->links() }}
@else

Satış bulunamadı

@if ($filter === 'pending') Henüz e-adisyon gönderilmeyi bekleyen satış yok. @elseif($filter === 'sent') Gönderilmiş e-adisyon bulunamadı. @else Henüz satış kaydı yok. @endif

@endif {{-- E-Fatura müşteri bilgi modalı --}} @if ($efaturaModalSaleId)

E-Fatura Oluştur

Satış #{{ $efaturaModalSaleId }} için müşteri bilgilerini giriniz.

{{-- Şirket arama / seçme --}}
@if ($efaturaCompanyId) check_circle Seçildi @endif
@if (!empty($efaturaCompanyResults))
@foreach ($efaturaCompanyResults as $result) @endforeach
@endif
@endif {{-- Batch işlemi sırasında ilerleme modalı --}} @if ($batchActive)

Toplu Gönderim

@if ($batchCurrent === 0) Satışlar derleniyor... @else E-Adisyonlar oluşturuluyor... ({{ $batchCurrent }} / {{ $batchTotal }}) @endif

{{-- İlerleme çubuğu --}}
@php $progressPercent = $batchTotal > 0 ? round($batchCurrent / $batchTotal * 100) : 0; @endphp
{{-- Sayaçlar --}}
inventory_2 Toplam: {{ $batchTotal }} check_circle {{ $batchSuccessCount }} cancel {{ $batchFailCount }}

Lütfen işlem tamamlanana kadar bekleyin...

@endif