📄 Resmi Fatura & Evrak Yönetimi
@if(count($activeProviders) > 0) Modül Aktif @else Sağlayıcı Yok / Pasif @endif
@if(count($documents) > 0)
@foreach($documents as $doc) @endforeach
Belge Tipi Belge No Sağlayıcı Durum Tarih İşlemler
{{ 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->document_number) {{ $doc->document_number }} @else — Taslak — @endif {{ $doc->provider ? $doc->provider->name : 'Manuel' }} @if($doc->status === 'issued' || $doc->status === 'archived') Kayıtlı @elseif($doc->status === 'cancelled') İptal @elseif($doc->status === 'failed') Hata @else {{ $doc->status }} @endif {{ $doc->created_at->format('d.m.Y H:i') }}
Detay @if($doc->pdf_path) 📥 PDF @endif @if($doc->provider && $doc->provider->supports_status_query && $doc->status !== 'cancelled') @endif @if($doc->provider && $doc->provider->supports_cancel && $doc->status !== 'cancelled') @endif
@endif {{-- Yeni Evrak Oluşturma Formu --}}
Yeni Belge / Evrak Oluştur
@if(count($activeProviders) > 0)
@else
Aktif bir fatura sağlayıcısı bulunamadı. Lütfen önce Fatura Sağlayıcıları ekranından bir sağlayıcı oluşturun veya aktifleştirin.
@endif