{{ __('إهلاك الأصول') }}

@can('create', App\Models\AssetDepreciation::class) {{ __('إضافة إهلاك جديد') }} @endcan
@csrf
{{ __('حساب الإهلاك الشهري') }}
@if(session('success')) @endif @if(session('error')) @endif
@forelse($depreciations as $depreciation) @empty @endforelse
{{ __('الأصل') }} {{ __('الفئة') }} {{ __('تاريخ الإهلاك') }} {{ __('مبلغ الإهلاك') }} {{ __('الإهلاك المتراكم') }} {{ __('القيمة الدفترية') }} {{ __('الحالة') }} {{ __('الإجراءات') }}
{{ $depreciation->asset->name }} ({{ $depreciation->asset->asset_code }}) {{ $depreciation->asset->category->name ?? 'غير محدد' }} {{ $depreciation->depreciation_date->format('Y-m-d') }} {{ number_format($depreciation->depreciation_amount, 2) }} {{ number_format($depreciation->accumulated_depreciation, 2) }} {{ number_format($depreciation->book_value, 2) }} @if($depreciation->status == 'pending') {{ __('معلق') }} @elseif($depreciation->status == 'posted') {{ __('مرحل') }} @endif
@if($depreciation->status == 'pending') @can('update', $depreciation) @endcan @can('delete', $depreciation)
@csrf @method('DELETE')
@endcan @can('update', $depreciation)
@csrf
@endcan @else @endif
{{ __('لا توجد عمليات إهلاك') }}
{{ $depreciations->links() }}