@if($journalEntry)
معلومات القيد المحاسبي
Journal Entry Information
رقم القيد | Entry Number
{{ $journalEntry->entry_number }}
التاريخ | Entry Date
{{ $journalEntry->entry_date->format('d/m/Y') }}
الحالة | Status
{{ $journalEntry->posted ? 'منشور | Posted' : 'مسودة | Draft' }}
النوع | Reference Type
{{ match($journalEntry->reference_type) { 'sale' => 'بيع | Sale', 'purchase' => 'شراء | Purchase', 'sale_return' => 'مرتجع بيع | Sale Return', 'purchase_return' => 'مرتجع شراء | Purchase Return', default => $journalEntry->reference_type } }}
سطور القيد
Journal Entry Lines
@php $totalDebit = 0; $totalCredit = 0; @endphp @foreach($journalEntry->lines as $index => $line) @php $totalDebit += $line->debit; $totalCredit += $line->credit; @endphp @endforeach
كود
Code
اسم الحساب
Account Name
مدين
Debit
دائن
Credit
البيان
Note
{{ $line->account->code }}
{{ $line->account->name_ar }}
@if($line->account->name) {{ $line->account->name }} @endif
@if($line->debit > 0)
{{ number_format($line->debit, 2) }} ج.م
@else - @endif
@if($line->credit > 0)
{{ number_format($line->credit, 2) }} ج.م
@else - @endif
{{ Str::limit($line->description ?? '-', 20) }}
الإجمالي Total
{{ number_format($totalDebit, 2) }} جنيه
{{ number_format($totalCredit, 2) }} جنيه
حالة التوازن Balance Status
@if($totalDebit == $totalCredit)
متوازن
{{ number_format($totalDebit, 2) }} = {{ number_format($totalCredit, 2) }}
@else
غير متوازن
الفرق: {{ number_format(abs($totalDebit - $totalCredit), 2) }} جنيه
@endif
@if($journalEntry->posted)
معلومات النشر
نُشر بواسطة: {{ $journalEntry->poster->name ?? '-' }}
التاريخ: {{ $journalEntry->posted_at?->format('d/m/Y h:i A') }}
@endif
معلومات النظام
أُنشئ بواسطة
{{ $journalEntry->creator->name ?? '-' }}
{{ $journalEntry->created_at?->format('d/m/Y h:i A') }}
آخر تحديث
{{ $journalEntry->updated_at?->format('d/m/Y h:i A') }}
@else
لم يتم العثور على قيد محاسبي

هذه الفاتورة ليس لها قيد محاسبي مرتبط بعد.

@endif