{{ __('تفاصيل قيد اليومية') }}

{{ $entry->reference_number }}

← {{ __('العودة') }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

{{ __('الحالة الحالية') }}

@switch($entry->status) @case('draft') {{ __('مسودة') }} @break @case('posted') {{ __('مرحل') }} @break @case('approved') {{ __('معتمد') }} @break @case('rejected') {{ __('مرفوض') }} @break @endswitch

@if ($entry->canBeEdited()) {{ __('تعديل') }} @endif @if ($entry->canBePosted())
@csrf @method('PATCH')
@endif @if ($entry->canBeApproved())
@csrf @method('PATCH')
@endif @if ($entry->canBeRejected())
@csrf @method('PATCH')
@endif @if ($entry->status === 'draft')
@csrf @method('DELETE')
@endif
📋

{{ __('الأساسيات') }}

{{ __('الرقم') }}

{{ $entry->reference_number }}

{{ __('التاريخ') }}

{{ $entry->entry_date ? $entry->entry_date->format('Y-m-d') : '-' }}

📅

{{ __('الفترة') }}

{{ __('السنة المالية') }}

{{ $entry->fiscalYear ? $entry->fiscalYear->name : '-' }}

{{ __('الفترة المحاسبية') }}

{{ $entry->accountingPeriod ? $entry->accountingPeriod->name : '-' }}

{{ __('المراجعة') }}

{{ __('أنشأ بواسطة') }}

{{ $entry->creator ? $entry->creator->name : '-' }}

@if ($entry->approved_by && $entry->approver)

{{ __('اعتمد بواسطة') }}

{{ $entry->approver->name }}

@endif

📊 {{ __('تفاصيل البنود') }}

{{ count($entry->details) }} {{ __('بند') }}

@foreach ($entry->details as $detail) @endforeach
{{ __('الحساب') }} {{ __('الاسم') }} {{ __('مركز التكلفة') }} {{ __('الوصف') }} {{ __('مدين') }} {{ __('دائن') }}
{{ $detail->account->code }} {{ $detail->account->name }} @if($detail->costCenter) {{ $detail->costCenter->code }} - {{ $detail->costCenter->name }} @else - @endif {{ $detail->description ?: '-' }} @if ($detail->debit_amount > 0) {{ number_format($detail->debit_amount, 2) }} @else - @endif @if ($detail->credit_amount > 0) {{ number_format($detail->credit_amount, 2) }} @else - @endif
{{ __('الإجمالي النهائي') }}
{{ number_format($entry->total_debit, 2) }}
{{ number_format($entry->total_credit, 2) }}
{{ __('تم إنشاء هذا القيد بواسطة النظام - ') }} {{ now()->format('d/m/Y H:i') }}
{{ __('رقم القيد: ') }} {{ $entry->reference_number }}