| ID | Tarih | Ödeme Yöntemi | KDV Tutarı | Brüt Tutar | İndirim | İkram | Net Tutar | @if ($okc_integration ?? false)Y.Kasa Fişi | @endif @if (isset($efiles_integration) && $efiles_integration)E-Adisyon | @if ($is_admin == 1)E-Fatura | @endif @endif
|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $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 ($okc_integration ?? false)
@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
|
@endif
@if (isset($efiles_integration) && $efiles_integration)
@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
|
@if ($is_admin == 1)
{{-- E-Fatura kolonu (manuel, müşteri isterse) --}}
@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
@else
@endif
@endif
|
@endif
@endif
@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
Satış #{{ $efaturaModalSaleId }} için müşteri bilgilerini giriniz.
@if ($batchCurrent === 0) Satışlar derleniyor... @else E-Adisyonlar oluşturuluyor... ({{ $batchCurrent }} / {{ $batchTotal }}) @endif
{{-- İlerleme çubuğu --}}Lütfen işlem tamamlanana kadar bekleyin...