Fatura ve Sipariş Belgeleri

{{-- Gelişmiş Filtreler --}}
{{-- Belge Tablosu --}}
@forelse($documents as $doc) @empty @endforelse
Belge Numarası Sipariş No Sağlayıcı Belge Tipi Durum Müşteri Tutar Oluşturulma Tarihi İşlemler
@if($doc->document_number) {{ $doc->document_number }} @else — Taslak — @endif @if($doc->order) {{ $doc->order->order_number }} @else Bilinmiyor @endif {{ $doc->provider ? $doc->provider->name : 'Manuel' }} {{ match($doc->document_type) { 'invoice' => 'Fatura', 'e_invoice' => 'e-Fatura', 'e_archive' => 'e-Arşiv', 'proforma' => 'Proforma', 'delivery_note' => 'İrsaliye', 'return_invoice'=> 'İade Faturası', default => $doc->document_type } }} @if($doc->status === 'issued' || $doc->status === 'archived') Aktif / Kayıtlı @elseif($doc->status === 'cancelled') İptal Edildi @elseif($doc->status === 'failed') Başarısız @elseif($doc->status === 'draft') Taslak @else {{ $doc->status }} @endif
{{ $doc->customer_name }} {{ $doc->customer_email }}
{{ number_format($doc->grand_total, 2) }} {{ $doc->currency ?? 'TRY' }} {{ $doc->created_at->format('d.m.Y H:i') }}
Detay @if($doc->pdf_path) 📥 PDF @endif
Kriterlere uygun fatura/evrak belgesi bulunamadı.
{{ $documents->links() }}