{{ __('ui.trash') }}

{{ app()->getLocale() == 'en' ? 'Manage soft deleted invoices and receipts. Restored records will return to operation, while purged items will be permanently erased.' : 'Kelola invoice dan kwitansi yang dihapus secara temporer. Data yang dipulihkan akan kembali aktif, sedangkan data yang dibersihkan akan dihapus permanen.' }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@if ($invoices->isEmpty())

{{ app()->getLocale() == 'en' ? 'No Deleted Invoices' : 'Tidak Ada Invoice di Tempat Sampah' }}

{{ app()->getLocale() == 'en' ? 'Soft-deleted invoices will appear here.' : 'Invoice yang dihapus sementara akan muncul di sini.' }}

@else
@foreach ($invoices as $invoice) @endforeach
{{ app()->getLocale() == 'en' ? 'Invoice Number' : 'Nomor Invoice' }} {{ __('ui.company') }} {{ app()->getLocale() == 'en' ? 'Deleted By & Reason' : 'Dihapus Oleh & Alasan' }} {{ app()->getLocale() == 'en' ? 'Deleted At' : 'Dihapus Pada' }} {{ __('ui.actions') }}
{{ $invoice->invoice_number }}
{{ $invoice->businessUnit->name ?? 'General' }}
{{ $invoice->client->nama_perusahaan ?? '-' }}
{{ $invoice->client->nama_client ?? '-' }}
{{ $invoice->deleter->name ?? '-' }}
"{{ $invoice->deletion_reason ?? '-' }}"
{{ $invoice->deleted_at->timezone(auth()->user()->timezone ?? 'Asia/Jakarta')->format('d M Y H:i') }}
@csrf
@csrf @method('DELETE')
@endif
@if ($receipts->isEmpty())

{{ app()->getLocale() == 'en' ? 'No Deleted Receipts' : 'Tidak Ada Kwitansi di Tempat Sampah' }}

{{ app()->getLocale() == 'en' ? 'Soft-deleted receipts will appear here.' : 'Kwitansi yang dihapus sementara akan muncul di sini.' }}

@else
@foreach ($receipts as $receipt) @endforeach
{{ app()->getLocale() == 'en' ? 'Receipt Number' : 'Nomor Kwitansi' }} {{ app()->getLocale() == 'en' ? 'Linked Invoice' : 'Invoice Terkait' }} {{ app()->getLocale() == 'en' ? 'Deleted By & Reason' : 'Dihapus Oleh & Alasan' }} {{ app()->getLocale() == 'en' ? 'Deleted At' : 'Dihapus Pada' }} {{ __('ui.actions') }}
{{ $receipt->receipt_number }}
@if ($receipt->invoice)
{{ $receipt->invoice->invoice_number }}
{{ $receipt->invoice->client->nama_client ?? '-' }}
@else {{ app()->getLocale() == 'en' ? 'Orphaned Invoice' : 'Invoice Asal Dihapus Permanen' }} @endif
{{ $receipt->deleter->name ?? '-' }}
"{{ $receipt->deletion_reason ?? '-' }}"
{{ $receipt->deleted_at->timezone(auth()->user()->timezone ?? 'Asia/Jakarta')->format('d M Y H:i') }}
@csrf
@csrf @method('DELETE')
@endif
@push('scripts') @endpush