@extends('layouts.app') @push('styles') @endpush @section('content')

Financial Intelligence

سجل الإهلاك

{{ number_format($depreciations->sum('amount'), 2) }} SAR
{{ number_format($depreciations->avg('amount') ?? 0, 2) }} SAR
{{ $depreciations->count() }}
{{ number_format($depreciations->groupBy('car_id')->map(fn($group) => $group->first()->book_value)->sum(), 2) }} SAR

توزيع الإهلاك حسب السيارة

تفاصيل القيود المحاسبية

@foreach($depreciations as $dep) @endforeach
التاريخ المركبة رقم اللوحة الطريقة مبلغ الإهلاك المتراكم صافي القيمة
{{ $dep->depreciation_date->format('Y-m-d') }}
{{ $dep->car->title }}
{{ $dep->car->brand?->name }}
{{ $dep->car->plate_number }} @php $m = ['straight_line' => 'قسط ثابت', 'declining_balance' => 'قسط متناقص', 'mileage' => 'حسب الاستخدام'][$dep->car->depreciation_method] ?? '-'; @endphp {{ $m }} ({{ number_format($dep->amount, 2) }}) {{ number_format($dep->accumulated_depreciation, 2) }} {{ number_format($dep->book_value, 2) }}
@endsection @push('scripts') @endpush